From: Stefan Monnier Date: Thu, 15 Dec 2022 18:36:14 +0000 (-0500) Subject: compile.el: Fix regression with nb of errors in modeline X-Git-Tag: emacs-29.0.90~1151 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26243f7b65e;p=emacs.git 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. --- 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.