diff options
| author | Daniel Lopez | 2019-02-14 16:05:10 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2019-02-15 09:59:16 +0200 |
| commit | 3cba92d42ecf2156296b5f05c07a3d1ded78218e (patch) | |
| tree | da425a16d9f0637e7a5028164c5aa9fbb37f3193 | |
| parent | 834ca187b855b4a2c532b1660bf02de401344f0f (diff) | |
| download | emacs-3cba92d42ecf2156296b5f05c07a3d1ded78218e.tar.gz emacs-3cba92d42ecf2156296b5f05c07a3d1ded78218e.zip | |
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
| -rw-r--r-- | lisp/progmodes/compile.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index a5dcbd7d384..5312a55a258 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1429,17 +1429,17 @@ to `compilation-error-regexp-alist' if RULES is nil." | |||
| 1429 | file line end-line col end-col (or type 2) fmt)) | 1429 | file line end-line col end-col (or type 2) fmt)) |
| 1430 | 1430 | ||
| 1431 | (when (integerp file) | 1431 | (when (integerp file) |
| 1432 | (setq type (if (consp type) | 1432 | (let ((this-type (if (consp type) |
| 1433 | (compilation-type type) | 1433 | (compilation-type type) |
| 1434 | (or type 2))) | 1434 | (or type 2)))) |
| 1435 | (compilation--note-type type) | 1435 | (compilation--note-type type) |
| 1436 | 1436 | ||
| 1437 | (compilation--put-prop | 1437 | (compilation--put-prop |
| 1438 | file 'font-lock-face | 1438 | file 'font-lock-face |
| 1439 | (symbol-value (aref [compilation-info-face | 1439 | (symbol-value (aref [compilation-info-face |
| 1440 | compilation-warning-face | 1440 | compilation-warning-face |
| 1441 | compilation-error-face] | 1441 | compilation-error-face] |
| 1442 | type)))) | 1442 | this-type))))) |
| 1443 | 1443 | ||
| 1444 | (compilation--put-prop | 1444 | (compilation--put-prop |
| 1445 | line 'font-lock-face compilation-line-face) | 1445 | line 'font-lock-face compilation-line-face) |