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:25:09 -0500 Message-ID: <86k1tc1m7e.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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523546847 16193 195.159.176.226 (12 Apr 2018 15:27:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2018 15:27:27 +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:27:23 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 1f6e8B-00045T-8B for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 17:27:23 +0200 Original-Received: from localhost ([::1]:47691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6eAH-0008EC-Qj for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 11:29:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6e6C-0005kt-LX for emacs-devel@gnu.org; Thu, 12 Apr 2018 11:25:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6e67-0005SP-Ob for emacs-devel@gnu.org; Thu, 12 Apr 2018 11:25:20 -0400 Original-Received: from smtp121.ord1d.emailsrvr.com ([184.106.54.121]:35328) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f6e67-0005PS-L0 for emacs-devel@gnu.org; Thu, 12 Apr 2018 11:25:15 -0400 Original-Received: from smtp8.relay.ord1d.emailsrvr.com (localhost [127.0.0.1]) by smtp8.relay.ord1d.emailsrvr.com (SMTP Server) with ESMTP id 8C3EDC008F for ; Thu, 12 Apr 2018 11:25:11 -0400 (EDT) X-Auth-ID: board-president@tomahawk-creek-hoa.com Original-Received: by smtp8.relay.ord1d.emailsrvr.com (Authenticated sender: board-president-AT-tomahawk-creek-hoa.com) with ESMTPSA id 4B21AC006B for ; Thu, 12 Apr 2018 11:25:11 -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:25:11 -0400 In-Reply-To: <8a341680-0c63-bf28-a163-11f1d9adac20@yandex.ru> (Dmitry Gutov's message of "Wed, 11 Apr 2018 10:29:30 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 184.106.54.121 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:224525 Archived-At: Dmitry Gutov writes: > On 4/11/18 6:26 AM, Stephen Leake wrote: > >>> 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 > when point is over the error. Ok. So add a keybinding that says "there is an error under point; use the list it is part of as the current error list". Presumably you already have "goto error under point"; that should also set the current list. (How do you notice there is an error there, so you know to position point? a marker in the margin?) I gather there might be more than one such list in a single buffer, so compilation-last-buffer is insufficient. You might be able to extend that; if it is a cons, the car is the buffer, the car the root list element, or the list type tag, or something. -- -- Stephe