diff lisp/progmodes/compile.el @ 54807:1e00569924bf

(compilation-mode-font-lock-keywords): Fix test not to treat nil as a function.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 12 Apr 2004 04:36:01 +0000
parents 8fd08fa510b6
children 7b278dbd537f
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Mon Apr 12 04:23:38 2004 +0000
+++ b/lisp/progmodes/compile.el	Mon Apr 12 04:36:01 2004 +0000
@@ -679,7 +679,7 @@
 	  (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.