From 544dccaa206dc933394bdca06288a67a70cf4fb5 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 12 Apr 2004 04:36:01 +0000 Subject: [PATCH] (compilation-mode-font-lock-keywords): Fix test not to treat nil as a function. --- lisp/progmodes/compile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 9d2544628d0..de90c2aa378 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -679,7 +679,7 @@ Faces `compilation-error-face', `compilation-warning-face', (if (consp line) (setq end-line (cdr line) line (car line))) (if (consp col) (setq end-col (cdr col) col (car col))) - (if (symbolp line) + (if (functionp line) ;; The old compile.el had here an undocumented hook that ;; allowed `line' to be a function that computed the actual ;; error location. Let's do our best. -- 2.39.5