# HG changeset patch # User Richard M. Stallman # Date 710369520 0 # Node ID 587f7a98341d061b5599a85aa04d9ed0b340caee # Parent b39d858a0b19c8b940916787b21f780b5954d6ca *** empty log message *** diff -r b39d858a0b19 -r 587f7a98341d lisp/textmodes/tex-mode.el --- 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 +