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: Lute Kamstra
Subject: Re: add-hook sets hook globally if buffer-local hook is nil
Date: Wed, 22 Oct 2003 09:11:26 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Alan Shutko <address@hidden> writes:

> Evaluate this:
>
> (add-hook 'local-write-file-hooks 'beep)
>
> Global value of local-write-file-hooks contains beep!  

This new behavior is intended; it is documented in the docstring of
add-hook and in the section on hooks in the Lisp Reference manual.
The change is mentioned in the NEWS file.  Note furthermore that
local-write-file-hooks is obsolete.

  Lute.




reply via email to

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