Mercurial > emacs
diff lisp/emacs-lisp/easy-mmode.el @ 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 | 71b284c55162 |
children | 533a4e5f06e2 |
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))))))