From cb5da1a31e359792533ba93e6edcbc1fd3c0e321 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 16 Aug 2000 20:16:33 +0000 Subject: [PATCH] (define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet. --- lisp/emacs-lisp/easy-mmode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))))) -- 2.39.2