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: Mon, 28 Dec 2020 02:36:03 +0200 Message-ID: <2fb9a693-db01-59bc-89be-ee427a0e354c@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> <834kkhtaxm.fsf@gnu.org> <874kkgswg2.fsf@mail.linkov.net> <83v9cwsct7.fsf@gnu.org> <87k0tab3y0.fsf@mail.linkov.net> <83pn31rg5a.fsf@gnu.org> <877dp9ycq6.fsf@mail.linkov.net> <837dp8r250.fsf@gnu.org> <4a0c8870-e2e7-97c7-5808-afa704ebee13@yandex.ru> <83mty4pj0u.fsf@gnu.org> <878s9o1ck2.fsf@mail.linkov.net> <837dp7q3hi.fsf@gnu.org> <2e07d6d1-5a83-77c3-7915-8efa46fd47c3@yandex.ru> <83h7oanxoi.fsf@gnu.org> <834kkanh8c.fsf@gnu.org> <189506b0-deeb-5ff3-c129-b083268a3cf3@yandex.ru> <83y2hlnb86.fsf@gnu.org> 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="23144"; 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: juri@linkov.net, joaotavora@gmail.com, 44611@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 28 01:37:10 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 1ktgX8-0005w0-IK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 01:37:10 +0100 Original-Received: from localhost ([::1]:46226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktgX7-0004LD-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Dec 2020 19:37:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktgX0-0004L3-Hi for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 19:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktgX0-0002Ij-Ae for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 19:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktgX0-0004pv-6l for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 19:37: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: Mon, 28 Dec 2020 00:37:02 +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.160911577918539 (code B ref 44611); Mon, 28 Dec 2020 00:37:02 +0000 Original-Received: (at 44611) by debbugs.gnu.org; 28 Dec 2020 00:36:19 +0000 Original-Received: from localhost ([127.0.0.1]:33890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktgWJ-0004ox-Ac for submit@debbugs.gnu.org; Sun, 27 Dec 2020 19:36:19 -0500 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:52719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktgWD-0004od-3j for 44611@debbugs.gnu.org; Sun, 27 Dec 2020 19:36:17 -0500 Original-Received: by mail-wm1-f41.google.com with SMTP id a6so9111937wmc.2 for <44611@debbugs.gnu.org>; Sun, 27 Dec 2020 16:36:13 -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=epzbq0YzlwxbpxJjAPYWIp+Kwzn0fSNWLu4jP8ePoIE=; b=SL3Yv4awmUs2IFKVPIflyH4hgZvRTDGCmfur4KwOl4uF87WQLwKqw7wvsLyLC5Nbg7 NcHrUXqOB2IZVE3XXNz5PScE9/zIgIs855v7U6IzIDGN1UyStmIdAYiHH5ZIsMsnTdO6 zTT9j5eWz+UkYBTBWNE//v5F15HLPSLaJMcyT1uykyil9W2pH0yhrCz3awBJF4wwP0eV 16avajhTcXpyUrWYwbwkXTIYH1H25gWUm0unxoWDnLLy8RSN27E7bcXB0JHxyuDF0f8b WUeim9qO7QASOFp5AlzfDlSTCBuSt+jtjyOGOYwIXUmQqzcC0BOk8tGMdnAA3WkbjFj8 D8Ag== 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=epzbq0YzlwxbpxJjAPYWIp+Kwzn0fSNWLu4jP8ePoIE=; b=YvNWEILgBQcetyWEFRrHgBVDIpTMDte/QiBz2j6Nsepp1O1gSNbD1yKp6PKWTqYq0+ aMJYMD7wYnCuMxs2QIUmWre7L0W4ifcr1tPR86M1C4kMJq1GrIv4pN+u5Cb/o0poXonu 3rf9KwY95n65S6HiIMBuVXTf7CPuXJSNVG7SRxW2lKSE+n1rpZH7LZ6sy271hpWw0+GH k9rKRAe1PYPd4XD2JsSk849TJcmvcBufPcylAKUK7ESxfiktxLt4bdqaGmGzAqP8Xo/+ y1QkDnqv7c3XKKlW0m9Q2xCS4KAuMDgjZc94QSX/ofztZBndWGHcmmjBkBaiVldq3OAE WP7Q== X-Gm-Message-State: AOAM533DCenwxl4n/WzBVkb6WEHXiuygxLF2Im7D9aWPyTR1CQOqptHz Ytwkd6HlW6wPTTJ1tpcVZgVhlfMH7S+T4Q== X-Google-Smtp-Source: ABdhPJyinofDvvhW/vuhk3le/oSio841dH3t3XVoAm8KYD4p7PilbLo6osSNfqPdmOkTge5GvZUruw== X-Received: by 2002:a1c:8181:: with SMTP id c123mr18954454wmd.23.1609115766856; Sun, 27 Dec 2020 16:36:06 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id f77sm15645524wmf.42.2020.12.27.16.36.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Dec 2020 16:36:05 -0800 (PST) In-Reply-To: <83y2hlnb86.fsf@gnu.org> 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:196836 Archived-At: On 25.12.2020 17:42, Eli Zaretskii wrote: >> Cc: juri@linkov.net, joaotavora@gmail.com, 44611@debbugs.gnu.org >> From: Dmitry Gutov >> Date: Fri, 25 Dec 2020 16:49:39 +0200 >> >>>> Changing the latter to use the xref UI (which will have to be renamed >>>> and become a separate package, BTW) is also likely to encounter much >>>> bigger resistance than anything we've done in this area before: people >>>> don't have the same expectations for new commands as they have for >>>> existing ones, so I'm surprised you asked this (given your overall >>>> backward compatibility stance, much stronger than mine). >>> >>> An optional feature cannot hurt, even if and when it becomes the >>> default. Thus, there's no need for me to object to such long-term >>> plans, if they are announced and proceed at a controlled pace >>> (including the decision when it becomes the default). >> >> This endeavor might need more of an encouragement than "I don't object". > > I didn't have encouragement in mind. I'm asking if this is the plan, > or some kind of desire. If it is, then I can understand that. If > there's no such plan, then I don't think I understand why we need to > make Xref behave similarly and have the same key bindings. I think I explained that? "Some kind of desire", yes, there is. In particular, there is movement in splitting the "show xrefs" action into two different behaviors: one for definitions (when we expect to almost always have very few hits, and usually just one), another for anything else like references, "apropos", or grep hits (see the commit 8c38345629 I just made for some better understanding). And the latter behavior, governed by xref-show-xrefs-function, might as well become even closer to grep-mode.