unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jacques Le Normand <rathereasy@gmail.com>
Cc: 6416@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#6416: next-error mis-highlights ocaml error message locations
Date: Thu, 26 Aug 2021 20:30:13 +0200	[thread overview]
Message-ID: <87lf4ouki2.fsf@gnus.org> (raw)
In-Reply-To: <AANLkTinjJagGyJZ1_rGMju8eGmNnNnnzazC1XSLNe5rc@mail.gmail.com> (Jacques Le Normand's message of "Sun, 13 Jun 2010 19:31:53 -0400")

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

Jacques Le Normand <rathereasy@gmail.com> writes:

> I apologize, the numbers in the example were erroneous. Take this example
> instead:
>
> let foo: int = 
>   "foo"
>   ^
>     "bar"
>
> gives the error:
> File "/home/palomer/temp/test.ml", line 2, characters 2-21:
>
> ocamlc starts counting at 0. it counts newlines and tabs as 1. I obtained these
> results empirically.  The previous example means:
> "the third character from the start of line 2 to the 22nd character from the
> start of line 2"
>
> I've filed a bug report with ocaml developers (and have even suggested a
> simple fix.) I can't say how inclined they will be to fix it. The bug id is
> 0005070. The mantis url is http://caml.inria.fr/mantis/

(I'm going through old bug reports that unfortunately weren't
resolved at the time.)

I'm not very familiar with ocaml, but I tried this recipe in Emacs 28 on
Debian/bullseye (so I guess a pretty new ocamlc), and it seems like it's
doing the right thing now?


[-- Attachment #2: Type: image/png, Size: 34363 bytes --]

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]


Is this working as expected now?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

  parent reply	other threads:[~2021-08-26 18:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-13 18:26 bug#6416: next-error mis-highlights ocaml error message locations Jacques Le Normand
2010-06-13 22:46 ` Stefan Monnier
2010-06-13 23:31   ` Jacques Le Normand
2010-06-14 13:23     ` Stefan Monnier
2021-08-26 18:30     ` Lars Ingebrigtsen [this message]
2021-09-23 21:55       ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lf4ouki2.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=6416@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rathereasy@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).