summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1992-07-05 20:52:00 +0000
committerRichard M. Stallman <rms@gnu.org>1992-07-05 20:52:00 +0000
commit99621a14f1c72f1693a523979711409a5296601f (patch)
treeec2e94e820f631ed6e6b755cb539e34b72a42a3c /lisp
parentebff767cd0229e0dee4c10cd36d8cb264818fd3d (diff)
downloademacs-99621a14f1c72f1693a523979711409a5296601f.tar.gz
*** empty log message ***
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/tex-mode.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 00415ed3b0f..81b072af545 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1,6 +1,6 @@
;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands.
-;; Copyright (C) 1985-1992 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1986, 1989, 1992 Free Software Foundation, Inc.
;; Contributions over the years by William F. Schelter, Dick King,
;; Stephen Gildea, Michael Prange, and Edward M. Reingold.
@@ -653,7 +653,7 @@ in COMMAND. COMMAND can be any expression that evaluates to a command string."
(delete-file (concat dir (car list)))
(setq list (cdr list))))))
-(setq kill-emacs-hook 'tex-delete-last-temp-files)
+(add-hook 'kill-emacs-hook 'tex-delete-last-temp-files)
;;; The commands:
@@ -741,7 +741,8 @@ This function is more useful than \\[tex-buffer] when you need the
(file-name-nondirectory (buffer-file-name))
(error "Buffer does not seem to be associated with any file")))
(file-dir (file-name-directory (buffer-file-name))))
- (save-some-buffers)
+ (if (tex-offer-save)
+ (save-some-buffers))
(if (tex-shell-running)
(tex-kill-job)
(tex-start-shell))
@@ -866,3 +867,4 @@ Runs the shell command defined by tex-show-queue-command."
(provide 'tex-mode)
;;; tex-mode.el ends here
+