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 NAA23125; Tue, 22 Jul 2003 13:17:55 +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 NAA04119 for ; Tue, 22 Jul 2003 13:17:53 +0200 (MET DST) Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h6MBHqf18347 for ; Tue, 22 Jul 2003 13:17:53 +0200 (MET DST) Received: from spi.lip6.fr (spi.lip6.fr [132.227.83.193]) by isis.lip6.fr (8.12.9/jtpda-5.4+victor) with ESMTP id h6MBHqZS014163 ; Tue, 22 Jul 2003 13:17:52 +0200 X-pt: isis.lip6.fr Received: from inria.fr ([132.227.66.219]) by spi.lip6.fr (8.11.6/jtpda-5.2) with ESMTP id h6MBI0P26827 ; Tue, 22 Jul 2003 13:18:00 +0200 Date: Tue, 22 Jul 2003 13:14:04 +0200 Subject: Re: [Caml-list] camlp4 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) Cc: caml-list@inria.fr To: Dmitry Bely From: Damien Doligez In-Reply-To: Message-Id: <9A62F106-BC35-11D7-9DA6-0003930FCE12@inria.fr> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) X-Scanned-By: isis.lip6.fr X-Loop: caml-list@inria.fr X-Spam: no; 0.00; damien:01 caml-list:01 camlp:01 tuareg:01 eol:01 buffer:01 incorrectly:01 non-trivial:01 ocaml:01 dmitry:01 doligez:01 emacs:01 bely:01 syntax:02 compile:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tuesday, July 8, 2003, at 05:38 PM, Dmitry Bely wrote: > There is another problem with camlp4. When it reports syntax error, it > doesn't count the lines, say: > > File "test.ml", line 1, characters 12398-12401: > <...> > > (line is always equal to 1, at least under Windows) > > I compile Ocaml sources within XEmacs/Win32/tuareg mode, and Emacs > consider > EOL in the buffer as ONE character, while camlp4 counts it as TWO > chars. So > the error place is pointed incorrectly. > > How do you think, where it could be fixed? (camlp4, tuareg,...)? It needs to be fixed in camlp4. It will need a non-trivial amount of work, so it will be done only after release 3.07. In the meantime, you could try to convince emacs that CR LF is really two characters, not one. -- Damien ------------------- 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