GNU bug report logs -
#8638
24.0.50; Imenu should not include vacuous defvars
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sun, 8 May 2011 18:16:01 UTC
Severity: minor
Found in version 24.0.50
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 8638 <at> debbugs.gnu.org (full text, mbox):
> > It's still a vacuous definition. And any defvar tells the
> > byte compiler that a variable has dynamic scope, no?
>
> It also tells the user, so having them in the imenu doesn't seem
> superfluous to me (I'm talking again of lexically-scoped packages).
Submenu `Variables' should be for variable definitions, not vacuous defvars that
might be used to indicate something to the byte compiler.
As I said, if you want to also present those to the user, then let's put them in
a separate submenu. They amount to byte-compiler declarations. Perhaps there
are other byte-compiler-related constructs that could also be added to the same
submenu. Call it `Byte-Compiler' or `Declarations', perhaps.
But these are not variable definitions in the same sense as full defvars are.
Mixing them in with full definitions, in the same submenu, just amounts to
noise. Separating them out in a separate menu would be fine.
This bug report was last modified 12 years and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.