From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#44611: Prefix arg for xref-goto-xref Date: Sat, 19 Dec 2020 23:41:17 +0200 Message-ID: <360150c4-c829-0ff6-1a2c-16b8360fb70d@yandex.ru> References: <87k0up68e4.fsf@mail.linkov.net> <99772eb6-5a4e-7cf6-259d-0e9429e6bf97@yandex.ru> <878sb3n0a9.fsf@mail.linkov.net> <48f942f9-a557-0185-25fe-612e78cd9071@yandex.ru> <875z67gd6z.fsf@mail.linkov.net> <72e9e5e9-651f-401f-2e26-faaac1b7fdb5@yandex.ru> <87v9cxleff.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13491"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , 44611@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 19 22:42:22 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 1kqjzZ-0003Oo-Ue for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 22:42:21 +0100 Original-Received: from localhost ([::1]:52698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqjzY-0001hv-So for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 16:42:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqjzG-0001he-En for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 16:42:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqjzF-0002Qe-Pj for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 16:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqjzF-00088I-Mn for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 16:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Dec 2020 21:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 44611-submit@debbugs.gnu.org id=B44611.160841408831222 (code B ref 44611); Sat, 19 Dec 2020 21:42:01 +0000 Original-Received: (at 44611) by debbugs.gnu.org; 19 Dec 2020 21:41:28 +0000 Original-Received: from localhost ([127.0.0.1]:43325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqjyi-00087W-Ja for submit@debbugs.gnu.org; Sat, 19 Dec 2020 16:41:28 -0500 Original-Received: from mail-ej1-f44.google.com ([209.85.218.44]:43948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqjyg-00087J-0L for 44611@debbugs.gnu.org; Sat, 19 Dec 2020 16:41:27 -0500 Original-Received: by mail-ej1-f44.google.com with SMTP id jx16so8294942ejb.10 for <44611@debbugs.gnu.org>; Sat, 19 Dec 2020 13:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QnkRXEKDPrbauBVYTAw+wKUHiGNcAjqt9PkxuduioP4=; b=brMuNmpzlOZEo4Q7dArPRlQ639IJiuOLppbMGvPQ1T3ufuFl3L7qJU/VXgGGIOy96a /eyQgTTwf+TpyLoB0TbHDQhMYQdmznSHiNTZTSjyfmEnWXIDmq//rSflFSl2kC4XFWpl BgMg/xrU9oel0HuxBvi6Y5HOBAUoZATYyjsGRWIiiSngBiofOmWd3+OUvQVBl4JkUhAa Qk03PoqdI9+4j0thSsCWLElasQBrlzuVs3VIgPm8prrsN496+QLKbRufe6Hq+sbCbR44 LtJ+vQ+2gi42IlLWL5B2NuGcgCrSQLH4ltLxF9jJ4yKFQZdeLOGveP/Rc2hGZfXXC7/s IAHQ== 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:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QnkRXEKDPrbauBVYTAw+wKUHiGNcAjqt9PkxuduioP4=; b=k02NEPAVMlOQHFtnMmo9TUHDiB57tcmET26kZzqdZL5amRKAWKv7CMhesPwFTWqttV WOLTAtmymciFSly7pOqiISOSPJwK613xOjidCDbfZl8fGevQvNrwsnucpxPmz4CeIiW2 W4L11Hpo1TrglCnWaxHeZmXy2yKZWRfQPqs2AlJwNXTr1JepDvNe4kmnqohZhir7klCC +XzQFqrzwMZmApVpYV+CNhvDSEBMRAsrmFfTwPq3cADC/Neb2fm+pA91aUZ6pvMso+zg /n7d7QZSGjy3h4v3HRA4/Mg/OzFXlnMNowtTSKuiVE/sNdNnQ3Z2KbZWLtLgwxX4ppS0 kcMg== X-Gm-Message-State: AOAM5301+2ShWlzxMecHH02SgdFM4F31TTtiWP8ehBkrJlDot776DWDe EPJ/xbzbIU6HY6VJLkDQE14Y8XXA3WxeSw== X-Google-Smtp-Source: ABdhPJzoVw4/PknlE3n/EVJm37aPeTJsSNzY72zoTo/TbAnOMN47bbJnktdkTfmx91seuhh34+AWeg== X-Received: by 2002:a17:907:214d:: with SMTP id rk13mr9910867ejb.501.1608414079785; Sat, 19 Dec 2020 13:41:19 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id ci20sm7129364ejc.26.2020.12.19.13.41.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Dec 2020 13:41:18 -0800 (PST) In-Reply-To: <87v9cxleff.fsf@mail.linkov.net> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:196432 Archived-At: Hi Juri, On 19.12.2020 22:38, Juri Linkov wrote: >>> I'd expect TAB rather to iterate over multiple matches, >>> i.e. like TAB in browsers go to the next match. Even in the *Completions* >>> buffer TAB moves to the next completion. And in icomplete-mode >>> the closest analogy to picking one result is 'C-j' >>> (icomplete-force-complete-and-exit). >> >> If people like it, I'm totally fine with changing the binding to 'C-j'. > > I'm very sorry for beating this horse again, but after trying to use xref > as a replacement of grep, typing 'C-x p g' pops up a grep-like buffer > and due to habit of typing the same keys that are supported by grep-mode > where among them is TAB bound to compilation-next-error to browse the > results forward, but instead of going to the next match, it does the > worst thing imaginable - kills the output buffer. > > Therefore, I propose this patch that binds TAB and S-TAB to command > that behave like compilation-next-error and compilation-previous-error: Sure, why not. What about that 'C-j' binding, though? Or are you (and Joao?) satisfied with 'C-u RET'?