Fix faces in compilation messages
* lisp/progmodes/compile.el (compilation-parse-errors): Don't clobber the value of TYPE inside the loop. (Bug#34479) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
834ca187b8
commit
3cba92d42e
1 changed files with 10 additions and 10 deletions
|
@ -1429,17 +1429,17 @@ to `compilation-error-regexp-alist' if RULES is nil."
|
||||||
file line end-line col end-col (or type 2) fmt))
|
file line end-line col end-col (or type 2) fmt))
|
||||||
|
|
||||||
(when (integerp file)
|
(when (integerp file)
|
||||||
(setq type (if (consp type)
|
(let ((this-type (if (consp type)
|
||||||
(compilation-type type)
|
(compilation-type type)
|
||||||
(or type 2)))
|
(or type 2))))
|
||||||
(compilation--note-type type)
|
(compilation--note-type type)
|
||||||
|
|
||||||
(compilation--put-prop
|
(compilation--put-prop
|
||||||
file 'font-lock-face
|
file 'font-lock-face
|
||||||
(symbol-value (aref [compilation-info-face
|
(symbol-value (aref [compilation-info-face
|
||||||
compilation-warning-face
|
compilation-warning-face
|
||||||
compilation-error-face]
|
compilation-error-face]
|
||||||
type))))
|
this-type)))))
|
||||||
|
|
||||||
(compilation--put-prop
|
(compilation--put-prop
|
||||||
line 'font-lock-face compilation-line-face)
|
line 'font-lock-face compilation-line-face)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue