[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 16e2554 1/2: Unbreak Flymake's diagnostics buffer w
From: |
João Távora |
Subject: |
[Emacs-diffs] master 16e2554 1/2: Unbreak Flymake's diagnostics buffer when revisiting source |
Date: |
Sat, 5 Jan 2019 06:40:09 -0500 (EST) |
branch: master
commit 16e2554880381d5cef4ec209675c084bc96d09e1
Author: John Shahid <address@hidden>
Commit: João Távora <address@hidden>
Unbreak Flymake's diagnostics buffer when revisiting source
Fixes: bug#33881
Copyright-paperwork-exempt: yes
* lisp/progmodes/flymake.el (flymake-show-diagnostics-buffer):
Set flymake--diagnostics-buffer-source before reverting.
---
lisp/progmodes/flymake.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 50a9880..1494084 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -1332,9 +1332,9 @@ POS can be a buffer position or a button"
(target (or (get-buffer name)
(with-current-buffer (get-buffer-create name)
(flymake-diagnostics-buffer-mode)
- (setq flymake--diagnostics-buffer-source source)
(current-buffer)))))
(with-current-buffer target
+ (setq flymake--diagnostics-buffer-source source)
(revert-buffer)
(display-buffer (current-buffer)))))