diff options
| author | Richard M. Stallman | 1995-04-29 16:32:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-29 16:32:03 +0000 |
| commit | 2b7971c930e432ac32027e2e8fe9f8ffde1972cc (patch) | |
| tree | 321b9645ed04fc32d77b9ad72a258197145d71a6 | |
| parent | 7e04044f4395f1adac89cc02262c6dadc0ea9411 (diff) | |
| download | emacs-2b7971c930e432ac32027e2e8fe9f8ffde1972cc.tar.gz emacs-2b7971c930e432ac32027e2e8fe9f8ffde1972cc.zip | |
(tex-view): Nice error if tex-dvi-view-command is nil.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 6 |
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. |
| 1090 | This means, made using \\[tex-region], \\[tex-buffer] or \\[tex-file]. | 1090 | This means, made using \\[tex-region], \\[tex-buffer] or \\[tex-file]. |
| 1091 | The variable `tex-dvi-view-command' specifies the shell command for preview." | 1091 | The variable `tex-dvi-view-command' specifies the shell command for preview. |
| 1092 | You must set that variable yourself before using this command, | ||
| 1093 | because 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 | ||