aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-29 16:32:03 +0000
committerRichard M. Stallman1995-04-29 16:32:03 +0000
commit2b7971c930e432ac32027e2e8fe9f8ffde1972cc (patch)
tree321b9645ed04fc32d77b9ad72a258197145d71a6
parent7e04044f4395f1adac89cc02262c6dadc0ea9411 (diff)
downloademacs-2b7971c930e432ac32027e2e8fe9f8ffde1972cc.tar.gz
emacs-2b7971c930e432ac32027e2e8fe9f8ffde1972cc.zip
(tex-view): Nice error if tex-dvi-view-command is nil.
-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