emacs-devel
[Top][All Lists]
Advanced

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

Re: How do you check for a feature during byte compilation?


From: Lennart Borgman
Subject: Re: How do you check for a feature during byte compilation?
Date: Wed, 31 Dec 2008 02:19:42 +0100

On Tue, Dec 30, 2008 at 9:20 PM, Stefan Monnier
<address@hidden> wrote:
>> This does not work during byte compilation AFAICS, featurep returns nil:
>>   (when (featurep 'typesetter)
>>     (defun typesetter-init-nxhtml-mode ()
>>       (typesetter-init-html-mode)))
>> What do you do instead?
>
> In what way does it fail to work?  Give us more info.

My mistake. Top level forms are not evaluated during byte compilation
unless you use eval-when-compile or eval-and-compile, I forgot that.




reply via email to

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