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 08:26:02 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Alan" == Alan Shutko <address@hidden> writes:
    Alan> 
    Alan> Evaluate this:
    Alan> 
    Alan> (add-hook 'local-write-file-hooks 'beep)
    Alan> 
    Alan> Global value of local-write-file-hooks contains beep!  
    Alan> 
    Alan> This started, I think, with the last change to add-hook.  

I too stumbled into this yesterday. If this change was on purpose we need an
entry in the NEWS file. I added "nil t" to my add-hook calls for local
hooks to solve this problem.

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
 ------------------------------------------
---
Hanson's Treatment of Time:  There are never enough hours
in a day, but always too many days before Saturday.




reply via email to

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