1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet.

This commit is contained in:
Stefan Monnier 2000-08-16 20:16:33 +00:00
parent d683704ce5
commit cb5da1a31e

View 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))))))