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: Sun, 15 Nov 2020 03:05:16 +0200 Message-ID: <48f942f9-a557-0185-25fe-612e78cd9071@yandex.ru> References: <87k0up68e4.fsf@mail.linkov.net> <99772eb6-5a4e-7cf6-259d-0e9429e6bf97@yandex.ru> <878sb3n0a9.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="3782"; 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: 44611@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 15 02:06:23 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 1ke6Up-0000tn-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Nov 2020 02:06:23 +0100 Original-Received: from localhost ([::1]:60552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ke6Uo-0004TC-2k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 20:06:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ke6UU-0004T3-RP for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 20:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ke6UU-0004qa-I2 for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 20:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ke6UU-0003Ka-07 for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 20:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Nov 2020 01:06: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.160540232912764 (code B ref 44611); Sun, 15 Nov 2020 01:06:01 +0000 Original-Received: (at 44611) by debbugs.gnu.org; 15 Nov 2020 01:05:29 +0000 Original-Received: from localhost ([127.0.0.1]:52287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ke6Tx-0003Jo-5n for submit@debbugs.gnu.org; Sat, 14 Nov 2020 20:05:29 -0500 Original-Received: from mail-ej1-f53.google.com ([209.85.218.53]:44925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ke6Tv-0003Jb-KP for 44611@debbugs.gnu.org; Sat, 14 Nov 2020 20:05:28 -0500 Original-Received: by mail-ej1-f53.google.com with SMTP id y17so13673222ejh.11 for <44611@debbugs.gnu.org>; Sat, 14 Nov 2020 17:05:27 -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=tS8ABXKX+mQj5aNP6Fwj+N3Uz0rahZHe89C52qehVjM=; b=spSCdhNVh715A5Bj5xed1GhHg0/AndJUFr0DI418002P1d0EfQiH7jAW5OXAtknEzM 23ik3wZ60Ew6B8yGddIqSECP0Vyes7IDIIDA86D88qchOMGRYQuPX2HwIRbBCUXCJSD0 0aPTvbbUEWAQ6tlVBJsNfEdxAHgZMS8qWYiOn5lOnFfuRj3zEWoZ/5ZGs4ubGW4yR80U 0TzXPPex1aK4LGPcDnN/zTwllXqFdImpA2PfO/12j6fGPs4E1V3qwurhkb4DZHQpuoa9 glDId8hNJslrQ6sTm96YAiaIEtleyC+/p29qjGiGn+TvvyVWH20eGWTmHEDvfV8Oamzz ECaQ== 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=tS8ABXKX+mQj5aNP6Fwj+N3Uz0rahZHe89C52qehVjM=; b=pzRc6phUe6UzyMuCrtsGV533UNVDDDA9jPgK3RhTy8kt5JlbgebFxeixf8pjOMbIVV 3bHP6PYJ4P2WEBGjD1eXiI8QjE5ypH8lLD/Fkb5suqikr+GteX+AdL02j325QbS4YFuH aMCvvOx9OTHAd7AZWxEYdrBnOm4ZIFclmlJo9c+xquu2s5cI77/epGs3POISWzHSL90L JqnZfIzJ+P1afjj4GEmP8n/TtfCBG/P//7lRsFOHa3sjiDKud6WUAKoFdEyrEVuvmzAR b+hrGrvIMdP9HMczAvJnUWiy0W53F7kZMArte2jEzutPIRV8prmrLfSE0mJ5Pj+SLQth cHcA== X-Gm-Message-State: AOAM533vXVUx5DjeIp5094264tcGkB5hphcADzphdoRUg2UvCpYqs0CC tSvcOnqbJ4p6pSC3d9nplVXlNCa+gbHdcA== X-Google-Smtp-Source: ABdhPJz1LGkfXT4nclSmntodthXziJFLymeddBoSdqIIj5oxyr+i5sSB5a1KpVQ1Vl7pHxMnoIxhbQ== X-Received: by 2002:a17:906:46d5:: with SMTP id k21mr8723257ejs.495.1605402321627; Sat, 14 Nov 2020 17:05:21 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id mj12sm4203251ejb.117.2020.11.14.17.05.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Nov 2020 17:05:20 -0800 (PST) In-Reply-To: <878sb3n0a9.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:193344 Archived-At: On 14.11.2020 22:36, Juri Linkov wrote: > tags 44611 fixed > close 44611 28.0.50 > quit > >>> I recall endless discussions about xref in the past. >>> But now I realized that xref-goto-xref just misses >>> an obvious thing, and nothing more is needed. >> >> Sounds promising! > > So now pushed to master. Very well. >>> Like e.g. 'quit-window' allows using a prefix argument >>> to change its behavior by relying on (interactive "P"), >>> xref-goto-xref should do the same: >> >> The proposed change is not quite the same (bury instead of kill), but if it >> really helps, go ahead. > > I don't know how important would be to kill *xref* instead of burying. Indeed, probably not at all important. I'm just saying the parallel seems very rough. Which might or might not be important from the standpoint of trying to unify different behaviors in Emacs, to make them more "regular". >> Please also note that instead of 'C-u RET' you can use 'TAB' already: it's >> bound to xref-quit-and-goto-xref which calls xref-goto-xref with QUIT=t. > > I know, but it's very odd to use 'TAB' to quit the window. The original justification for this binding (authored by Joao) was that by using it we indicate that the Xref buffer is used for "completion" (picking one result), rather then iterating over multiple matches. That's why it's TAB, because "TAB completion", apparently. Overall, it's not obvious, but it kinda makes sense.