aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-11 18:51:29 +0000
committerRichard M. Stallman1994-10-11 18:51:29 +0000
commit0d548e5d7bc70e6e65f260b6c55a5b47ecedd72b (patch)
tree492bde5a86a7a89343c248b0002df4320d79d286 /lisp/textmodes
parent1529a12fb56de084e032002b398b726d9676b217 (diff)
downloademacs-0d548e5d7bc70e6e65f260b6c55a5b47ecedd72b.tar.gz
emacs-0d548e5d7bc70e6e65f260b6c55a5b47ecedd72b.zip
(compare-windows-whitespace): Eliminate initial value.
(tex-region): Don't delete temp files if we do one buffer twice in a row.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/tex-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 8a89ca2dfe6..68562270308 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -239,7 +239,7 @@ Set by \\[tex-region], \\[tex-buffer], and \\[tex-file].")
239 "Keymap for the TeX shell. 239 "Keymap for the TeX shell.
240Inherits `comint-mode-map' with a few additions.") 240Inherits `comint-mode-map' with a few additions.")
241 241
242(defvar compare-windows-whitespace nil) ; Pacify the byte-compiler 242(defvar compare-windows-whitespace) ; Pacify the byte-compiler
243 243
244;;; This would be a lot simpler if we just used a regexp search, 244;;; This would be a lot simpler if we just used a regexp search,
245;;; but then it would be too slow. 245;;; but then it would be too slow.
@@ -931,7 +931,9 @@ The value of `tex-command' specifies the command to use to run TeX."
931 (zap-directory 931 (zap-directory
932 (file-name-as-directory (expand-file-name tex-directory))) 932 (file-name-as-directory (expand-file-name tex-directory)))
933 (tex-out-file (concat zap-directory tex-zap-file))) 933 (tex-out-file (concat zap-directory tex-zap-file)))
934 (tex-delete-last-temp-files t) 934 ;; Don't delete temp files if we do the same buffer twice in a row.
935 (or (eq (current-buffer) tex-last-buffer-texed)
936 (tex-delete-last-temp-files t))
935 ;; Write the new temp file. 937 ;; Write the new temp file.
936 (save-excursion 938 (save-excursion
937 (save-restriction 939 (save-restriction