summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2022-12-15 13:36:14 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2022-12-15 13:36:14 -0500
commit26243f7b65e015a1676ed7f4a8a8e712ed7d6193 (patch)
treea11aac3257c89c9cd4a5d8056500a5de8750f02b
parent6e2923d80f822e6da470860f51ba13bcad10d0a3 (diff)
downloademacs-26243f7b65e015a1676ed7f4a8a8e712ed7d6193.tar.gz
compile.el: Fix regression with nb of errors in modeline
* lisp/progmodes/compile.el (compilation-mode-line-errors): Mark it as risky-local, like `defconst` used to do for us.
-rw-r--r--lisp/progmodes/compile.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index e8ada9388e1..319dc97e699 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -186,6 +186,7 @@ and a string describing how the process finished.")
face compilation-info
help-echo "Number of informational messages so far")
"]"))
+(put 'compilation-mode-line-errors 'risky-local-variable t)
;; If you make any changes to `compilation-error-regexp-alist-alist',
;; be sure to run the ERT test in test/lisp/progmodes/compile-tests.el.