summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-01-05 00:23:50 +0000
committerRichard M. Stallman <rms@gnu.org>1995-01-05 00:23:50 +0000
commit12b5649bf65a15fdbfca186430a389ba95a5778d (patch)
tree95df0bfd262fc9716bcff3d83691505921dac07f
parentb2c009cd00859d07a6dedd73c1cf7d990eaf3765 (diff)
downloademacs-12b5649bf65a15fdbfca186430a389ba95a5778d.tar.gz
(tex-print): Better check for when to print current
buffer's file over last processed file.
-rw-r--r--lisp/textmodes/tex-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 953b3d29ac7..3063d141bda 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -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")