changeset 741:587f7a98341d

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Sun, 05 Jul 1992 20:52:00 +0000
parents b39d858a0b19
children 7704767cd8d2
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Sun Jul 05 05:11:16 1992 +0000
+++ b/lisp/textmodes/tex-mode.el	Sun Jul 05 20:52:00 1992 +0000
@@ -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 @@
           (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 @@
              (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 @@
 (provide 'tex-mode)
 
 ;;; tex-mode.el ends here
+