changeset 104732:9792b61a3641

(define-minor-mode): Don't use symbol-value with constant argument.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 30 Aug 2009 14:20:43 +0000
parents 5e848e9d48e2
children 9902de48eab4
files lisp/ChangeLog lisp/emacs-lisp/easy-mmode.el
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Aug 30 14:19:25 2009 +0000
+++ b/lisp/ChangeLog	Sun Aug 30 14:20:43 2009 +0000
@@ -1,5 +1,8 @@
 2009-08-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* emacs-lisp/easy-mmode.el (define-minor-mode): Don't use symbol-value
+	with constant argument.
+
 	* emacs-lisp/debug.el (debugger-setup-buffer): Make it multibyte.
 
 	* emacs-lisp/cl.el (cl-macro-environment): Don't define it here.
--- a/lisp/emacs-lisp/easy-mmode.el	Sun Aug 30 14:19:25 2009 +0000
+++ b/lisp/emacs-lisp/easy-mmode.el	Sun Aug 30 14:20:43 2009 +0000
@@ -263,8 +263,7 @@
 
        (add-minor-mode ',mode ',lighter
 		       ,(if keymap keymap-sym
-			  `(if (boundp ',keymap-sym)
-			       (symbol-value ',keymap-sym)))))))
+			  `(if (boundp ',keymap-sym) ,keymap-sym))))))
 
 ;;;
 ;;; make global minor mode