changeset 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 e16241d08bbc
children 795d79cea402
files lisp/progmodes/compile.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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.