summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/tex-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 3a28ea73e0e..427583a88f8 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -883,7 +883,7 @@ substitution will be made in COMMAND. COMMAND can be any expression that
evaluates to a command string."
(save-excursion
(let* ((cmd (eval command))
- (proc (get-process "tex-shell"))
+ (proc (or (get-process "tex-shell") (error "No TeX subprocess")))
(buf (process-buffer proc))
(star (string-match "\\*" cmd))
(string