GNU bug report logs - #40529
26.3; global-display-line-numbers-mode and flymake-show-diagnostics-buffer error

Previous Next

Package: emacs;

Reported by: Aidan Beggs <nadiasggeb001 <at> gmail.com>

Date: Thu, 9 Apr 2020 22:07:02 UTC

Severity: normal

Found in version 26.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 40529 <at> debbugs.gnu.org (full text, mbox):

From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 40529 <at> debbugs.gnu.org, Aidan Beggs <nadiasggeb001 <at> gmail.com>
Subject: Re: bug#40529: 26.3; global-display-line-numbers-mode and
 flymake-show-diagnostics-buffer error
Date: Fri, 10 Apr 2020 17:16:47 +0100
[Message part 1 (text/plain, inline)]
On Fri, Apr 10, 2020 at 5:09 PM João Távora <joaotavora <at> gmail.com> wrote:

> leaves me wondering if there isn't a hook ordering bug here. Maybe it's
> just a question of delaying entry in tabulated-list-mode until important
stuff
> is set up.

Or maybe all that's needed is this (100% untested) change:

diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 25a2152f00..72171f5f8b 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -1378,10 +1378,10 @@ flymake-show-diagnostics-buffer
          (source (current-buffer))
          (target (or (get-buffer name)
                      (with-current-buffer (get-buffer-create name)
+                       (setq flymake--diagnostics-buffer-source source)
                        (flymake-diagnostics-buffer-mode)
                        (current-buffer)))))
     (with-current-buffer target
-      (setq flymake--diagnostics-buffer-source source)
       (revert-buffer)
       (display-buffer (current-buffer)))))
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.