changeset 10341:f27bcd1faf07

(tex-print): Better check for when to print current buffer's file over last processed file.
author Richard M. Stallman <rms@gnu.org>
date Thu, 05 Jan 1995 00:23:50 +0000
parents ef58c7a5a4d6
children 01d13c22797e
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Wed Jan 04 22:43:47 1995 +0000
+++ b/lisp/textmodes/tex-mode.el	Thu Jan 05 00:23:50 1995 +0000
@@ -1062,9 +1062,11 @@
   (let ((print-file-name-dvi (tex-append tex-print-file ".dvi"))
 	test-name)
     (if (and (not (equal (current-buffer) tex-last-buffer-texed))
+	     (buffer-file-name)
+	     ;; Check that this buffer's printed file is up to date.
 	     (file-newer-than-file-p
 	      (setq test-name (tex-append (buffer-file-name) ".dvi"))
-	      print-file-name-dvi))
+	      (buffer-file-name)))
 	(setq print-file-name-dvi test-name))
     (if (not (file-exists-p print-file-name-dvi))
         (error "No appropriate `.dvi' file could be found")