From ef6715364dd94f98dcdf60ff295c89ac856de882 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Fri, 12 Jul 2019 00:46:12 +0300 Subject: [PATCH] * lisp/progmodes/compile.el (compilation-filter): Use font-lock-ensure to update the number of errors in compilation-mode-line-errors displayed in the mode-line. (Bug#36564) --- lisp/progmodes/compile.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 1a0d9bdbb70..a1df67fadfe 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -2245,6 +2245,8 @@ and runs `compilation-filter-hook'." (unless comint-inhibit-carriage-motion (comint-carriage-motion (process-mark proc) (point))) (set-marker (process-mark proc) (point)) + ;; Update the number of errors in compilation-mode-line-errors + (font-lock-ensure compilation-filter-start (point)) ;; (set (make-local-variable 'compilation-buffer-modtime) ;; (current-time)) (run-hooks 'compilation-filter-hook)) -- 2.39.5