From: Stefan Monnier Date: Wed, 22 Mar 2023 17:52:50 +0000 (-0400) Subject: Fix :predicate handling in globalized minor modes X-Git-Tag: emacs-29.0.90~106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=930b9fdd3ab9185e2faba8a08fbae81c82fa434a;p=emacs.git Fix :predicate handling in globalized minor modes * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix a thinko. (Bug#62376) --- diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index 5721470ad0d..e84207da2df 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -509,7 +509,7 @@ on if the hook has explicitly disabled it. (setq turn-on-function `(lambda () (require 'easy-mmode) - (when (easy-mmode--globalized-predicate-p ,(car predicate)) + (when (easy-mmode--globalized-predicate-p ,MODE-predicate) (funcall ,turn-on-function))))) (_ (push keyw extra-keywords) (push (pop body) extra-keywords))))