diff lisp/progmodes/compile.el @ 55080:b8afe141e350

(compilation-mode-font-lock-keywords): Minor sanity check on the `hyperlink' slot.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 21 Apr 2004 22:37:16 +0000
parents 0cdcedeb25c5
children 2a263df48184
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Wed Apr 21 22:36:22 2004 +0000
+++ b/lisp/progmodes/compile.el	Wed Apr 21 22:37:16 2004 +0000
@@ -703,6 +703,9 @@
 			     ,(if col `(match-string ,col)))))
 		(,file compilation-error-face t))
 
+	    (unless (or (null (nth 5 item)) (integerp (nth 5 item)))
+	      (error "HYPERLINK should be an integer: %s" (nth 5 item)))
+
 	    `(,(nth 0 item)
 
 	      ,@(when (integerp file)