From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49731: 28.0.50; Filter xref results by filename Date: Sun, 25 Jul 2021 12:10:37 +0300 Message-ID: <831r7myd0y.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15533"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49731@debbugs.gnu.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 25 11:11:10 2021 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 1m7aA9-0003qh-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 11:11:09 +0200 Original-Received: from localhost ([::1]:43926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7aA8-0006Wq-4m for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 05:11:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7aA2-0006Wh-OT for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 05:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7aA2-0001w1-Gp for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 05:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7aA2-0003fn-6E for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 05:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jul 2021 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49731 X-GNU-PR-Package: emacs Original-Received: via spool by 49731-submit@debbugs.gnu.org id=B49731.162720426114112 (code B ref 49731); Sun, 25 Jul 2021 09:11:02 +0000 Original-Received: (at 49731) by debbugs.gnu.org; 25 Jul 2021 09:11:01 +0000 Original-Received: from localhost ([127.0.0.1]:47579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7aA0-0003fY-Q9 for submit@debbugs.gnu.org; Sun, 25 Jul 2021 05:11:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7a9v-0003fI-R4 for 49731@debbugs.gnu.org; Sun, 25 Jul 2021 05:10:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34244) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7a9q-0001j5-BK; Sun, 25 Jul 2021 05:10:50 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2310 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7a9p-0007mn-Sc; Sun, 25 Jul 2021 05:10:50 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:210698 Archived-At: > Date: Sun, 25 Jul 2021 10:19:52 +0200 > From: Daniel Martín via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > I plan to implement a new feature for xref, but I'd like to get some > opinions first: > > Sometimes an xref backend returns a lot of results spread over several > files. This usually happens in huge projects and for certain operations > like "search references". To make them more manageable, I propose a new > command that can filter xref result groups (typically filenames) by a > regular expression. A user could filter by "tests/", or something like > that, to only get results from unit tests. If you want to see a similar > feature in action, go to > https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/background/background_contents.cc;bpv=1;bpt=1 > and type on "Type to filter by file path", under the "References" tab. I cannot see anything useful at that URL for some reason, so couldn't get a clear idea of what would be the result of the proposed feature. Can you describe it in more detail? In particular, does "filtering by file names" mean you'd leave only some of the matches in the XREF buffer, or does it mean something else? More generally, I wonder what are the purposes of this feature. Filtering is a means, but what are the ends here? Can you describe a couple of use cases that would provide the context for the feature and its projected uses? Thanks.