]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix faces in compilation messages
authorDaniel Lopez <daniel.lopez999@gmail.com>
Thu, 14 Feb 2019 16:05:10 +0000 (16:05 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 15 Feb 2019 07:59:16 +0000 (09:59 +0200)
* lisp/progmodes/compile.el (compilation-parse-errors): Don't
clobber the value of TYPE inside the loop.  (Bug#34479)

Copyright-paperwork-exempt: yes

lisp/progmodes/compile.el

index a5dcbd7d3843f8cf532d6c210684765bbe287e1c..5312a55a2587ce3aa2a9942663147e5281d68204 100644 (file)
@@ -1429,17 +1429,17 @@ to `compilation-error-regexp-alist' if RULES is nil."
                              file line end-line col end-col (or type 2) fmt))
 
             (when (integerp file)
-              (setq type (if (consp type)
-                             (compilation-type type)
-                           (or type 2)))
-              (compilation--note-type type)
-
-              (compilation--put-prop
-               file 'font-lock-face
-               (symbol-value (aref [compilation-info-face
-                                    compilation-warning-face
-                                    compilation-error-face]
-                                   type))))
+              (let ((this-type (if (consp type)
+                                   (compilation-type type)
+                                 (or type 2))))
+                (compilation--note-type type)
+
+                (compilation--put-prop
+                 file 'font-lock-face
+                 (symbol-value (aref [compilation-info-face
+                                      compilation-warning-face
+                                      compilation-error-face]
+                                     this-type)))))
 
             (compilation--put-prop
              line 'font-lock-face compilation-line-face)