GNU bug report logs -
#73746
Master: Wrong position for byte compiler warning message(2).
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Fri, 11 Oct 2024 17:08:01 UTC
Severity: normal
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> > 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 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.