GNU bug report logs - #73746
Master: Wrong position for byte compiler warning message(2).

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Fri, 11 Oct 2024 17:08:01 UTC

Severity: normal

Full log


Message #35 received at 73746 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 73746 <at> debbugs.gnu.org,
 Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>,
 73725 <at> debbugs.gnu.org
Subject: Re: bug#73725: Master: Wrong position for byte compiler warning
 message.
Date: Wed, 23 Oct 2024 09:30:23 -0400
>> > I remember removing it, but can't remember exactly why.  When I byte
>> > compile the code, I don't get an undeclared variable warning for it, for
>> > some reason.
>> [ Interesting.  I'll try to remember to track down this sucker later.  ]
>
> I think I understand this, now.  It's a "use-mention" confusion.  ;-).
> When macroexp-macroexpand is getting compiled, the compiler calls (the
> loaded or compiled version of) that function.  Running the function
> `setq's macroexpanded, hence binds it.

Ah, right, yes.  That makes sense, thanks for saving me the trouble to
track it down.

> I'm not sure there's much that can be done about this "bug".  I'm even
> less sure that it's worth the trouble.  Maybe there could be a more
> rigorous check of the variable's existence than (boundp var).  But, as I
> say, it's likely not worth the trouble.  Maybe there are other free
> variables hiding in the compiler, though.

Yeah, it's possible, but I won't lose too much sleep over it.


        Stefan





This bug report was last modified 221 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.