# HG changeset patch # User John Paul Wallington # Date 1093892658 0 # Node ID 4520af567a84de0e935133ba0282ae839c07b915 # Parent 6bd9ebab1440b89d821c4cdbb2b0446f16bb60c9 (tex-validate-buffer): Use distinct strings rather than programatically constructing message. diff -r 6bd9ebab1440 -r 4520af567a84 lisp/textmodes/tex-mode.el --- 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.