aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorJohn Paul Wallington2004-08-30 19:05:10 +0000
committerJohn Paul Wallington2004-08-30 19:05:10 +0000
commitf04232c3c2242acb4c2a188565a61cf3a986f3e8 (patch)
tree33a3a1fb469f335b4aa0d7b85c252640d7f90bb7 /lisp/textmodes
parent11715f92de50ee7c004386d9de00b7f3e2df633b (diff)
downloademacs-f04232c3c2242acb4c2a188565a61cf3a986f3e8.tar.gz
emacs-f04232c3c2242acb4c2a188565a61cf3a986f3e8.zip
(tex-validate-buffer): Use distinct strings rather than
programatically constructing message.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/tex-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 115dd6f88f0..1c4b89f0a62 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1145,9 +1145,10 @@ on the line for the invalidity you want to see."
1145 (if no-matches 1145 (if no-matches
1146 (insert "None!\n")) 1146 (insert "None!\n"))
1147 (if (interactive-p) 1147 (if (interactive-p)
1148 (message "%s mismatch%s found" 1148 (message (cond (no-matches "No mismatches found")
1149 (if no-matches "No" num-matches) 1149 ((= num-matches 1) "1 mismatch found")
1150 (if (> num-matches 1) "es" "")))))))) 1150 (t "%d mismatches found"))
1151 num-matches)))))))
1151 1152
1152(defun tex-validate-region (start end) 1153(defun tex-validate-region (start end)
1153 "Check for mismatched braces or $'s in region. 1154 "Check for mismatched braces or $'s in region.