[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 4f38bde: Examine tex-chktex--process in the corre
From: |
João Távora |
Subject: |
[Emacs-diffs] emacs-26 4f38bde: Examine tex-chktex--process in the correct buffer |
Date: |
Fri, 3 Nov 2017 15:07:11 -0400 (EDT) |
branch: emacs-26
commit 4f38bdec743787bb4f00b51696afd3acf5a2e113
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 3da6e4e..10ee102 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 4f38bde: Examine tex-chktex--process in the correct buffer,
João Távora <=