]> code.delx.au - gnu-emacs/commitdiff
(add-hook): setq hook-value, not set
authorSam Steingold <sds@gnu.org>
Tue, 16 May 2000 14:47:46 +0000 (14:47 +0000)
committerSam Steingold <sds@gnu.org>
Tue, 16 May 2000 14:47:46 +0000 (14:47 +0000)
lisp/ChangeLog
lisp/subr.el

index c798d6a0a23cde9c743552b586b6be749b1dbb4e..ee70d51bc1c708ceed78ea4a75fec32b23ee646f 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-16  Sam Steingold  <sds@gnu.org>
+
+       * subr.el (add-hook): `setq' hook-value, not `set'.
+
 2000-05-16  Gerd Moellmann  <gerd@gnu.org>
 
        * startup.el (command-line-1): Mention the FAQ in the startup
index d99153bf8cd43dd3c8c4f84e4ca491637260681f..38b721f2511e63348fd967ac2c8c90a200912e40 100644 (file)
@@ -704,7 +704,7 @@ function, it is changed to a list of functions."
   (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