(tex-validate-buffer): Use distinct strings rather than
authorJohn Paul Wallington <jpw@pobox.com>
Mon, 30 Aug 2004 19:05:10 +0000 (19:05 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Mon, 30 Aug 2004 19:05:10 +0000 (19:05 +0000)
programatically constructing message.

lisp/ChangeLog
lisp/textmodes/tex-mode.el

index fab95b30909b1c4130c7f80dabc369c204677e02..e6b3e1f60a785d1d2d9194d3a63d8f5c17d8707f 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-30  John Paul Wallington  <jpw@gnu.org>
+
+       * textmodes/tex-mode.el (tex-validate-buffer): Use distinct
+       strings rather than programatically constructing message.
+
 2004-08-30  Richard M. Stallman  <rms@gnu.org>
 
        * emacs-lisp/lisp-mode.el (prin1-char): Don't turn S-a into A.
index 115dd6f88f0c7dd4cb3209ce9f802395890d343c..1c4b89f0a62933b41b3dd244c6f716f590340b30 100644 (file)
@@ -1145,9 +1145,10 @@ on the line for the invalidity you want to see."
          (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.