all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 24449-done@debbugs.gnu.org
Subject: bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place.
Date: Sat, 17 Sep 2016 12:58:36 +0000	[thread overview]
Message-ID: <20160917125836.GB3410@acm.fritz.box> (raw)
In-Reply-To: <83intu50om.fsf@gnu.org>

Hello, Eli.

On Sat, Sep 17, 2016 at 12:35:05PM +0300, Eli Zaretskii wrote:
> > Date: Sat, 17 Sep 2016 08:29:52 +0000
> > Cc: 24449@debbugs.gnu.org
> > From: Alan Mackenzie <acm@muc.de>

> > 5. The change I made yesterday appears not to have made anything any
> >   worse.

> Thanks, I guess that means you should push it.

Done.  I took the liberty of amending the comment before
`byte-compile-set-symbol-position'.

> > What I would suggest should get done: we should make the column numbers
> > 0-based

> This should be a separate change, and before doing it, we should make
> sure to fix code that assumes the columns to be 1-based (e.g, what
> does "C-x `" do?).

Ah.  OK.

> > suitable places to call `byte-compile-set-symbol-position' for
> > the error messages we see should be identified, the calls inserted, and
> > another bootstrap build done to see how much this helps.

> Sounds a good idea, thanks.

Done this too, in one place, which causes the "obsolete function"
messages to get the correct position.

Messages generated by `macroexp--warn-and-return' continue to have wrong
positions.  I'm not sure it's possible to fix this, and my intellect
isn't up to working out how it works, at least not today.

The messages about unknown functions, or not known to be defined at
runtime functions continue to give EOF as their position.  This was the
use case for the parameter `allow-previous' in
`byte-compile-set-symbol-position', but it didn't work before, and it
continues not to work just as well now.  It would be possible to fix
this by not deleting elements from `read-symbol-positions-list', but
this would slow down compilation (even if only a little), and generally
seems not to be worth the trouble.

-- 
Alan Mackenzie (Nuremberg, Germany).





  parent reply	other threads:[~2016-09-17 12:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-16 11:31 bug#24449: Emacs 25.1 RC2: Byte compiler reports error in wrong place Alan Mackenzie
2016-09-16 13:22 ` Eli Zaretskii
2016-09-16 13:33   ` Alan Mackenzie
2016-09-16 15:09     ` Eli Zaretskii
2016-09-16 16:08       ` Alan Mackenzie
2016-09-16 18:34       ` Alan Mackenzie
2016-09-16 19:03         ` Eli Zaretskii
2016-09-17  8:29           ` Alan Mackenzie
2016-09-17  9:35             ` Eli Zaretskii
2016-09-17 10:06               ` Andreas Schwab
2016-09-17 12:58               ` Alan Mackenzie [this message]
2016-09-17 19:56                 ` Michael Heerdegen
2016-09-17 20:46                   ` Alan Mackenzie
2016-09-17 20:51                     ` Michael Heerdegen
2016-09-17 20:59                       ` 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

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

  git send-email \
    --in-reply-to=20160917125836.GB3410@acm.fritz.box \
    --to=acm@muc.de \
    --cc=24449-done@debbugs.gnu.org \
    --cc=eliz@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.