]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix :predicate handling in globalized minor modes
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 22 Mar 2023 17:52:50 +0000 (13:52 -0400)
committerEli Zaretskii <eliz@gnu.org>
Thu, 23 Mar 2023 09:03:07 +0000 (11:03 +0200)
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Fix a thinko.  (Bug#62376)

lisp/emacs-lisp/easy-mmode.el

index 5721470ad0d16fee82d75c6ba62d37957f473131..e84207da2dfa659b0a32c8aa40efeeb58f943c9f 100644 (file)
@@ -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))))