From: Alan Mackenzie <acm@muc.de>
To: Po Lu <luangruo@yahoo.com>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
Subject: Re: Incorrect byte compiler error/warning message positions. A possible fix.
Date: Mon, 15 Nov 2021 11:52:47 +0000 [thread overview]
Message-ID: <YZJKD2zp+2cscvOJ@ACM> (raw)
In-Reply-To: <87sfvy0yx8.fsf@yahoo.com>
Hello, Po.
On Mon, Nov 15, 2021 at 13:29:23 +0800, Po Lu wrote:
> 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.
But not always. As I said, there are at least six bug reports about
this problem.
My expectations are somewhat higher. ;-) How can we call ourselves
hackers, when we can't even produce a fully functional byte compiler?
I'm hoping to close this gap.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2021-11-15 11:52 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
2021-11-15 11:52 ` Alan Mackenzie [this message]
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=YZJKD2zp+2cscvOJ@ACM \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=luangruo@yahoo.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).