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.
This commit is contained in:
Stefan Monnier 2022-12-15 13:36:14 -05:00
parent 6e2923d80f
commit 26243f7b65

View file

@ -186,6 +186,7 @@ and a string describing how the process finished.")
face compilation-info face compilation-info
help-echo "Number of informational messages so far") 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', ;; 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. ;; be sure to run the ERT test in test/lisp/progmodes/compile-tests.el.