(compilation-mode-font-lock-keywords): Fix test not to treat nil as a function.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 12 Apr 2004 04:36:01 +0000 (04:36 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 12 Apr 2004 04:36:01 +0000 (04:36 +0000)
lisp/progmodes/compile.el

index 9d25446..de90c2a 100644 (file)
@@ -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.