]> git.eshelyaron.com Git - emacs.git/commitdiff
(eval-defun-1): Make sure `defvar' always sets the default value.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 28 Jan 2005 16:27:13 +0000 (16:27 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 28 Jan 2005 16:27:13 +0000 (16:27 +0000)
lisp/emacs-lisp/lisp-mode.el

index f181f3683f0b57d3e5f58443c4909a121cfb5a28..86c3ac1bab44ddb536627d7f1ab95dc0e50fc2b8 100644 (file)
@@ -1,6 +1,6 @@
 ;;; lisp-mode.el --- Lisp mode, and its idiosyncratic commands
 
-;; Copyright (C) 1985, 1986, 1999, 2000, 2001, 2003, 2004
+;; Copyright (C) 1985, 1986, 1999, 2000, 2001, 2003, 2004, 2005
 ;;           Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
@@ -602,7 +602,7 @@ Reinitialize the face according to the `defface' specification."
              (boundp (cadr form)))
         ;; Force variable to be re-set.
         `(progn (defvar ,(nth 1 form) nil ,@(nthcdr 3 form))
-                (setq ,(nth 1 form) ,(nth 2 form))))
+                (setq-default ,(nth 1 form) ,(nth 2 form))))
        ;; `defcustom' is now macroexpanded to
        ;; `custom-declare-variable' with a quoted value arg.
        ((and (eq (car form) 'custom-declare-variable)