diff lisp/textmodes/tex-mode.el @ 90128:13796b0653c7

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-29 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 192-205) - Update from CVS - Use gdb-ui breakpoint faces on ttys too - Tweak gdb-ui breakpoint faces - Tweak info/.arch-inventory to identify info/.cvsignore as source - Clean up gdb-ui breakpoint faces
author Miles Bader <miles@gnu.org>
date Thu, 24 Mar 2005 18:41:26 +0000
parents bbc2e661b93c 3b3b017d62ab
children 4da4a09e8b1b
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Sat Mar 19 02:42:17 2005 +0000
+++ b/lisp/textmodes/tex-mode.el	Thu Mar 24 18:41:26 2005 +0000
@@ -2237,6 +2237,9 @@
   (interactive)
   (or tex-dvi-view-command
       (error "You must set `tex-dvi-view-command'"))
+  ;; Restart the TeX shell if necessary.
+  (or (tex-shell-running)
+      (tex-start-shell))
   (let ((tex-dvi-print-command (eval tex-dvi-view-command)))
     (tex-print)))