From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: next-error use cases Date: Thu, 12 Apr 2018 10:31:00 -0500 Message-ID: <86fu401lxn.fsf@stephe-leake.org> References: <87zi2esn7l.fsf@mail.linkov.net> <83in91zu5o.fsf@gnu.org> <834lkkzb9n.fsf@gnu.org> <878t9wp0oa.fsf@mail.linkov.net> <86604z3czx.fsf@stephe-leake.org> <87y3huq3ta.fsf@mail.linkov.net> <86woxe1l0l.fsf@stephe-leake.org> <8a341680-0c63-bf28-a163-11f1d9adac20@yandex.ru> <87bmepo4in.fsf@mail.linkov.net> 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 1523546952 24970 195.159.176.226 (12 Apr 2018 15:29:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2018 15:29:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 12 17:29:08 2018 Return-path: Envelope-to: ged-emacs-devel@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 1f6e9s-0006Ny-Bf for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 17:29:08 +0200 Original-Received: from localhost ([::1]:47896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6eBy-0002dj-VR for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 11:31:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6eBn-0002bg-FT for emacs-devel@gnu.org; Thu, 12 Apr 2018 11:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6eBj-0000lX-II for emacs-devel@gnu.org; Thu, 12 Apr 2018 11:31:07 -0400 Original-Received: from smtp89.iad3b.emailsrvr.com ([146.20.161.89]:39683) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f6eBj-0000jY-Dz for emacs-devel@gnu.org; Thu, 12 Apr 2018 11:31:03 -0400 Original-Received: from smtp12.relay.iad3b.emailsrvr.com (localhost [127.0.0.1]) by smtp12.relay.iad3b.emailsrvr.com (SMTP Server) with ESMTP id B0000C0060 for ; Thu, 12 Apr 2018 11:31:02 -0400 (EDT) X-Auth-ID: board-president@tomahawk-creek-hoa.com Original-Received: by smtp12.relay.iad3b.emailsrvr.com (Authenticated sender: board-president-AT-tomahawk-creek-hoa.com) with ESMTPSA id 7A360C0063 for ; Thu, 12 Apr 2018 11:31:02 -0400 (EDT) X-Sender-Id: board-president@tomahawk-creek-hoa.com Original-Received: from Takver4 (76-218-37-33.lightspeed.kscymo.sbcglobal.net [76.218.37.33]) (using TLSv1.2 with cipher AES256-GCM-SHA384) by 0.0.0.0:25 (trex/5.7.12); Thu, 12 Apr 2018 11:31:02 -0400 In-Reply-To: <87bmepo4in.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 11 Apr 2018 23:46:24 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 146.20.161.89 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224527 Archived-At: Juri Linkov writes: >>>> But how can you reset it when the location list is in the same buffer >>>> like in case of flyspell where locations of misspelled words are >>>> in the same buffer where next-error navigates, or flymake where >>>> locations of errors/warnings are in the same buffer? >>> >>> Position point on an error message, hit enter. >> >> The error message is usually visible only in the minibuffer, and only wh= en >> point is over the error. > > If it's impossible to reset it by hitting enter, then I think we have > only these remaining options: > > 1. If next-error can't work without the requirement to have a list of > Flyspell mistakes or Flycheck/Flymake errors/warnings printed in a separa= te > buffer (like "*Occur*"), then such buffer can be possibly implemented > as a hidden buffer with a leading space in its name like for example > " *Flycheck locations*". =E2=80=98next-error-select-buffer=E2=80=99 stil= l should > propose it as a candidate for selection. That can work, as long as the buffer is truly hidden. The leading space disables font-lock, so errors don't look like errors. And the leading space may have other surprising consequences. > 2. Flycheck provides its own keybinding =E2=80=98C-c ! n=E2=80=99 for =E2= =80=98flycheck-next-error=E2=80=99 > that can be used to reset the navigation. There are also analogous funct= ions > =E2=80=98flymake-goto-next-error=E2=80=99 and =E2=80=98flyspell-goto-next= -error=E2=80=99. It is not "goto-next-error" that should set the list, but rather "goto-error-at-point". That's what "enter" does in a compilation-mode buffe= r. "goto-next-error" can be invoked from some far away place, but must refer to the current error list. --=20 -- Stephe