caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: Jonathan Protzenko <jonathan.protzenko@gmail.com>
Cc: William Smith <bills@emu-bark.com>,
	Caml-list <caml-list@inria.fr>,
	 Gabriel Scherer <gabriel.scherer@gmail.com>
Subject: Re: [Caml-list] modified error messages for ocamlc
Date: Sun, 14 Apr 2013 20:18:21 +0100	[thread overview]
Message-ID: <F32AE05E1A94490CB941897D28D23240@erratique.ch> (raw)
In-Reply-To: <516AF334.2040202@gmail.com>

Le dimanche, 14 avril 2013 à 19:19, Jonathan Protzenko a écrit :
> The OCaml mode for emacs that's distributed along with the OCaml  
> sources contains (caml.el) :
>  
> 796 ;; Newer emacs versions support line/char ranges
> 797 ;; We will adapt OCaml to output error messages in a compatible  
> format.
> 798 ;; In the meantime we add the new format here in addition to the  
> old one.
> 799 (defconst caml-error-regexp-newstyle
> 800 "^[ A-\377]+ \"\\([^\"\n]+\\)\", line \\([0-9]+\\), char  
> \\([0-9]+\\) to line \\([0-9]+\\), char \\([0-9]+\\):"
> 801 "Regular expression matching the error messages produced by  
> ocamlc/ocamlopt.")
>  
> So there are provisions already in the Emacs mode for parsing  
> multi-line error formats. What refrains us from switching directly to  
> the format that's recognized by the already-distributed Caml mode ?


This discussion is very confusing. There's nothing special to be done here, it already works… The "old" version of the original message does exactly what it needs to do to highlight multiline errors.  

Daniel



  reply	other threads:[~2013-04-14 19:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-14 15:20 William Smith
2013-04-14 16:25 ` Daniel Bünzli
2013-04-14 17:06   ` Gabriel Scherer
2013-04-14 17:57     ` Daniel Bünzli
2013-04-14 18:19       ` Jonathan Protzenko
2013-04-14 19:18         ` Daniel Bünzli [this message]
2013-04-14 20:01           ` [Caml-list] " Christopher Zimmermann
2013-04-15 15:37   ` [Caml-list] " Jacques Le Normand
2013-04-15  6:26 ` Raphaël Proust
2013-04-16  0:32 ` [Caml-list] " Stefan Monnier
2013-04-18 16:40 [Caml-list] " William Smith
2013-04-21  7:37 ` Gabriel Scherer
2013-04-21 10:53   ` Daniel Bünzli
2013-04-21 11:28     ` Gabriel Scherer

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=F32AE05E1A94490CB941897D28D23240@erratique.ch \
    --to=daniel.buenzli@erratique.ch \
    --cc=bills@emu-bark.com \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@gmail.com \
    --cc=jonathan.protzenko@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).