GNU bug report logs -
#21185
25.0.50; byte-compiler warn on quote lexical var
Previous Next
Reported by: stephen_leake <at> stephe-leake.org
Date: Tue, 4 Aug 2015 09:18:02 UTC
Severity: minor
Tags: wontfix
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> I've been bitten by this problem when converting code to use lexical
> binding; it would be helpful if the byte-compiler warned about it.
Agreed, but I haven't figured out how to make this work.
There are two problems:
1- detect not just things like « 'var » but also things like « '(var1
var2 var3) » since such occur in a few places as well.
2- don't swamp the user with false positives.
Problem 2 is by far the biggest. It's very common to have a local
variable `face' and at the same time to use the symbol `face' (quoted),
for example.
I do have such a warning in my local hacks (it outputs a warning for any
'<var> where <var> is a locally bound lexical variable) and find it
unbearable, even though I'm usually considered to tolerate warnings much
better than most.
Stefan
This bug report was last modified 3 years and 316 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.