summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2000-08-16 20:16:33 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2000-08-16 20:16:33 +0000
commitcb5da1a31e359792533ba93e6edcbc1fd3c0e321 (patch)
treeff01a0c591cb87d0ceecca9740104f093e7d3cb9 /lisp/emacs-lisp
parentd683704ce5f986c06947199b44517b789bb64551 (diff)
downloademacs-cb5da1a31e359792533ba93e6edcbc1fd3c0e321.tar.gz
emacs-cb5da1a31e359792533ba93e6edcbc1fd3c0e321.tar.bz2
emacs-cb5da1a31e359792533ba93e6edcbc1fd3c0e321.zip
(define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/easy-mmode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 95a0211769d..0d1b092e515 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -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))))))