Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] caml-mode gets confused about context
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: cashin@c...
Subject: Re: [Caml-list] caml-mode gets confused about context
cashin@cs.uga.edu writes:

> Hi.  I've noticed that the caml-mode in ocaml 3.06 loses track of
> where indentation should be, especially when I comment things out.  My
> fix is to kill the buffer and reload it, at which point caml-mode
> immediately starts working again, indenting properly according to the
> sytax.
>
> I searched google a bit for caml-list discussion about it, but I
> didn't see anything.  Is this a known problem?  Is there a newer
> version I should use or some kind of workaround?

There's a workaround.  I wish I knew enough emacs lisp to fix
caml-mode itself.

I find that when the indentation gets confused below a comment, I can
go up to the line before the comment, hit tab (which is bound to
caml-indent-command), and then come back to the line I'm working on.
Then indentation will work properly.

I tried to come up with a minimal example that exhibits the problem
but couldn't.  If anyone wants to see the source file that exibits the
problem, let me know, and I'll send it off-list.

-- 
--Ed L Cashin     PGP public key: http://noserose.net/e/pgp/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners