[Top][All Lists]

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

Re: add-hook versus custom-set-variables

From: Stefan Monnier
Subject: Re: add-hook versus custom-set-variables
Date: Fri, 30 Dec 2005 17:25:59 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> eval-after-load is a function, not a macro.  I know it's counter
>> intuitive.

> Perhaps the docstring and manual for eval-after-load should highlight
> this pitfall. Maybe it should mention that its form is evaluated
> immediately and that the form should be quoted to get expected
> behavior.

Better would be to kill the beast and replace it with a macro.
Sadly, keeping the same name is not an option for backward
compatibility reasons.

Maybe we could introduce a new macro `do-after-load' or `after-load' or


reply via email to

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