Silence warning with global minor mode :predicate
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Silence byte-compiler warning when :predicate is used.
This commit is contained in:
parent
f5f7343ac4
commit
a65b6aac6b
1 changed files with 2 additions and 1 deletions
|
@ -524,7 +524,8 @@ on if the hook has explicitly disabled it.
|
|||
(progn
|
||||
(put ',global-mode 'globalized-minor-mode t)
|
||||
:autoload-end
|
||||
(defvar-local ,MODE-major-mode nil))
|
||||
(defvar-local ,MODE-major-mode nil)
|
||||
,@(when predicate `((defvar ,MODE-predicate))))
|
||||
;; The actual global minor-mode
|
||||
(define-minor-mode ,global-mode
|
||||
,(concat (format "Toggle %s in all buffers.\n" pretty-name)
|
||||
|
|
Loading…
Add table
Reference in a new issue