From: Stefan Monnier Date: Wed, 16 Aug 2000 20:16:33 +0000 (+0000) Subject: (define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet. X-Git-Tag: emacs-pretest-21.0.90~2242 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb5da1a31e359792533ba93e6edcbc1fd3c0e321;p=emacs.git (define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet. --- 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))))))