]> git.eshelyaron.com Git - emacs.git/commitdiff
(define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 16 Aug 2000 20:16:33 +0000 (20:16 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 16 Aug 2000 20:16:33 +0000 (20:16 +0000)
lisp/emacs-lisp/easy-mmode.el

index 95a0211769dc4b3f1258d7ace147b64d278d5972..0d1b092e5152dccc54077608e6cfbbdce0a1c641 100644 (file)
@@ -189,7 +189,8 @@ With zero or negative ARG turn mode off.
 
        (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))))))