diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2000-05-16 21:37:32 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2000-05-16 21:37:32 +0000 |
commit | dd6b8ea7a87c3597abb9c5ff3e527b30507017ac (patch) | |
tree | a045fb6501fdce6b1682db5cf59a14060aca34ee /lisp/subr.el | |
parent | 4ba7246dc5dcfa7480e10fa4a6f6df1bda12611e (diff) | |
download | emacs-dd6b8ea7a87c3597abb9c5ff3e527b30507017ac.tar.gz |
(remove-hook): `setq' hook-value, not `set'.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 38b721f2511..65d26d2007a 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -735,7 +735,7 @@ To make a hook variable buffer-local, always use (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 |