changeset 30876:76bba9fc3c22

(define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 16 Aug 2000 20:16:33 +0000
parents e86dbf76e699
children e55b142a5369
files lisp/emacs-lisp/easy-mmode.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/easy-mmode.el	Wed Aug 16 19:57:31 2000 +0000
+++ b/lisp/emacs-lisp/easy-mmode.el	Wed Aug 16 20:16:33 2000 +0000
@@ -189,7 +189,8 @@
 
        (add-minor-mode ',mode ',lighter
 		       ,(if keymap keymap-sym
-			  `(if (boundp ',keymap-sym) ,keymap-sym)))
+			  `(if (boundp ',keymap-sym)
+			       (symbol-value ',keymap-sym))))
        
        ;; If the mode is global, call the function according to the default.
        ,(if globalp `(if ,mode (,mode 1))))))