summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-09-09 21:04:31 +0300
committerEli Zaretskii <eliz@gnu.org>2017-09-09 21:04:31 +0300
commit715f0835b5a0c17f2fcb43d1e75d55adce1639a5 (patch)
treed8bd13ceb6a31bd34414dc98fa3b40b14498933a /lisp/progmodes/compile.el
parent4131f9785e30f2a31745125c714e922892113c62 (diff)
downloademacs-715f0835b5a0c17f2fcb43d1e75d55adce1639a5.tar.gz
Fix font-lock in Compilation mode
* lisp/progmodes/compile.el (compilation-face): Restore function lost during recent changes. (Bug#28349)
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index f0935cd2add..8c84398792f 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -905,6 +905,16 @@ from a different message."
(and (cdr type) (match-end (cdr type)) 0)
2))
+(defun compilation-face (type)
+ (let ((typ (compilation-type type)))
+ (cond
+ ((eq typ 1)
+ compilation-warning-face)
+ ((eq typ 0)
+ compilation-info-face)
+ ((eq typ 2)
+ compilation-error-face))))
+
;; LOC (or location) is a list of (COLUMN LINE FILE-STRUCTURE nil nil)
;; COLUMN and LINE are numbers parsed from an error message. COLUMN and maybe