diff lisp/textmodes/tex-mode.el @ 105372:bd2966850aac

Use `called-interactively-p' instead of `interactive-p'.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 02 Oct 2009 03:48:36 +0000
parents afa0e028ba97
children db5e4a5897ec
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Fri Oct 02 00:02:02 2009 +0000
+++ b/lisp/textmodes/tex-mode.el	Fri Oct 02 03:48:36 2009 +0000
@@ -1274,7 +1274,7 @@
 	(let ((no-matches (zerop num-matches)))
 	  (if no-matches
 	      (insert "None!\n"))
-	  (if (interactive-p)
+	  (if (called-interactively-p 'interactive)
 	      (message (cond (no-matches "No mismatches found")
 			     ((= num-matches 1) "1 mismatch found")
 			     (t "%d mismatches found"))