help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: hook syntax (was: Re: how to get around deprecated function)


From: Emanuel Berg
Subject: Re: hook syntax (was: Re: how to get around deprecated function)
Date: Fri, 01 May 2015 06:06:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> The "incorrect" syntax always worked, until I just
> now found that for `message-mode-hook' I must do
>
>     (setq message-mode-hook '(disable-super-global-keys))
>
> So maybe I should retract my piece of advice. Or at
> least, if the setq method is to be used, make it
> a list (even for singular functions) at the first
> sight of trouble. Because that might be just it...

To make this easier to reproduce, try this:

    (setq message-mode-hook '(emacs-version)) ; no error
    (setq message-mode-hook 'emacs-version)   ; error
    (gnus-post-news 'post "")                 ; when you do this

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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