[Bug: 21.4.17] add-hook fails to make hook buffer-local
Steve Youngs
steve at sxemacs.org
Thu Jun 2 10:12:15 EDT 2005
* 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.
--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| I am Dyslexic of Borg. |
| Fusistance is retile. Your arse will be laminated. |
|------------------------------------<steve at sxemacs.org>---|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 256 bytes
Desc: not available
Url : http://calypso.tux.org/pipermail/xemacs-beta/attachments/20050603/92ad8e6b/attachment.bin
More information about the XEmacs-Beta
mailing list