From 930b9fdd3ab9185e2faba8a08fbae81c82fa434a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 22 Mar 2023 13:52:50 -0400 Subject: [PATCH] Fix :predicate handling in globalized minor modes * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix a thinko. (Bug#62376) --- lisp/emacs-lisp/easy-mmode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))) -- 2.39.2