aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/tex-mode.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 14e8576d609..2aca111ee6c 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1088,8 +1088,12 @@ Runs the shell command defined by `tex-alt-dvi-print-command'."
1088(defun tex-view () 1088(defun tex-view ()
1089 "Preview the last `.dvi' file made by running TeX under Emacs. 1089 "Preview the last `.dvi' file made by running TeX under Emacs.
1090This means, made using \\[tex-region], \\[tex-buffer] or \\[tex-file]. 1090This means, made using \\[tex-region], \\[tex-buffer] or \\[tex-file].
1091The variable `tex-dvi-view-command' specifies the shell command for preview." 1091The variable `tex-dvi-view-command' specifies the shell command for preview.
1092You must set that variable yourself before using this command,
1093because there is no standard value that would generally work."
1092 (interactive) 1094 (interactive)
1095 (or tex-dvi-view-command
1096 (error "You must set `tex-dvi-view-command'"))
1093 (let ((tex-dvi-print-command tex-dvi-view-command)) 1097 (let ((tex-dvi-print-command tex-dvi-view-command))
1094 (tex-print))) 1098 (tex-print)))
1095 1099