diff options
Diffstat (limited to 'lisp/textmodes/tex-mode.el')
-rw-r--r-- | lisp/textmodes/tex-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 3da6e4e1124..10ee10243ad 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -3512,7 +3512,8 @@ There might be text before point." (lambda (process _event) (when (eq (process-status process) 'exit) (unwind-protect - (when (eq process tex-chktex--process) + (when (eq process + (with-current-buffer source tex-chktex--process)) (with-current-buffer (process-buffer process) (goto-char (point-min)) (cl-loop |