diff lisp/subr.el @ 28940:2a91228f7aa3

(add-hook): setq hook-value, not set
author Sam Steingold <sds@gnu.org>
date Tue, 16 May 2000 14:47:46 +0000
parents e62636f5d724
children d32d8029558c
line wrap: on
line diff
--- a/lisp/subr.el	Tue May 16 14:37:08 2000 +0000
+++ b/lisp/subr.el	Tue May 16 14:47:46 2000 +0000
@@ -704,7 +704,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 addition if necessary
     (unless (member function hook-value)
       (setq hook-value