]> git.eshelyaron.com Git - emacs.git/commitdiff
Must explicitly create unpropertized strings in mode-line
authorJoão Távora <joaotavora@gmail.com>
Thu, 31 Dec 2020 13:40:09 +0000 (13:40 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 31 Dec 2020 14:03:53 +0000 (14:03 +0000)
Otherwise, an innocent string like " " will mysteriously
pickup properties from some other minor mode.

Making this a separate commit in hopes of raising attention to this
possible bug.

* lisp/progmodes/flymake.el (flymake--mode-line-counter): Must
explicily create a new string unpropertized string

lisp/progmodes/flymake.el

index 32f4135119b3f40c1e687598e5e7ea468f70dfd3..8d1797fe3ce9260ad2d7090cf6c7161db19b402c 100644 (file)
@@ -1301,7 +1301,7 @@ correctly.")
                          (warning-numeric-level
                           flymake-suppress-zero-counters)))
                     (t t)))
-      `(,(if no-space "" " ")
+      `(,(if no-space "" '(:propertize " "))
         (:propertize
          ,(format "%d" count)
          face ,face