summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Shahid <jvshahid@gmail.com>2019-01-04 21:28:35 +0000
committerJoão Távora <joaotavora@gmail.com>2019-01-05 11:38:36 +0000
commit16e2554880381d5cef4ec209675c084bc96d09e1 (patch)
tree6ee9a1e3c0187f8d6d767addf9a0dd09f70d1010
parent821a0840b27861e7323c192848a21def2aeddca0 (diff)
downloademacs-16e2554880381d5cef4ec209675c084bc96d09e1.tar.gz
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.
-rw-r--r--lisp/progmodes/flymake.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 50a9880a14e..14940844a42 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)))))