From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.6.10/8.6.6) id QAA16042 for caml-redistribution; Wed, 16 Oct 1996 16:50:56 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.6.10/8.6.6) with ESMTP id QAA15996 for ; Wed, 16 Oct 1996 16:46:44 +0200 Received: from kronstadt.rahul.net (kronstadt.rahul.net [204.95.70.128]) by nez-perce.inria.fr (8.7.6/8.7.1) with ESMTP id QAA17443 for ; Wed, 16 Oct 1996 16:46:36 +0200 (MET DST) Received: (from itz@localhost) by kronstadt.rahul.net (8.7.6/8.7.3) id HAA04723; Wed, 16 Oct 1996 07:45:14 -0700 Date: Wed, 16 Oct 1996 07:45:14 -0700 Message-Id: <199610161445.HAA04723@kronstadt.rahul.net> From: Ian T Zimmerman To: Basile Starynkevitch - LETR/IA CC: caml-list@inria.fr In-reply-to: Basile Starynkevitch - LETR/IA's message of Thu, 10 Oct 1996 16:35:40 +0200 Subject: Re: Error messages in Caml &co References: <199610101435.QAA14156@mimas.serma.cea.fr> Sender: weis In article <199610101435.QAA14156@mimas.serma.cea.fr> Basile Starynkevitch - LETR/IA writes: > Make caml error messages compatible with Emacs conventions, for > instance compatible with GNU error message convention > filename:number: error message Caml does more than most compilers: it reports the column number where the error occurred, not just the line number. That's why the format is different. > > Otherwise, give a hint regarding the value of the Emacs variable for > parsing error messages; I've added to my ~/.emacs > > (setq > compilation-error-regexp-alist > (append compilation-error-regexp-alist > '( > (".*lines? \\([0-9]+\\)[ \t]+of[ \t]+\"?\\([^\":\n]+\\)\"?" > 3 2) > ) > ) > ) > > But I am not sure it is correct. If people have a better value, > please tell it! > Please see the elisp code: the exact messages depend on the local language, hence your regex probably won't work in the German version (for one: lines => Zeilen). You may want to check out my extensions to Caml Emacs tools, available on ftp://ftp.rahul.net/pub/itz and the usual elisp archives (I hope). They have not been updated for ocaml (or csl), though, because I don't want to deal with unfortunate gratituous syntax incompatibilities. (Has anyone out there tried that? How do you cope eg. with the ' character being used both in char literals and type variables?) -- Ian T Zimmerman Days spent working only for oneself are twice wasted; it would have been better not to work at all.