From 16e2554880381d5cef4ec209675c084bc96d09e1 Mon Sep 17 00:00:00 2001 From: John Shahid Date: Fri, 4 Jan 2019 21:28:35 +0000 Subject: [PATCH] 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 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))))) -- 2.39.5