From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: next-error use cases Date: Thu, 12 Apr 2018 19:51:48 +0300 Message-ID: <7062bebe-6654-7bf3-e488-116d4a28b21c@yandex.ru> 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> <86k1tc1m7e.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1523551799 30506 195.159.176.226 (12 Apr 2018 16:49:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2018 16:49:59 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 To: Stephen Leake , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 12 18:49:55 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 1f6fQ3-0007mr-As for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 18:49:55 +0200 Original-Received: from localhost ([::1]:54318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6fS8-0004Sq-FQ for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 12:52:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6fS1-0004Qw-Df for emacs-devel@gnu.org; Thu, 12 Apr 2018 12:51:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6fRy-00081w-8P for emacs-devel@gnu.org; Thu, 12 Apr 2018 12:51:57 -0400 Original-Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:38608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6fRy-00081F-1n for emacs-devel@gnu.org; Thu, 12 Apr 2018 12:51:54 -0400 Original-Received: by mail-wr0-x234.google.com with SMTP id l13so4732910wrb.5 for ; Thu, 12 Apr 2018 09:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=e392ut3Qnjuh89vTiXerBYT7wMuzufld8bhdxwRgrDs=; b=ubMUJwmawaUUBf3UAVvuGvRbVO+5mpXxCZ4wCgRrUjyjK3sURzYePzyk1MqJyPeQw8 YWifJrSYioE+OgysemskXYY+eGndZ/fxiBXcH4lQznmFUD8e8hxUv9hOTh4TSmRKrTCq UDeIpqjuX0V0j3kkclE1+TC4hIeLj6NqVTbfU2agG0WzSvZwfvBbf90NF7MSKRduG711 c0cq5lImJjMmcQvapSHeDFY4CUaVvYVdLy0CbuFeQuk6gu+mffWljmlfRoL8IsIpLnez tTH3Fa09O6rb2AL/4uC/r8ZtQ81JlEUeLWQXFhwPjWTjuzIILGVVG1quqSQk86m2BmQw cNVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=e392ut3Qnjuh89vTiXerBYT7wMuzufld8bhdxwRgrDs=; b=ZTvH4Ux6jXjlN8FpLjoSN/Isb/FPko6vXHJtqij8IRiIe20qcilc29Au6MHJJdyjWZ T7w889AaFD2fLvUR3pp49SvnTgnEdoMoIPq+SqiSCpnuYX0MoxOHJHl0ODkjeTahD8y6 VLcFMNSVp93c34Kkl/uu0pYKUNP5ucW8UoFH/RjWiGtv4gbC6VpmfNMnDmUrppkeDs6T ShlO+gZisrn3xuEajcrhTDnuL5IVqSvS7G69IQrObDD6KeeeGY7Z6N1YERn4KELcXBP4 tOcRbupq7/QuOVC2orCysGkaM4dGQJ7NWyID9hcSTwF7zqWwjIAdUlysPx6BZcBNHQoE yufg== X-Gm-Message-State: ALQs6tCm3gxsJTHneiHpJmbPBsJuDEo2eMoVEKTNIAS0Srb35dtb6tOa uLSiYobd80wUUKxkvBtaGSpsTFJr X-Google-Smtp-Source: AIpwx49SiI619S2eDez04EbTuAQUa9FNAs5v7vrZ/OQxGkDYeWNyXnocaj6mdi+tFnI3odUXLbgkfw== X-Received: by 10.223.136.110 with SMTP id e43mr1438522wre.101.1523551912256; Thu, 12 Apr 2018 09:51:52 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id k35sm3436193wre.55.2018.04.12.09.51.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 09:51:50 -0700 (PDT) In-Reply-To: <86k1tc1m7e.fsf@stephe-leake.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::234 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:224530 Archived-At: On 4/12/18 6:25 PM, Stephen Leake wrote: > 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". A new key binding or several is an obvious solution. It's also the clunkiest one (one: key bindings are precious, two: that means extra key presses to use, and three: extra stuff for the users to memorize). So of course we can fall back to this approach, but it would be great to discuss something less obvious first. > 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?) The error is not always near point, or even visible in the window. To get to it, we need a key binding. So, next-error or previous-error working already would be helpful. > I gather there might be more than one such list in a single buffer, so > compilation-last-buffer is insufficient. That's a problem for another day, I think. Lists in the same buffer can probably be combined anyway.