]> git.eshelyaron.com Git - emacs.git/commit
Implement a :predicate parameter for globalized minor modes
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 26 Oct 2020 18:13:14 +0000 (19:13 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 26 Oct 2020 18:15:36 +0000 (19:15 +0100)
commitb8b18cf34a04af0f359e01c29333d58848307a13
treed45c69ecd5cbdcc4e3139e48caf028f34a76f57b
parent9e8fb4a7cb7d2e460557dfc88d82b289df809a27
Implement a :predicate parameter for globalized minor modes

* doc/lispref/modes.texi (Defining Minor Modes): Describe the new
:predicate keyword (bug#44232).

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Allow a new :predicate keyword.
(easy-mmode--globalized-predicate-p): New function.
doc/lispref/modes.texi
etc/NEWS
lisp/emacs-lisp/easy-mmode.el
test/lisp/emacs-lisp/easy-mmode-tests.el [new file with mode: 0644]