* 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)
This commit is contained in:
Juri Linkov 2019-07-12 00:46:12 +03:00
parent 53fb021acc
commit ef6715364d

View file

@ -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))