From: Ian T Zimmerman <itz@rahul.net>
To: Basile Starynkevitch - LETR/IA <basile@mimas.saclay.cea.fr>
Cc: caml-list@inria.fr
Subject: Re: Error messages in Caml &co
Date: Wed, 16 Oct 1996 07:45:14 -0700 [thread overview]
Message-ID: <199610161445.HAA04723@kronstadt.rahul.net> (raw)
In-Reply-To: Basile Starynkevitch - LETR/IA's message of Thu, 10 Oct 1996 16:35:40 +0200
In article <199610101435.QAA14156@mimas.serma.cea.fr> Basile
Starynkevitch - LETR/IA <basile@mimas.saclay.cea.fr> 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 <itz@rahul.net>
Days spent working only for oneself are twice wasted;
it would have been better not to work at all.
prev parent reply other threads:[~1996-10-16 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-10 14:35 Basile Starynkevitch - LETR/IA
1996-10-16 7:50 ` Xavier Leroy
1996-10-16 14:45 ` Ian T Zimmerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199610161445.HAA04723@kronstadt.rahul.net \
--to=itz@rahul.net \
--cc=basile@mimas.saclay.cea.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox