mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-13 17:26:40 -04:00
Examine tex-chktex--process in the correct buffer
As in other Flymake backends, the process sentinel might run in arbitrary buffers where this variable's value doesn't make sense. For a way to trigger a problem due to this, see discussion starting in https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00645.html * lisp/textmodes/tex-mode.el (tex-chktex): Use with-current-buffer.
This commit is contained in:
parent
94b490529a
commit
4f38bdec74
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue