summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el2
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