caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] caml-mode gets confused about context
@ 2003-04-27  5:11 Ed L Cashin
  2003-04-27  5:35 ` cashin
  0 siblings, 1 reply; 3+ messages in thread
From: Ed L Cashin @ 2003-04-27  5:11 UTC (permalink / raw)
  To: OCaml List

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?

-- 
--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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] caml-mode gets confused about context
  2003-04-27  5:11 [Caml-list] caml-mode gets confused about context Ed L Cashin
@ 2003-04-27  5:35 ` cashin
  2003-04-27 22:34   ` cashin
  0 siblings, 1 reply; 3+ messages in thread
From: cashin @ 2003-04-27  5:35 UTC (permalink / raw)
  To: OCaml List

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?

-- 
--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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] caml-mode gets confused about context
  2003-04-27  5:35 ` cashin
@ 2003-04-27 22:34   ` cashin
  0 siblings, 0 replies; 3+ messages in thread
From: cashin @ 2003-04-27 22:34 UTC (permalink / raw)
  To: OCaml List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-27 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-27  5:11 [Caml-list] caml-mode gets confused about context Ed L Cashin
2003-04-27  5:35 ` cashin
2003-04-27 22:34   ` cashin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).