From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40529: 26.3; global-display-line-numbers-mode and flymake-show-diagnostics-buffer error Date: Fri, 10 Apr 2020 09:30:20 +0300 Message-ID: <83v9m7n98j.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="106500"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40529@debbugs.gnu.org To: Aidan Beggs , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 10 08:31:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMnC3-000Rc3-Rx for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Apr 2020 08:31:11 +0200 Original-Received: from localhost ([::1]:59104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMnC2-0006wj-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Apr 2020 02:31:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33629) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMnBu-0006wb-TZ for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 02:31:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMnBt-0005Xh-UE for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 02:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43189) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMnBt-0005XZ-RN for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 02:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMnBt-0000jf-PL for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2020 02:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Apr 2020 06:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40529 X-GNU-PR-Package: emacs Original-Received: via spool by 40529-submit@debbugs.gnu.org id=B40529.15865002462802 (code B ref 40529); Fri, 10 Apr 2020 06:31:01 +0000 Original-Received: (at 40529) by debbugs.gnu.org; 10 Apr 2020 06:30:46 +0000 Original-Received: from localhost ([127.0.0.1]:54735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMnBe-0000j8-0o for submit@debbugs.gnu.org; Fri, 10 Apr 2020 02:30:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMnBd-0000ix-4u for 40529@debbugs.gnu.org; Fri, 10 Apr 2020 02:30:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jMnBW-0005LR-9k; Fri, 10 Apr 2020 02:30:39 -0400 Original-Received: from [176.228.60.248] (port=2115 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jMnBV-0002E7-Fr; Fri, 10 Apr 2020 02:30:37 -0400 In-Reply-To: (message from Aidan Beggs on Thu, 9 Apr 2020 16:55:44 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178184 Archived-At: > From: Aidan Beggs > Date: Thu, 9 Apr 2020 16:55:44 -0400 > > emacs -Q > C-x b *scratch* > M-x global-display-line-numbers-mode > M-x flymake-mode > M-x flymake-show-diagnostics-buffer João, here are the results of my preliminary investigation into this, as posted on Reddit (where this was first reported), I hope they will be helpful: Under the above settings, flymake--diagnostics-buffer-entries is invoked as side effect of calling flymake-diagnostics-buffer-mode from flymake-show-diagnostics-buffer, and at that point flymake--diagnostics-buffer-source has not yet been set to a valid buffer name. So the with-current-buffer form at the beginning of flymake--diagnostics-buffer-entries barfs. Thanks.