]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/compile.el (compilation-filter): Use font-lock-ensure
authorJuri Linkov <juri@linkov.net>
Thu, 11 Jul 2019 21:46:12 +0000 (00:46 +0300)
committerJuri Linkov <juri@linkov.net>
Thu, 11 Jul 2019 21:46:12 +0000 (00:46 +0300)
to update the number of errors in compilation-mode-line-errors
displayed in the mode-line.  (Bug#36564)

lisp/progmodes/compile.el

index 1a0d9bdbb703bc79b54c99ce62b510d62568052b..a1df67fadfe17cd72dd2835378f4839d3f4c4fef 100644 (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))