From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA27032; Mon, 28 Apr 2003 00:34:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA27462 for ; Mon, 28 Apr 2003 00:34:34 +0200 (MET DST) Received: from ajax.cs.uga.edu (ajax.cs.uga.edu [128.192.251.3]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h3RMYXT21594 for ; Mon, 28 Apr 2003 00:34:33 +0200 (MET DST) Received: from cs.uga.edu (ajax.cs.uga.edu [128.192.251.3]) by ajax.cs.uga.edu (8.9.3/8.9.3) with ESMTP id SAA11313 for ; Sun, 27 Apr 2003 18:34:23 -0400 (EDT) To: OCaml List From: cashin@cs.uga.edu Subject: Re: [Caml-list] caml-mode gets confused about context Date: Sun, 27 Apr 2003 18:34:30 -0400 In-Reply-To: <87fzo45wqe.fsf@cs.uga.edu> (cashin@cs.uga.edu's message of "Sun, 27 Apr 2003 01:35:05 -0400") Message-ID: <87wuhf4ljd.fsf@cs.uga.edu> User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386-debian-linux-gnu) References: <87llxw5xt3.fsf@cs.uga.edu> <87fzo45wqe.fsf@cs.uga.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam: no; 0.00; caml-list:01 caml-mode:01 3.06:01 indentation:01 buffer:01 indenting:01 sytax:01 ocaml:01 workaround:01 lisp:01 writes:01 emacs:01 pgp:02 let:04 off-list:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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