summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2020-12-31 13:40:09 +0000
committerJoão Távora <joaotavora@gmail.com>2020-12-31 14:03:53 +0000
commit1b449af5a1c0585da5b1d30c17a1d4b2d8954ddf (patch)
tree05a54e7b4fb796684bcc190eb55564a75bac2065 /lisp/progmodes
parent2e6fbb05b6c17a1481fd6b73491cfa9c66c0c84f (diff)
downloademacs-1b449af5a1c0585da5b1d30c17a1d4b2d8954ddf.tar.gz
Must explicitly create unpropertized strings in mode-line
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
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/flymake.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 32f4135119b..8d1797fe3ce 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -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