Mercurial > emacs
changeset 28947:d32d8029558c
(remove-hook): `setq' hook-value, not `set'.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 16 May 2000 21:36:57 +0000 |
parents | f100c3d709e4 |
children | 39632cb551a0 |
files | lisp/subr.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/subr.el Tue May 16 20:51:59 2000 +0000 +++ b/lisp/subr.el Tue May 16 21:36:57 2000 +0000 @@ -735,7 +735,7 @@ (let ((hook-value (if local (symbol-value hook) (default-value hook)))) ;; If the hook value is a single function, turn it into a list. (when (or (not (listp hook-value)) (eq (car hook-value) 'lambda)) - (set hook-value (list hook-value))) + (setq hook-value (list hook-value))) ;; Do the actual removal if necessary (setq hook-value (delete function (copy-sequence hook-value))) ;; If the function is on the global hook, we need to shadow it locally