changeset 56843:4520af567a84

(tex-validate-buffer): Use distinct strings rather than programatically constructing message.
author John Paul Wallington <jpw@pobox.com>
date Mon, 30 Aug 2004 19:04:18 +0000
parents 6bd9ebab1440
children 91f561e48ef0
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Mon Aug 30 18:06:21 2004 +0000
+++ b/lisp/textmodes/tex-mode.el	Mon Aug 30 19:04:18 2004 +0000
@@ -1145,9 +1145,10 @@
 	  (if no-matches
 	      (insert "None!\n"))
 	  (if (interactive-p)
-	      (message "%s mismatch%s found"
-		       (if no-matches "No" num-matches)
-		       (if (> num-matches 1) "es" ""))))))))
+	      (message (cond (no-matches "No mismatches found")
+			     ((= num-matches 1) "1 mismatch found")
+			     (t "%d mismatches found"))
+		       num-matches)))))))
 
 (defun tex-validate-region (start end)
   "Check for mismatched braces or $'s in region.