[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Byte compiler and eval-when-compile

From: David Engster
Subject: Re: Byte compiler and eval-when-compile
Date: Thu, 18 Oct 2012 22:07:07 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Glenn Morris writes:
> The byte-compiler is not that smart and doesn't fully recognize defuns
> that are not at top-level. This one is "hidden" inside an if.
> You could eval-and-compile the whole thing (defun and all) to make the
> warning go away. But lisp-imenu-generic-expression is defined in every
> Emacs since at least 21.1, so I don't see the point of the if, unless
> it's an XEmacs thing, in which case featurep 'xemacs can be cleaner.

Actually, I first wanted to remove that test, but then bzr anotate
showed his name for that line, which is why I thought there *must* be
some very smart reason that test is there. Now I see that he only fixed
a typo there recently, so I guess I can safely remove it. :-)

Sorry for the noise,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]