emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: add-hook sets hook globally if buffer-local hook is nil


From: Klaus Zeitler
Subject: Re: add-hook sets hook globally if buffer-local hook is nil
Date: 22 Oct 2003 13:00:32 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Lute" == Lute Kamstra <address@hidden> writes:
    Lute> 
    Lute> Alan Shutko <address@hidden> writes:
    >> Evaluate this:
    >> 
    >> (add-hook 'local-write-file-hooks 'beep)
    >> 
    >> Global value of local-write-file-hooks contains beep!  
    Lute> 
    Lute> This new behavior is intended; it is documented in the docstring of
    Lute> add-hook and in the section on hooks in the Lisp Reference manual.
    Lute> The change is mentioned in the NEWS file.  Note furthermore that
    Lute> local-write-file-hooks is obsolete.

all I found there was the following section:

** Renamed file hooks to follow the convention:
find-file-hooks to find-file-hook,
find-file-not-found-hooks to find-file-not-found-functions,
write-file-hooks to write-file-functions,
write-contents-hooks to write-contents-functions.
Marked local-write-file-hooks as obsolete (use the LOCAL arg of `add-hook').


IMHO this isn't very clear. I think there should be an entry for the change
to add-hook.

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
 ------------------------------------------
---
Man, Windows takes sooo long to boot up!
Yeah. But it halts quickly.




reply via email to

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