From: Richard M. Stallman Date: Sat, 29 Apr 1995 16:32:03 +0000 (+0000) Subject: (tex-view): Nice error if tex-dvi-view-command is nil. X-Git-Tag: emacs-19.34~4241 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2b7971c930e432ac32027e2e8fe9f8ffde1972cc;p=emacs.git (tex-view): Nice error if tex-dvi-view-command is nil. --- 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'." (defun tex-view () "Preview the last `.dvi' file made by running TeX under Emacs. This means, made using \\[tex-region], \\[tex-buffer] or \\[tex-file]. -The variable `tex-dvi-view-command' specifies the shell command for preview." +The variable `tex-dvi-view-command' specifies the shell command for preview. +You must set that variable yourself before using this command, +because there is no standard value that would generally work." (interactive) + (or tex-dvi-view-command + (error "You must set `tex-dvi-view-command'")) (let ((tex-dvi-print-command tex-dvi-view-command)) (tex-print)))