changeset 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 94d5cc4f2843
children 35a889bb25b7
files lisp/progmodes/compile.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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)