Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-04-27 (22:34)
From: cashin@c...
Subject: Re: [Caml-list] caml-mode gets confused about context 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:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: