]> git.eshelyaron.com Git - emacs.git/commit
Examine tex-chktex--process in the correct buffer
authorJoão Távora <joaotavora@gmail.com>
Fri, 3 Nov 2017 19:01:45 +0000 (19:01 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 3 Nov 2017 19:06:01 +0000 (19:06 +0000)
commit4f38bdec743787bb4f00b51696afd3acf5a2e113
treec204eb0659425ab8c44a277f41d422011c74ef38
parent94b490529a85ea0844f2e1cf0dc7d2284c2ff2f2
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.
lisp/textmodes/tex-mode.el