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 TAA26846; Wed, 10 Oct 2001 19:44:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 TAA26978 for ; Wed, 10 Oct 2001 19:44:20 +0200 (MET DST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f9AHiJ109568 for ; Wed, 10 Oct 2001 19:44:19 +0200 (MET DST) Received: from localhost (patrick@localhost) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f9AHiG357812; Wed, 10 Oct 2001 13:44:16 -0400 (EDT) (envelope-from patrick@watson.org) Date: Wed, 10 Oct 2001 13:44:15 -0400 (EDT) From: Patrick M Doane To: Sven cc: caml-list@inria.fr Subject: [Caml-list] Re: Emacs comment support (was OCamldoc) In-Reply-To: <20011010192551.A6465@dpt-info.u-strasbg.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 10 Oct 2001, Sven wrote: > On Wed, Oct 10, 2001 at 01:07:19PM -0400, Patrick M Doane wrote: > > > > Will there be any issues with writing comments like this? > > > > (** line 1 > > * line 2 > > * line 3 > > *) > > Yes, this is nice, and the extra * may even be provided by your editor > automatically, like what happens with C code, provided the corresponding > vim/emacs rules are extended accordyingly (but then maybe vim 6 can already do > thi ?). This reminds me of a current gripe with the Tuareg mode (and I believe the O'Caml mode that comes with the distribution has the same issue). If I have a multi-line comment line this: (* line 1 * line 2 * line 3 *) and then hit M-q to refill the region I get: (* line 1 * line 2 * line 3 *) In the C mode, refilling a similar comment produces /* line 1 line 2 line 3 */ and multiline comments maintain the '*' pattern appropriately on each line. I have no idea how to implement Emacs modes, but does anyone have any idea how difficult it would be to fix this? Editing documentation in comments can be very tedious because of the need to manually refill paragraphs. Patrick ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr