From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49731: 28.0.50; Filter xref results by filename Date: Sun, 25 Jul 2021 16:58:46 +0200 Message-ID: References: <831r7myd0y.fsf@gnu.org> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22840"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) Cc: 49731@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 25 17:00:36 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 1m7fcK-0005mn-LT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 17:00:36 +0200 Original-Received: from localhost ([::1]:38180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7fcJ-0001Hc-Mp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 11:00:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7fbm-0001Gh-Pj for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 11:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7fbm-0007UB-D7 for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 11:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7fbm-0006jb-9U for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jul 2021 15:00: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.162722514325778 (code B ref 49731); Sun, 25 Jul 2021 15:00:02 +0000 Original-Received: (at 49731) by debbugs.gnu.org; 25 Jul 2021 14:59:03 +0000 Original-Received: from localhost ([127.0.0.1]:49129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7fap-0006hi-4L for submit@debbugs.gnu.org; Sun, 25 Jul 2021 10:59:03 -0400 Original-Received: from sonic313-20.consmr.mail.ir2.yahoo.com ([77.238.179.187]:41960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7fam-0006hB-5Q for 49731@debbugs.gnu.org; Sun, 25 Jul 2021 10:59:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1627225134; bh=Ho8dbnFCljXZ4M+bh9NnOQpQUYSxunnybHf0EDL2x9c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=Ckrv0/te8UP4856RB+qURXHiVZjo7lNNg8CtfvPSxl916IuHyavzncrGfvVYHik0DfqN3GSw1/lS+9ShYpmYCtfhHesJeN7e8UXn8tFaCtkm5q5dZ4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QGLgJnndm9PuEIVQ7YrGP1CoHO58Xt9ragv_TPrFKJC oi3Vew0LvOp1IFhkspv1hjMOUdMErGrBfK3dLNsukUVtW3ElLkCHikXu.zEUSJj2eS3iadiNjNzW qWfBUVvU_54VvJe4KnF33IkrR6PIeHXnQjP3gYU6jAVazu6L2JO_1ivycYILECvwYIWN0GluVBeT OzxGKJZ9FtogbPbnrM2y0y.gOn4wsh4wDv7.W8C29jhaWhbbenpBjsJP5StMNEt9e_AYvXTXyLLe 1lOk5sriFePzplY5MS_q9YMyLbp58PqKX6H3lrnDVS6no6Od_mZsgCFYzCIks.Hwv3IJmB.7VyYA RT3V8fH9F6Gz6hFIyLz6qu2hooe13iDWtdN48VN7PlQlscAz5aDFU6znbhCoL8bFHKnWhZT.gBtZ Y0eYX90WNm3BY85.Y4JSdcbA2ztyxpLhsFjcubZgnsKP01LWZM0ZizY0LDCzH7nUJJXqgOUknNO1 V5y0bf6S06jYeOtJbSVFZoiq5AaoelCujzSRSJ2K6g X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Sun, 25 Jul 2021 14:58:54 +0000 Original-Received: by kubenode537.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2af5a0ce6697cbe939403c55e239052c; Sun, 25 Jul 2021 14:58:48 +0000 (UTC) In-Reply-To: <831r7myd0y.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 25 Jul 2021 12:10:37 +0300") X-Mailer: WebService/1.1.18736 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:210716 Archived-At: Eli Zaretskii writes: > > 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? For example, go to https://source.chromium.org/chromium/chromium/src/+/main:net/http/http_version.h;l=13;bpv=1;bpt=1 and click on "HttpVersion". That'll open a lower pane with references to the HttpVersion type in the Chromium codebase. Imagine that you are only interested in references from third party (vendor) libraries. You can click on "Type to filter by file path", type "third_party" in the search box and you'll only see references from files that are in the "third_party" directory, or one of its subdirectories. Another use case is that you only want to see references to a symbol from unit tests. You can type "unittest" to filter the results accordingly. Or, if you only want to see references from header files, you could type "\.h$". > > 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? Yes, it means two things (although how the feature would work can be discussed further): - Only xref groups (and their items) whose title matches the regular expression will be preserved in the buffer. - The part of the title that matches the regexp could be highlighted using a face derived from the "highlight" face, for example. Of course, we need to make it clear that the xref buffer is being filtered, and provide a way to return to the full list of results (pressing "q", maybe?).