aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJohn Paul Wallington2004-08-25 19:05:24 +0000
committerJohn Paul Wallington2004-08-25 19:05:24 +0000
commit003274a0575fb52458b1915ef602c7308cdf2196 (patch)
tree47a7720e7598583ce865e5e3d86e0f37cc40e6b0 /lisp
parent2eb43e13c1386eed86898e973dbf0355ed16ed5c (diff)
downloademacs-003274a0575fb52458b1915ef602c7308cdf2196.tar.gz
emacs-003274a0575fb52458b1915ef602c7308cdf2196.zip
(tex-validate-buffer): Distinguish between 0, 1, and many mismatches.
(tex-start-shell): Use `set-process-query-on-exit-flag'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/textmodes/tex-mode.el15
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 16fddac9015..a52bb001fea 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12004-08-25 John Paul Wallington <jpw@gnu.org> 12004-08-25 John Paul Wallington <jpw@gnu.org>
2 2
3 * textmodes/tex-mode.el (tex-validate-buffer): Distinguish between
4 0, 1, and many mismatches in message.
5 (tex-start-shell): Use `set-process-query-on-exit-flag'.
6
3 * ielm.el (ielm-tab, ielm-complete-symbol): Doc fix. 7 * ielm.el (ielm-tab, ielm-complete-symbol): Doc fix.
4 (inferior-emacs-lisp-mode): Use `set-process-query-on-exit-flag'. 8 (inferior-emacs-lisp-mode): Use `set-process-query-on-exit-flag'.
5 9
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 28bf9f6cf28..115dd6f88f0 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1141,10 +1141,13 @@ on the line for the invalidity you want to see."
1141 'occur-target tem))))) 1141 'occur-target tem)))))
1142 (goto-char prev-end)))) 1142 (goto-char prev-end))))
1143 (with-current-buffer standard-output 1143 (with-current-buffer standard-output
1144 (if (eq num-matches 0) 1144 (let ((no-matches (zerop num-matches)))
1145 (insert "None!\n")) 1145 (if no-matches
1146 (if (interactive-p) 1146 (insert "None!\n"))
1147 (message "%d mismatches found" num-matches)))))) 1147 (if (interactive-p)
1148 (message "%s mismatch%s found"
1149 (if no-matches "No" num-matches)
1150 (if (> num-matches 1) "es" ""))))))))
1148 1151
1149(defun tex-validate-region (start end) 1152(defun tex-validate-region (start end)
1150 "Check for mismatched braces or $'s in region. 1153 "Check for mismatched braces or $'s in region.
@@ -1459,7 +1462,7 @@ Mark is left at original location."
1459 nil) 1462 nil)
1460 (let ((proc (get-process "tex-shell"))) 1463 (let ((proc (get-process "tex-shell")))
1461 (set-process-sentinel proc 'tex-shell-sentinel) 1464 (set-process-sentinel proc 'tex-shell-sentinel)
1462 (process-kill-without-query proc) 1465 (set-process-query-on-exit-flag proc nil)
1463 (tex-shell) 1466 (tex-shell)
1464 (while (zerop (buffer-size)) 1467 (while (zerop (buffer-size))
1465 (sleep-for 1))))) 1468 (sleep-for 1)))))
@@ -1928,7 +1931,7 @@ for the error messages."
1928 (re-search-forward 1931 (re-search-forward
1929 "^l\\.\\([0-9]+\\) \\(\\.\\.\\.\\)?\\(.*\\)$" nil 'move)) 1932 "^l\\.\\([0-9]+\\) \\(\\.\\.\\.\\)?\\(.*\\)$" nil 'move))
1930 (let* ((this-error (copy-marker begin-of-error)) 1933 (let* ((this-error (copy-marker begin-of-error))
1931 (linenum (string-to-int (match-string 1))) 1934 (linenum (string-to-number (match-string 1)))
1932 (error-text (regexp-quote (match-string 3))) 1935 (error-text (regexp-quote (match-string 3)))
1933 (filename 1936 (filename
1934 (save-excursion 1937 (save-excursion