]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-print): Better check for when to print current
authorRichard M. Stallman <rms@gnu.org>
Thu, 5 Jan 1995 00:23:50 +0000 (00:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 5 Jan 1995 00:23:50 +0000 (00:23 +0000)
buffer's file over last processed file.

lisp/textmodes/tex-mode.el

index 953b3d29ac74de62c8e29afa3991ca41d5dc7292..3063d141bda63a586c0343652c3a1f60ce576689 100644 (file)
@@ -1062,9 +1062,11 @@ is provided, use the alternative command, `tex-alt-dvi-print-command'."
   (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")