]> git.eshelyaron.com Git - emacs.git/commitdiff
compile.el: Fix regression with nb of errors in modeline
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 15 Dec 2022 18:36:14 +0000 (13:36 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 15 Dec 2022 18:36:14 +0000 (13:36 -0500)
* lisp/progmodes/compile.el (compilation-mode-line-errors): Mark it as
risky-local, like `defconst` used to do for us.

lisp/progmodes/compile.el

index e8ada9388e1869a024113ae3b7f4b16dcb4d8b21..319dc97e6999226ab56db962e4e0b31aeb988c7b 100644 (file)
@@ -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.