changeset 11617:9eaeed5c8a40

(tex-view): Nice error if tex-dvi-view-command is nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 Apr 1995 16:32:03 +0000
parents 9d232a632d2a
children 9702de178097
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Sat Apr 29 05:49:04 1995 +0000
+++ b/lisp/textmodes/tex-mode.el	Sat Apr 29 16:32:03 1995 +0000
@@ -1088,8 +1088,12 @@
 (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)))