unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Alan Mackenzie <acm@muc.de>,  emacs-devel@gnu.org
Subject: Re: Incorrect byte compiler error/warning message positions. A possible fix.
Date: Mon, 15 Nov 2021 13:29:23 +0800	[thread overview]
Message-ID: <87sfvy0yx8.fsf@yahoo.com> (raw)
In-Reply-To: <87sfvy2dsl.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 15 Nov 2021 06:22:50 +0100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> The byte compiler reports wrong source positions in its error and
>> warning messages; not every time, but perhaps most of the time.  There
>> are currently at least six open bugs for this problem, e.g. bug #22288.

> In my experience, the vast majority of the warning messages point to the
> correct position.  But, yes, it does sometimes give the wrong position.

I wouldn't say the "correct position", but somewhere close to the
correct position.

It could be, for example, a few lines above where it should actually be,
when giving diagnostics for unused lexical bindings.

But it is usually close enough for people to quickly locate and solve
the error.



  reply	other threads:[~2021-11-15  5:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14 19:13 Incorrect byte compiler error/warning message positions. A possible fix Alan Mackenzie
2021-11-15  5:22 ` Lars Ingebrigtsen
2021-11-15  5:29   ` Po Lu [this message]
2021-11-15 11:52     ` Alan Mackenzie
2021-11-15 11:49   ` Alan Mackenzie
2021-11-15 21:19     ` Stefan Monnier
2021-11-16  7:32       ` Lars Ingebrigtsen
2021-11-16 17:05       ` Alan Mackenzie

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=87sfvy0yx8.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /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).