From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA10647 for caml-redistribution; Fri, 29 Jan 1999 20:02:30 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA06075 for ; Fri, 29 Jan 1999 20:01:24 +0100 (MET) Received: from morgon.inria.fr (morgon.inria.fr [128.93.8.33]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id UAA20355; Fri, 29 Jan 1999 20:01:16 +0100 (MET) Received: (from remy@localhost) by morgon.inria.fr (8.8.7/8.8.7) id UAA04709; Fri, 29 Jan 1999 20:03:29 +0100 Message-ID: <19990129200329.59821@morgon.inria.fr> Date: Fri, 29 Jan 1999 20:03:29 +0100 From: Didier Remy To: Ian T Zimmerman Cc: caml-list@inria.fr Subject: Re: interactive errors in Emacs [Was: looking for a nail] Reply-To: Didier.Remy@inria.fr References: <199901291610.IAA04654@kronstadt.transbay.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.85e In-Reply-To: <199901291610.IAA04654@kronstadt.transbay.net>; from Ian T Zimmerman on Fri, Jan 29, 1999 at 08:10:20AM -0800 Organization: INRIA, BP 105, F-78153 Le Chesnay Cedex Phone: (33) 1 3963 5317 -- Sec: (33) 1 3963 5570 -- Fax: (33) 1 3963 5684 Web: http://cristal.inria.fr/~remy Sender: weis > Toby Moth in his list of recent Ocaml work: > > > * Ocaml tools/Extensions > > From: Didier Remy > > Date: Wed, 2 Dec 1998 > > Where: N/A > > > Says: ( not on caml mailing list ) > > > By the way I made my own addition to the caml-mode in order to > > highlight errors in the toplevel interactive loop as well > > This, too has already been added to Jacques' snapshot :-) But the > rest of this abstract looks valuable, can we (either the list or me & > Jacques) see the code, please Didier? I thought I alrady sent it... Here is it (attached). This is not doing much, but I find this quite convenient when using the toplevel as a powerful pocket calculator desk. It is a quick unpolished patch over Jacques' mode that reuses the error highlighting code from the compile mode to make it work in the toplevel mode as well. Another trivial thing is the redefinition of eval-phrase, so that the cursor moves to the end of the phrase unless an error occurs. This enables the evaluation of N phrases (prefix arg) or stop at the first error. -Didier.