From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#30674: 27.0.50; flymake-mode should set next-error-function and (probably) next-error-last-buffer Date: Wed, 07 Mar 2018 00:33:59 +0200 Organization: LINKOV.NET Message-ID: <87a7vkrelc.fsf@mail.linkov.net> References: <15327428-85fd-5b2e-1878-2b5b3b538375@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520377612 26914 195.159.176.226 (6 Mar 2018 23:06:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2018 23:06:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 30674@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 07 00:06:47 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etLfJ-00057j-UB for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Mar 2018 00:06:38 +0100 Original-Received: from localhost ([::1]:58767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etLhM-0001Ly-FJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2018 18:08:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etLgl-000118-8U for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 18:08:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etLgh-0001hp-2Z for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 18:08:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40302) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etLgg-0001hd-VX for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 18:08:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1etLgg-0007aN-PK for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 18:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Mar 2018 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30674 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30674-submit@debbugs.gnu.org id=B30674.152037766729124 (code B ref 30674); Tue, 06 Mar 2018 23:08:02 +0000 Original-Received: (at 30674) by debbugs.gnu.org; 6 Mar 2018 23:07:47 +0000 Original-Received: from localhost ([127.0.0.1]:48197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etLgR-0007Zg-KX for submit@debbugs.gnu.org; Tue, 06 Mar 2018 18:07:47 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:48854 helo=homiemail-a100.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etLgQ-0007ZZ-JC for 30674@debbugs.gnu.org; Tue, 06 Mar 2018 18:07:46 -0500 Original-Received: from homiemail-a100.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTP id 2A9E031A078; Tue, 6 Mar 2018 15:07:46 -0800 (PST) Original-Received: from localhost.linkov.net (m91-129-110-147.cust.tele2.ee [91.129.110.147]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTPSA id 4A91B31A075; Tue, 6 Mar 2018 15:07:45 -0800 (PST) In-Reply-To: <15327428-85fd-5b2e-1878-2b5b3b538375@yandex.ru> (Dmitry Gutov's message of "Fri, 2 Mar 2018 03:15:26 +0200") 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143972 Archived-At: > Considering the names and docstrings of next-error and previous-error, = I > think it's quite reasonable to expect to be able to navigate the Flymak= e > diagnostics with them. > > Jo=C3=A3o, was there a particular reason you decided against it? Can we > improve next-error somehow, for this to become more appealing? > > Juri, any thoughts? The foremost apparent difficulty is that virtually > any file-editing buffer can become a next-error capable buffer. Would > opening a new file interactively (with flymake-mode being turned on) > automatically change next-error-last-buffer? Would it change after > save-buffer (after which diagnostics are normally refreshed)? I think it would be a natural fit into the next-error framework. How to solve conflicts with other sources of next-error is an open question. For example, after running =E2=80=98occur=E2=80=99 on the flymake-mode en= abled buffer next-error should continue navigating =E2=80=98occur=E2=80=99 hits. I gu= ess to cancel such navigation is possible in at least three ways: doing window-quit on the *Occur* buffer, or using next-error-select-buffer selecting the current buffer (instead of the *Occur* buffer), or re-running flymake on the buffer.