bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62376: 30.0.50; global-display-fill-column-indicator-modes broken?


From: Stefan Monnier
Subject: bug#62376: 30.0.50; global-display-fill-column-indicator-modes broken?
Date: Wed, 22 Mar 2023 13:52:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

>> So, today I customized the
>> 
>> > global-display-fill-column-indicator-modes
>> 
>> variable, and it does not work.

I think it's a thinko in the code: we define the variable but the code
hardcode the var's default value instead of looking up the variable's
actual value.

The patch below should fix it.


        Stefan


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 @@ define-globalized-minor-mode
          (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))))
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]