[Bug: 21.4.17] add-hook fails to make hook buffer-local
David Kastrup
dak at gnu.org
Thu Jun 2 10:21:30 EDT 2005
Steve Youngs <steve at sxemacs.org> writes:
> * Ralf Angeli <angeli at iwi.uni-sb.de> writes:
>
> > When passing a non-nil value for the LOCAL argument of
> > `add-hook' the respective hook does not become buffer-local.
> > You can check this e.g. by executing
>
> > (add-hook 'find-file-hooks 'ignore nil t)
>
> > and checking the value of `find-file-hooks' in various buffers.
>
> Maybe it's just me, but after reading the doc string for `add-hook', I
> don't see the bug...
>
> ,----[ from `add-hook' doc string ]
> | The optional fourth argument, LOCAL, if non-nil, says to modify
> | the hook's buffer-local value rather than its default value.
> | This makes no difference if the hook is not buffer-local.
> | To make a hook variable buffer-local, always use
> | `make-local-hook', not `make-local-variable'.
> `----
>
> What you've described seems to be inline with what the documentation
> says it will do.
Quite so. Is there any general synch of APIs to post-Emacs-20
planned? Things like that are not particularly fun for cross-platform
developers.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
More information about the XEmacs-Beta
mailing list