# HG changeset patch # User Stefan Monnier # Date 1067870688 0 # Node ID ac21698ba968b15cbc32e1835e4dbe8cd8f044d6 # Parent 5feae36d70a92a9c239a0be818712e96599f340a (add-hook): Fix last change. diff -r 5feae36d70a9 -r ac21698ba968 lisp/subr.el --- a/lisp/subr.el Mon Nov 03 06:23:11 2003 +0000 +++ b/lisp/subr.el Mon Nov 03 14:44:48 2003 +0000 @@ -856,9 +856,7 @@ (set (make-local-variable hook) (list t))) ;; Detect the case where make-local-variable was used on a hook ;; and do what we used to do. - (when (and (local-variable-p hook) - (not (and (consp (symbol-value hook)) - (memq t (symbol-value hook))))) + (unless (and (consp (symbol-value hook)) (memq t (symbol-value hook))) (setq local t))) (let ((hook-value (if local (symbol-value hook) (default-value hook)))) ;; If the hook value is a single function, turn it into a list.