GNU bug report logs - #49731
28.0.50; Filter xref results by filename

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Daniel Martín <mardani29@HIDDEN>; dated Sun, 25 Jul 2021 08:21:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 13 Feb 2024 17:04:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 13 12:04:27 2024
Received: from localhost ([127.0.0.1]:46400 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rZwCo-0005F7-Rl
	for submit <at> debbugs.gnu.org; Tue, 13 Feb 2024 12:04:27 -0500
Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35313)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1rZwCn-0005Es-1G
 for 49731 <at> debbugs.gnu.org; Tue, 13 Feb 2024 12:04:26 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id 4879160008;
 Tue, 13 Feb 2024 17:03:59 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
In-Reply-To: <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN> (Dmitry Gutov's
 message of "Wed, 23 Nov 2022 16:19:47 +0200")
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
 <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
Date: Tue, 13 Feb 2024 18:52:29 +0200
Message-ID: <86v86s4dsi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

>> Now pushed to master in the commit 3573ebfa6d (it seems this is
>> backward-compatible since it only sets buffer-local variables).
>
> Nice.
>
> Do you plan on adding an outline-[minor-]mode command to hide/show by
> regexp?

So now here are these two commands:

  / s   outline-show-by-heading-regexp
  / h   outline-hide-by-heading-regexp

Also there is an additional helper function that is needed
to keep hidden outlines and restore them after reverting the
xref buffer with 'g' (xref-revert-buffer).
This is an example of advice that does this.
Later when xref will use revert-buffer-function,
this advice could be replaced by a simple hook call:

#+begin_src emacs-lisp
(define-advice xref-revert-buffer (:around (ofun &rest args) keep-outlines)
  "Keep hidden outlines after xref revert."
  (let ((regexp (outline-hidden-headings-regexp))
        (value (apply ofun args)))
    (outline-hide-by-heading-regexp regexp)
    value))
#+end_src


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=outline-by-regexp.patch

diff --git a/lisp/outline.el b/lisp/outline.el
index 5ac0f0707f1..d933bd4a444 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -92,6 +92,8 @@ outline-mode-prefix-map
     (define-key map "\C-o" 'outline-hide-other)
     (define-key map "\C-^" 'outline-move-subtree-up)
     (define-key map "\C-v" 'outline-move-subtree-down)
+    (keymap-set map "/ s" #'outline-show-by-heading-regexp)
+    (keymap-set map "/ h" #'outline-hide-by-heading-regexp)
     (define-key map [(control ?<)] 'outline-promote)
     (define-key map [(control ?>)] 'outline-demote)
     (define-key map "\C-m" 'outline-insert-heading)
@@ -1661,6 +1663,42 @@ outline--show-headings-up-to-level
          beg end)))
     (run-hooks 'outline-view-change-hook)))
 
+(defun outline-show-by-heading-regexp (regexp)
+  (interactive (list (read-regexp "Regexp to show outlines")))
+  (let (outline-view-change-hook)
+    (outline-map-region
+     (lambda ()
+       (when (string-match-p regexp (buffer-substring (pos-bol) (pos-eol)))
+         (outline-show-branches) ;; To reveal all parent headings
+         (outline-show-entry)))
+     (point-min) (point-max)))
+  (run-hooks 'outline-view-change-hook))
+
+(defun outline-hide-by-heading-regexp (regexp)
+  (interactive (list (read-regexp "Regexp to hide outlines")))
+  (let (outline-view-change-hook)
+    (outline-map-region
+     (lambda ()
+       (when (string-match-p regexp (buffer-substring (pos-bol) (pos-eol)))
+         (outline-hide-subtree)))
+     (point-min) (point-max)))
+  (run-hooks 'outline-view-change-hook))
+
+(defun outline-hidden-headings-regexp ()
+  (let ((headings))
+    (outline-map-region
+     (lambda ()
+       (when (save-excursion
+               (outline-end-of-heading)
+               (seq-some (lambda (o) (eq (overlay-get o 'invisible)
+                                         'outline))
+                         (overlays-at (point))))
+         (push (buffer-substring (pos-bol) (pos-eol)) headings)))
+     (point-min) (point-max))
+    (mapconcat (lambda (heading)
+                 (regexp-quote heading))
+               (nreverse headings) "\\|")))
+
 
 ;;; Visibility cycling
 

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 25 Nov 2022 07:35:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 25 02:35:41 2022
Received: from localhost ([127.0.0.1]:33326 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oyTFM-0004B9-Ti
	for submit <at> debbugs.gnu.org; Fri, 25 Nov 2022 02:35:41 -0500
Received: from mail-wr1-f43.google.com ([209.85.221.43]:46708)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kevin.legouguec@HIDDEN>) id 1oyTFK-0004Ag-Os
 for 49731 <at> debbugs.gnu.org; Fri, 25 Nov 2022 02:35:39 -0500
Received: by mail-wr1-f43.google.com with SMTP id n7so5456983wrr.13
 for <49731 <at> debbugs.gnu.org>; Thu, 24 Nov 2022 23:35:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=B/R7Ld53TWgYACWYOtw9DmfgTLl7G2qj/2vbvkAWO5s=;
 b=ePLaly6TKzg4aq73QeOGHnd0lEZDyqaq2PxzoNmo2ZwLTuNSF9HwGHFfx9v7fDwnDi
 TAbx9neFJc0jVTyYpRpu04FFEYAacKVLkBppLLYdRmLlJpvglpXW5TdDiDwjxIgT79VU
 vDOGnFAd0AMnzv33CBlfWIT9VrNTrGpRbZatIyrT48thZoSn0SlHOzSKLbvrbEAPsMSg
 Ql8++Qb5ZdngZoKlgyHacJC9oDDD3a0zWOLA1tXB4k9FtVXWmS5N33/onND9bGNR3/xW
 3GD0dOlLYBaGOVQxFunLbeJ9a1jzSPPw0HMiwXNzzv+axdtcmQ21AV+1ImxoOX2P3ZXZ
 DQkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=B/R7Ld53TWgYACWYOtw9DmfgTLl7G2qj/2vbvkAWO5s=;
 b=gRfmMpAadQPXH+DUmBRxlbveyTL6CGZYdu6TmlyXSagNFkaALfyhQ7Lb7tHqK0OBsF
 ZYxeq7uNvqLwh5WR5d0QsUdCDJ/XV8iHJC4PTyX9nMBuQ7rdexs8QFr4NCmZ0tDYOtK7
 RrdBtjzs2hgePJ7mI8yqeGh92RYN+jcFtFoH3xECaFM9tExqKMGdakqz/m4FWPLjZ0JO
 qjYngvNSZ49zf0V58SNZ280BAl7ncfmSWdqlp2wPxS0fwbcHAaiqIKTly/iD7bhFT2ky
 hMPkTRMxeVBu5uXy4Fk33lnCtQZYAigDPMwqh1OTmApp2IvtF2H07tIf0PFir7BdvThg
 HDsg==
X-Gm-Message-State: ANoB5plRQ06EbON+quA4bWHFduAkGcP4jtobiGwIOGAYIHf4/gdtOqNU
 v1Jlq+BPsDwYmCXMcxt5C7g=
X-Google-Smtp-Source: AA0mqf4ZEXUtLDhiNnsuRkgztYYYVTPgq6PZcueOXGAn807U+eqKiQRXeqnPiiQ1ZbG1NN2pl6mZMw==
X-Received: by 2002:a05:6000:910:b0:236:56a9:65cc with SMTP id
 bz16-20020a056000091000b0023656a965ccmr22237470wrb.563.1669361730620; 
 Thu, 24 Nov 2022 23:35:30 -0800 (PST)
Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49])
 by smtp.gmail.com with ESMTPSA id
 u1-20020a5d5141000000b002365cd93d05sm3019560wrt.102.2022.11.24.23.35.29
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 24 Nov 2022 23:35:29 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
In-Reply-To: <86bkowztrn.fsf@HIDDEN> (Juri Linkov's message of "Thu, 
 24 Nov 2022 09:48:52 +0200")
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
 <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
 <86leo1d0hj.fsf@HIDDEN>
 <89729272-82bd-f944-9815-3536a3f9830f@HIDDEN>
 <867czlcz2u.fsf@HIDDEN>
 <3805336b-bb24-6853-3b36-39481a49e64f@HIDDEN>
 <86bkowztrn.fsf@HIDDEN>
Date: Fri, 25 Nov 2022 08:35:28 +0100
Message-ID: <87k03jlc5b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

>> So it might be generally useful to have an interactive command to filter
>> out whatever one might prefer. If you agree, of course.
>
> This would be a nice addition to outline.el.  For example, new commands
> outline-hide-by-regexp and outline-show-by-regexp that could use
> existing code extracted from outline--show-headings-up-to-level:
>
>   (outline-map-region
>    (lambda ()
>      (when (let ((beg (point))
>                  (end (progn (outline-end-of-heading) (point))))
>              (string-match-p heading-regexp (buffer-substring beg end)))
>        ;; hide entry when heading match regexp
>        (outline-hide-entry))))

(Hi =F0=9F=91=8B  Nothing much to add, just thought I'd express my wholehea=
rted
agreement about this being a useful addition to outline.el; I've missed
Org's "sparse tree" feature in other outline contexts, and I look
forward to using it in more than just xref buffers, e.g. Diff or
prog-mode.

(info "(org) Sparse Trees")

C-x p f ORG-NEWS TAB RET
C-c / / export RET

Not saying that outline-show-by-regexp should be a 1:1 reimplementation,
e.g. highlighting matches or searching section bodies might not be
essential; still, thought it'd be worth mentioning this bit of "prior
art")




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 24 Nov 2022 08:02:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 24 03:02:13 2022
Received: from localhost ([127.0.0.1]:57100 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oy7BU-0004Iw-Tp
	for submit <at> debbugs.gnu.org; Thu, 24 Nov 2022 03:02:13 -0500
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:54337)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1oy7BT-0004Ih-16
 for 49731 <at> debbugs.gnu.org; Thu, 24 Nov 2022 03:02:11 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id F213F1C000D;
 Thu, 24 Nov 2022 08:02:00 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
In-Reply-To: <3805336b-bb24-6853-3b36-39481a49e64f@HIDDEN> (Dmitry Gutov's
 message of "Wed, 23 Nov 2022 20:47:11 +0200")
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
 <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
 <86leo1d0hj.fsf@HIDDEN>
 <89729272-82bd-f944-9815-3536a3f9830f@HIDDEN>
 <867czlcz2u.fsf@HIDDEN>
 <3805336b-bb24-6853-3b36-39481a49e64f@HIDDEN>
Date: Thu, 24 Nov 2022 09:48:52 +0200
Message-ID: <86bkowztrn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> (add-hook 'xref-after-update-hook
>>            (lambda ()
>>              (setq-local outline-default-state 1
>>                          outline-default-rules
>>                          '((match-regexp . "ChangeLog\\|test/manual/etags")))
>>              (outline-minor-mode +1)))
>> where "ChangeLog" and "test/manual/etags" are not interesting groups.
>
> Makes sense.
>
> But IME the files you currently want to filter out depend on your current
> activity: sometimes you want to show the tests, and sometimes
> not. Sometimes you want to see the tests only.
>
> So it might be generally useful to have an interactive command to filter
> out whatever one might prefer. If you agree, of course.

This would be a nice addition to outline.el.  For example, new commands
outline-hide-by-regexp and outline-show-by-regexp that could use
existing code extracted from outline--show-headings-up-to-level:

  (outline-map-region
   (lambda ()
     (when (let ((beg (point))
                 (end (progn (outline-end-of-heading) (point))))
             (string-match-p heading-regexp (buffer-substring beg end)))
       ;; hide entry when heading match regexp
       (outline-hide-entry))))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 23 Nov 2022 18:49:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 13:49:00 2022
Received: from localhost ([127.0.0.1]:56243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxuns-0004X1-02
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:49:00 -0500
Received: from mail-wr1-f53.google.com ([209.85.221.53]:42501)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1oxunq-0004Wm-2F
 for 49731 <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:48:58 -0500
Received: by mail-wr1-f53.google.com with SMTP id cl5so30802913wrb.9
 for <49731 <at> debbugs.gnu.org>; Wed, 23 Nov 2022 10:48:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=3YQKCQaYsnpozOeVAt0WSh5ydoZF+2/AE2JG+xhZ8Fs=;
 b=LdKcTL050wBFyMVqqCkxMiAFvbYmRX8BDlV/kvV+9eRNnOkhcwlgKvhi7tISL7nXfR
 zFSefTksQXMmWRYRJm+VgfvpFla8HvDMrkuN8nNv86lu4RC63YOvszaOwAlAaSdgXwU8
 xEO3y2YNCSraVUiR1HZ8R7ptgbBlNGUUpGdJ9A3Qnmrs8m14PXen9dhM0ViFRril/29c
 O2m3WLHcGLjRqVpsKTcgepkKlLTerjtuh4mz8fStM2HW5l6Ng4YmR8GO+An/e53e0CIo
 bSI472uaiNf5DO/c+0+FLPNE9RquODfCxCrrqLwvmH03Yp3BWNieLWhkbs4ff/vgXG1s
 yCfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=3YQKCQaYsnpozOeVAt0WSh5ydoZF+2/AE2JG+xhZ8Fs=;
 b=5Mr+SSbQ1DXcLheASbkVmn620zWDRGwlHE15xDDZW0/rqK8NgDQH63ZdXbBBfW8jdH
 f1sUO5YqQi/YSxivaY/bXthVsgrvJz2/5qcQPXsrXodmmmvvI+zmwLj9FVfaI/O6Zgc0
 CrLGGa9hum0tADXjqf66s+zeai9mqItBBDvvfsMpxvHYpBqUstuumZPMCSuDreFntw7r
 qb0f/nJtg8wXmqYbqgX7CWfx/B696Mhrn5XtwpdZ+ppO+1rO8qMrNABZYiUdMLY0KEY/
 qfQ+CaxmbJ6lAmMACQqBSwNs0hY+ZbEntNqdAmS0+zTGxVXqqA05aXJ0d8xzOb/uIGMU
 FTWw==
X-Gm-Message-State: ANoB5pnapGJ5waLqaswamPwe+9BWpiE4mroVdZFbYEM8us2/JXlq0A9j
 iuhszv3Y0LkDLu+X0b237zY=
X-Google-Smtp-Source: AA0mqf7tUJBT0jvJ+adC22HBHUVqXT3r8cZp4niJQlVcy26VmM6fcUY06M8She0YqopKPV/BA5bzxA==
X-Received: by 2002:a5d:698c:0:b0:236:4930:2465 with SMTP id
 g12-20020a5d698c000000b0023649302465mr18178392wru.235.1669229332326; 
 Wed, 23 Nov 2022 10:48:52 -0800 (PST)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id
 m29-20020a05600c3b1d00b003c6b7f5567csm8416255wms.0.2022.11.23.10.48.51
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 23 Nov 2022 10:48:51 -0800 (PST)
Message-ID: <f99485bc-7c34-c416-3466-7d6345bfa263@HIDDEN>
Date: Wed, 23 Nov 2022 20:48:50 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.4.2
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Content-Language: en-US
To: =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN> <m15ywv8z2n.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <m15ywv8z2n.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 27/7/21 20:08, Daniel Martín via Bug reports for GNU Emacs, the Swiss 
army knife of text editors wrote:
> and also make sure that "p" and "n" skip results that are
> folded

This is now fixed on master, commit c38f3b1ce1.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 23 Nov 2022 18:47:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 13:47:22 2022
Received: from localhost ([127.0.0.1]:56234 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxumI-0004UH-4b
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:47:22 -0500
Received: from mail-wr1-f47.google.com ([209.85.221.47]:35741)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1oxumF-0004U2-A4
 for 49731 <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:47:20 -0500
Received: by mail-wr1-f47.google.com with SMTP id b12so16972139wrn.2
 for <49731 <at> debbugs.gnu.org>; Wed, 23 Nov 2022 10:47:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=14t8SroXSP4KLRtOFlZ9JiQJ0HYG/vwlaMOD5syRzdA=;
 b=GA+R7QSEq2uVG8HQ5U/Z/mWupfw81ktDWGRdO1QGyGLcAKKMJ+gnfxiHJx4BfPTG0Q
 us3ma4sucHtPwNsC2hQ7rAtt01HSSH+IKRs6UmrFJTMz6eBdqqloqy3Sau6OCi7jJEbj
 MPMdkcaKych4V6/xbvimj0ODyrXNTVfDepVGx11JVqqU516iacjSkj/eye1VHt6wFWfY
 e5tQZIZkx0L4S4bzzSbZENwacBzgDDzpuso8r4jstjRgJ1JgUCVoIB+2p4H/tO19m9KG
 pNQvIAnZa80MXirzdrD7ktM30GWyCZFDKLTUKUP2JWDDudDR9OSbgsvLZ+Vt9uEyFNXt
 PgtA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=14t8SroXSP4KLRtOFlZ9JiQJ0HYG/vwlaMOD5syRzdA=;
 b=Y0nJYAZnxt3QISuYoi3tbzDzQio8GB0fEHySYFaKldRJCinvLWSPbH3BmQgMiSBg3R
 y45NIopAwseDRKR3m3mDKR/QBN+QLAuvc4P2P5saqiK2fqJ4/IokWXZd3c6o95YU+Gq5
 Hy+UOWTmimua3GRImlecKC8h6cJ6hO7byPTeMnX9f1cIQSyioEdZKaB621/QYmXYYxgf
 px8tjBfprSnUCslAzNIkf+NONXwIRaY2UyWanZKzP+x6DuchEz679hEeiW+qsKkkTYpo
 odG/GT/YLLn6tylzBoRTuzcuLgg9jWiKjCBdGUBHFSuAJGimE5FzzK9WDoyh7uBT91OG
 4eig==
X-Gm-Message-State: ANoB5pnSh6fldp9cy4sEP2RhEk6d7vNnsPiX/HF3KMqzzvyWW0BDTw9t
 glBUsx40UiATWBUM8kMZagU=
X-Google-Smtp-Source: AA0mqf7VLv9St5fzXEyu/8BsvuUZgI1Ta0a9l+xAcSB+18R6AWi4qAPU6pYVC8/JOEt8t8qz1zwVbw==
X-Received: by 2002:a05:6000:1b0c:b0:234:3e14:ea66 with SMTP id
 f12-20020a0560001b0c00b002343e14ea66mr18202865wrz.272.1669229233392; 
 Wed, 23 Nov 2022 10:47:13 -0800 (PST)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id
 p1-20020a1c5441000000b003b4cba4ef71sm2974447wmi.41.2022.11.23.10.47.11
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 23 Nov 2022 10:47:12 -0800 (PST)
Message-ID: <3805336b-bb24-6853-3b36-39481a49e64f@HIDDEN>
Date: Wed, 23 Nov 2022 20:47:11 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.4.2
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Content-Language: en-US
To: Juri Linkov <juri@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
 <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
 <86leo1d0hj.fsf@HIDDEN>
 <89729272-82bd-f944-9815-3536a3f9830f@HIDDEN>
 <867czlcz2u.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <867czlcz2u.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 23/11/22 20:20, Juri Linkov wrote:
> Ah, now I see.  This is easy as well, for example,
> this is what I use for the Emacs source repo:
> 
> #+begin_src emacs-lisp
> (add-hook 'xref-after-update-hook
>            (lambda ()
>              (setq-local outline-default-state 1
>                          outline-default-rules
>                          '((match-regexp . "ChangeLog\\|test/manual/etags")))
>              (outline-minor-mode +1)))
> #+end_src
> 
> where "ChangeLog" and "test/manual/etags" are not interesting groups.

Makes sense.

But IME the files you currently want to filter out depend on your 
current activity: sometimes you want to show the tests, and sometimes 
not. Sometimes you want to see the tests only.

So it might be generally useful to have an interactive command to filter 
out whatever one might prefer. If you agree, of course.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 23 Nov 2022 18:21:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 13:21:25 2022
Received: from localhost ([127.0.0.1]:56159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxuNB-0001Wa-8w
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:21:25 -0500
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:58475)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1oxuN8-0001WC-V8
 for 49731 <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:21:23 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id F0430E0004;
 Wed, 23 Nov 2022 18:21:13 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
In-Reply-To: <89729272-82bd-f944-9815-3536a3f9830f@HIDDEN> (Dmitry Gutov's
 message of "Wed, 23 Nov 2022 20:08:43 +0200")
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
 <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
 <86leo1d0hj.fsf@HIDDEN>
 <89729272-82bd-f944-9815-3536a3f9830f@HIDDEN>
Date: Wed, 23 Nov 2022 20:20:25 +0200
Message-ID: <867czlcz2u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>>> Do you plan on adding an outline-[minor-]mode command to hide/show by
>>> regexp?
>> Do you mean enabling outline-minor-mode in the xref buffer?
>> Currently to enable it, the users need to add to the init file:
>>    (add-hook 'xref-after-update-hook 'outline-minor-mode)
>> that is not too self-evident.  Maybe a new option could help?
>
> No, I mean suppose I have enabled outline-minor-mode manually.
>
> How do I filter the groups by name/regexp?

Ah, now I see.  This is easy as well, for example,
this is what I use for the Emacs source repo:

#+begin_src emacs-lisp
(add-hook 'xref-after-update-hook
          (lambda ()
            (setq-local outline-default-state 1
                        outline-default-rules
                        '((match-regexp . "ChangeLog\\|test/manual/etags")))
            (outline-minor-mode +1)))
#+end_src

where "ChangeLog" and "test/manual/etags" are not interesting groups.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 23 Nov 2022 18:08:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 13:08:55 2022
Received: from localhost ([127.0.0.1]:56138 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxuB5-0001CS-Ff
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:08:55 -0500
Received: from mail-wr1-f47.google.com ([209.85.221.47]:35611)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1oxuB2-0001C1-W8
 for 49731 <at> debbugs.gnu.org; Wed, 23 Nov 2022 13:08:54 -0500
Received: by mail-wr1-f47.google.com with SMTP id b12so16821436wrn.2
 for <49731 <at> debbugs.gnu.org>; Wed, 23 Nov 2022 10:08:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=m9vopxe1s4pVjpJ7guApOLOJJhgZmb1YgyZZ7/UY6Sk=;
 b=HwhB9D2xM70HKZg38d0sz495RqKd1uJaD/F17mX3zFrELldM3j56jkaBAeaEeEJBqG
 cms+y8TOqtfUkaC4PKdjOFRj8sr7Y3OmEOYMCCmR6CHsQUfTaAv+9c2Uwt1RXT0mFLts
 KC6NvlJxjwyoCxeC91PhT0ViombzxMGCGVlCSSM1qiIRxds5tWhO/YUJy5WBSYJXuh1n
 NyOS1nIl7A5Uwcm26OlzRWFk+rQ4kXClck7qPJ9VDRcu6zCk5zKJDZzDRhrX86fXFw5P
 wrwnLn6rS0ZIGLqTPwNG7KJp56enmd1jF9ezFZdIw1AZc+haUDQxtAeczJi/7egohgOG
 O9lQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=m9vopxe1s4pVjpJ7guApOLOJJhgZmb1YgyZZ7/UY6Sk=;
 b=nOBFfNZPVAC0HZ7JUB752tYGxtUj1InWIHGn5LkbPGGw8V0XUeZWO9B81Mde2pE4/1
 +xyCHIOZeqkzbbd5Id9d6XCnwA2jfb+a+AgA/p1L/vcZqdYb3Wl8GzYRoJXaQ1fAqwof
 DUAy+r726NQOohaOmBICHupQPenGOwztQrnYy7ZFnMmez7Rq0UpGaiQVr4m2ctZ1LGj2
 iVp0LNOUcWHGkuLz1SFJAga67OQK4zmt+fqAvhz6n7vKdPKu5ZdyMldL7nG1kwJWHgqh
 f22HKIt2xKaGb29x8Prhy41gtT0SJRU90vlX2L8LhYH3WfJ0B9oaCd3MLjpYO8UsiRbk
 RtcA==
X-Gm-Message-State: ANoB5pmG5LR7erUTb2KyP8E7VYNORdR2UR2bL/MbhtO93uMCbs1souxv
 XqcZv1Ni58ZlLjAQonM3v+Y=
X-Google-Smtp-Source: AA0mqf6EWVtdhn4fasADK//r9aJq2XDmXvLGZEueuX82YNyn/uN2/9U/dcBfC/tTwNAlIMWTi+8RPw==
X-Received: by 2002:adf:bc12:0:b0:241:bc6a:ceb with SMTP id
 s18-20020adfbc12000000b00241bc6a0cebmr17140741wrg.514.1669226926852; 
 Wed, 23 Nov 2022 10:08:46 -0800 (PST)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id
 u11-20020adfed4b000000b00241e8d00b79sm3912361wro.54.2022.11.23.10.08.45
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 23 Nov 2022 10:08:46 -0800 (PST)
Message-ID: <89729272-82bd-f944-9815-3536a3f9830f@HIDDEN>
Date: Wed, 23 Nov 2022 20:08:43 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.4.2
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Content-Language: en-US
To: Juri Linkov <juri@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
 <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
 <86leo1d0hj.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86leo1d0hj.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 23/11/22 19:50, Juri Linkov wrote:
>>>> And now a new feature implemented in bug#53981 allows to replace
>>>> the unreliable line above with using outline-search-function:
>>> Now pushed to master in the commit 3573ebfa6d (it seems this is
>>> backward-compatible since it only sets buffer-local variables).
>> Nice.
>>
>> Do you plan on adding an outline-[minor-]mode command to hide/show by
>> regexp?
> Do you mean enabling outline-minor-mode in the xref buffer?
> Currently to enable it, the users need to add to the init file:
> 
>    (add-hook 'xref-after-update-hook 'outline-minor-mode)
> 
> that is not too self-evident.  Maybe a new option could help?

No, I mean suppose I have enabled outline-minor-mode manually.

How do I filter the groups by name/regexp?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 23 Nov 2022 17:51:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 12:51:28 2022
Received: from localhost ([127.0.0.1]:56126 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxtuC-0000lX-1d
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 12:51:28 -0500
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:46901)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1oxtu7-0000lG-Ol
 for 49731 <at> debbugs.gnu.org; Wed, 23 Nov 2022 12:51:26 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id E3147240005;
 Wed, 23 Nov 2022 17:51:13 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
In-Reply-To: <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN> (Dmitry Gutov's
 message of "Wed, 23 Nov 2022 16:19:47 +0200")
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
 <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
Date: Wed, 23 Nov 2022 19:50:00 +0200
Message-ID: <86leo1d0hj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>>> And now a new feature implemented in bug#53981 allows to replace
>>> the unreliable line above with using outline-search-function:
>> Now pushed to master in the commit 3573ebfa6d (it seems this is
>> backward-compatible since it only sets buffer-local variables).
>
> Nice.
>
> Do you plan on adding an outline-[minor-]mode command to hide/show by
> regexp?

Do you mean enabling outline-minor-mode in the xref buffer?
Currently to enable it, the users need to add to the init file:

  (add-hook 'xref-after-update-hook 'outline-minor-mode)

that is not too self-evident.  Maybe a new option could help?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 23 Nov 2022 14:20:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 09:20:05 2022
Received: from localhost ([127.0.0.1]:54236 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxqbd-0000au-Cz
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 09:20:05 -0500
Received: from mail-wr1-f50.google.com ([209.85.221.50]:36643)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1oxqbT-0000Zx-GC
 for 49731 <at> debbugs.gnu.org; Wed, 23 Nov 2022 09:19:55 -0500
Received: by mail-wr1-f50.google.com with SMTP id z4so15022608wrr.3
 for <49731 <at> debbugs.gnu.org>; Wed, 23 Nov 2022 06:19:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=8Ff9pHSQrZGQBgs2fXLvVxj185HgKa2ZpZyYxWzbQl0=;
 b=CRKV44VmU712gPrIz8iJQk1JVLtIV1QAGvSPfb21StzUP3CZGtVt7Bl6LLa2zoRjgV
 1VUM2mgeMjk8pijTacazHCvqIhDdrySmT24pZm13y/daLMP8NFcK7V7ugLtDZNcm6se0
 vorg76uYNp/3LbmVJjHlw7XWNzk3z6WjbRJZ9hRI0zh5qZoQjl0eLlfQjZoD+AHZg/NR
 yig4seFefVkS8NNTXt1k97g7JJcgc7U/g4g8gGP3C9odcLUzcsC/pwQ1KeXTJkLnFVj1
 W/ywyHGdtFRIL+z1KIL6t4WJasFbXqVsPIJ0lgES6Y9mEtDVTe18njCrQgLWFXYKbbLB
 SQCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=8Ff9pHSQrZGQBgs2fXLvVxj185HgKa2ZpZyYxWzbQl0=;
 b=kaFT+6rQ5TNCvHvFn4jPs9IFljlXyk+PecDFjlkpp3l0JTE9w0Mo1pQjpnQF6yyBpg
 D+CMRxctuo3jwAj8EKxE4CwykzCn2ZA7Jxsrry/RLAE/XQryDZZZSg+5OUWkHc0cIQcp
 LDqF6jMgzwPPJaUvLe6R/v2VJblFS4plo53J5lYAMyuoBVP4Q4YVGGK+/jFTZrVYrPBi
 H50hsLqMGk4pzkGHdchS1GGlhq7kKY2okDyviTVX9sLi8+2svoiyMvA8ComHqT17hovO
 NWSc+ZfjCn9KTSsfuyPiAFTf7lXIhh8zwd2kWKUwySt0vrjJY6xOh4KGdj9dzNyXIhWG
 qiRw==
X-Gm-Message-State: ANoB5pkK1CytmI1ZSrfstJ41z+bz9hzWZFXAPuu6Yce7xbN/RSVQOtRX
 ftRG417DkR7MhZF11EfxQcU=
X-Google-Smtp-Source: AA0mqf4cTeAi6nyf9QSlZlXddeDfoFfKjMLUUWlmdN2d7bm+XCiserra/AP6WQqbkwpl2MJl0p5aiw==
X-Received: by 2002:adf:b342:0:b0:236:62ce:3db with SMTP id
 k2-20020adfb342000000b0023662ce03dbmr17327696wrd.687.1669213189404; 
 Wed, 23 Nov 2022 06:19:49 -0800 (PST)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id
 d9-20020adfef89000000b00241dd5de644sm6619398wro.97.2022.11.23.06.19.48
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 23 Nov 2022 06:19:48 -0800 (PST)
Message-ID: <16f2a5d7-fb89-5e8c-71b7-c9f9ddc5d4e3@HIDDEN>
Date: Wed, 23 Nov 2022 16:19:47 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.4.2
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Content-Language: en-US
To: Juri Linkov <juri@HIDDEN>, =?UTF-8?Q?Daniel_Mart=c3=adn?=
 <mardani29@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
 <86ilj6rrnq.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86ilj6rrnq.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 23/11/22 10:39, Juri Linkov wrote:
>> And now a new feature implemented in bug#53981 allows to replace
>> the unreliable line above with using outline-search-function:
> Now pushed to master in the commit 3573ebfa6d (it seems this is
> backward-compatible since it only sets buffer-local variables).

Nice.

Do you plan on adding an outline-[minor-]mode command to hide/show by 
regexp?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 23 Nov 2022 08:40:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 23 03:40:41 2022
Received: from localhost ([127.0.0.1]:53535 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxlJB-0007o9-17
	for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 03:40:41 -0500
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:59125)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1oxlJ8-0007nv-2C
 for 49731 <at> debbugs.gnu.org; Wed, 23 Nov 2022 03:40:39 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id C15DBFF803;
 Wed, 23 Nov 2022 08:40:30 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
In-Reply-To: <86ilj83fik.fsf@HIDDEN> (Juri Linkov's message of "Mon, 
 21 Nov 2022 09:58:43 +0200")
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN> <86ilj83fik.fsf@HIDDEN>
Date: Wed, 23 Nov 2022 10:39:21 +0200
Message-ID: <86ilj6rrnq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> And now a new feature implemented in bug#53981 allows to replace
> the unreliable line above with using outline-search-function:

Now pushed to master in the commit 3573ebfa6d (it seems this is
backward-compatible since it only sets buffer-local variables).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 21 Nov 2022 07:59:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 21 02:59:56 2022
Received: from localhost ([127.0.0.1]:45257 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ox1ie-00063c-GM
	for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 02:59:56 -0500
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42193)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1ox1id-00063M-1R
 for 49731 <at> debbugs.gnu.org; Mon, 21 Nov 2022 02:59:55 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id CDB7DE0008;
 Mon, 21 Nov 2022 07:59:47 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
In-Reply-To: <86fspn1pjl.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 16 Jan 2022 20:52:30 +0200")
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
 <86fspn1pjl.fsf@HIDDEN>
Date: Mon, 21 Nov 2022 09:58:43 +0200
Message-ID: <86ilj83fik.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> This is similar to what I have in mind.  Instead of hardcoding
>> "ChangeLog", the proposed command would ask the user for the regular
>> expression.  Your command hides entries that match the pattern, but I
>> think that for the new command the opposite interpretation is more
>> common (only show those entries that match the pattern, and hide
>> everything else).  Does it make sense to offer both behaviors? (Like
>> flush-lines/keep-lines.)
>
> Now a new feature was implemented in bug#51809 that allows
> easy customization of the new options outline-default-state
> and outline-default-rules, for example:
>
> #+begin_src emacs-lisp
> (add-hook 'xref-after-update-hook
>           (lambda ()
>             (setq-local outline-regexp
>                         (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]")

And now a new feature implemented in bug#53981 allows to replace
the unreliable line above with using outline-search-function:

```
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 89a090ae932..1ef2ea74e26 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -927,7 +911,12 @@ xref--xref-buffer-mode
   (setq imenu-prev-index-position-function
         #'xref--imenu-prev-index-position)
   (setq imenu-extract-index-name-function
-        #'xref--imenu-extract-index-name))
+        #'xref--imenu-extract-index-name)
+  (setq-local outline-search-function
+              (lambda (&optional bound move backward looking-at)
+                (outline-search-text-property
+                 'xref-group nil bound move backward looking-at))
+              outline-level (lambda () 1)))
 
 (defvar xref--transient-buffer-mode-map
   (let ((map (make-sparse-keymap)))
```




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 16 Jan 2022 18:53:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 16 13:53:23 2022
Received: from localhost ([127.0.0.1]:44278 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n9AeY-0003Y4-PU
	for submit <at> debbugs.gnu.org; Sun, 16 Jan 2022 13:53:22 -0500
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:44529)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1n9AeX-0003Xr-7I
 for 49731 <at> debbugs.gnu.org; Sun, 16 Jan 2022 13:53:22 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id D061CE0005;
 Sun, 16 Jan 2022 18:53:13 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
Date: Sun, 16 Jan 2022 20:52:30 +0200
In-Reply-To: <m1a6m9e1mw.fsf@HIDDEN> ("Daniel =?iso-8859-1?Q?Mart=EDn=22?=
 =?iso-8859-1?Q?'s?= message of "Mon, 26 Jul 2021 13:49:11 +0200")
Message-ID: <86fspn1pjl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> #+begin_src emacs-lisp
>> (add-hook 'xref-after-update-hook
>>           (lambda ()
>>             (setq-local outline-regexp
>>               (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]"))
>>             (outline-minor-mode +1)
>>             (save-excursion
>>               (goto-char (point-min))
>>               (while (search-forward "ChangeLog" nil t)
>>                 (outline-cycle)))))
>> #+end_src
>
> This is similar to what I have in mind.  Instead of hardcoding
> "ChangeLog", the proposed command would ask the user for the regular
> expression.  Your command hides entries that match the pattern, but I
> think that for the new command the opposite interpretation is more
> common (only show those entries that match the pattern, and hide
> everything else).  Does it make sense to offer both behaviors? (Like
> flush-lines/keep-lines.)

Now a new feature was implemented in bug#51809 that allows
easy customization of the new options outline-default-state
and outline-default-rules, for example:

#+begin_src emacs-lisp
(add-hook 'xref-after-update-hook
          (lambda ()
            (setq-local outline-regexp
                        (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]")
                        outline-default-state 1
                        outline-default-rules '((match-regexp . "ChangeLog")))
            (outline-minor-mode +1)))
#+end_src




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 6 Aug 2021 00:03:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 05 20:03:14 2021
Received: from localhost ([127.0.0.1]:48651 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mBnKT-0003US-VS
	for submit <at> debbugs.gnu.org; Thu, 05 Aug 2021 20:03:14 -0400
Received: from mail-wm1-f50.google.com ([209.85.128.50]:36787)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1mBnKS-0003UF-OX
 for 49731 <at> debbugs.gnu.org; Thu, 05 Aug 2021 20:03:13 -0400
Received: by mail-wm1-f50.google.com with SMTP id
 o7-20020a05600c5107b0290257f956e02dso7585849wms.1
 for <49731 <at> debbugs.gnu.org>; Thu, 05 Aug 2021 17:03:12 -0700 (PDT)
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=OrLDYupkSXi+efjh6nFLFrW5lGXBG34Ybi56sSt70Iw=;
 b=LVY1jEuMBmes+sS8YOy3ereg182v0YHQoUdiwxphLzkU50QVfkjQJj/Aa8eSirTByL
 BUAkuqmyi/qsozNvp1TjWfPA6Dr36om3zMUQen1UTdjjxxKlhWdGgmJ1UWn4lKIR3pKN
 iq2ZOubZANKMUPyi+E3qwAM7GQxsjLa18Otl4a/+I+o8xej4f8h5SSe1vuYIiktyXae7
 +T0eW06KzrojKOzcyCrux3YXzkev8yYAUpw7lHQgVCw3EgK5m9Z9Tag5TmQBAGPBA8OT
 a2c0P845Rg1iZlvh7c6okGnD6kGGcgNmE/No1UlERBmop0u45UUvrCT6Trt8+eHxS1UM
 avjw==
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=OrLDYupkSXi+efjh6nFLFrW5lGXBG34Ybi56sSt70Iw=;
 b=lv0RKpKRSRkRHQJCQXUI8TPx/bnpl19m3ORwRQquiSyU4wipJbPNueOmluy6Pkal9C
 yl5IvOvo92M6JDHzrMzREYu8o7ncGQ9rWpPGdplJVW8v8mO9n2TEDkmBxhpK6UCy/Thi
 Aq+hz+xRhsbluS8FfP3QKZCewFiPQr5oGVD4qVV1wDKGf1gVhJGaRqf3HRTeI9wDcv7J
 uEz1unBKBH2Ale59Mg6HnOm/B9C9z3yXgngYg337+dxSdFSqOSTc7AjJgDiQsTFahRk+
 PFen3b37finlcw+ZFXAj9GIttZ3Q+c5/J9OekK8lam1z6tYi7qYpCgV6oac7A9XYM9eo
 dwJA==
X-Gm-Message-State: AOAM5316h0/6GgkFhg7hGFavzFbEdIYoTMSz0YdTadglXZO8ioaTMCrK
 pVjyCjsOSM8WZnypaxpt6UwX4REIRvQ=
X-Google-Smtp-Source: ABdhPJz7eIcQUYiUicstYITH3m7/0uc2Hu1/ck0VyS8myXP08LohmU9oPs4gadnPAeGwFKWuxPFQ/Q==
X-Received: by 2002:a7b:c1d8:: with SMTP id a24mr17389482wmj.155.1628208186845; 
 Thu, 05 Aug 2021 17:03:06 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id t16sm8224506wmi.13.2021.08.05.17.03.05
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 05 Aug 2021 17:03:05 -0700 (PDT)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
To: Juri Linkov <juri@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN> <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
 <87fsvyik4u.fsf@HIDDEN>
 <ff7b3d8e-f6ce-0c48-96a5-2814f65f46a1@HIDDEN>
 <87tukdm4bn.fsf@HIDDEN>
 <54489bae-ec24-43e7-a600-7189cad19bb5@HIDDEN>
 <877dh3ftst.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <ec2699d3-07e5-5b2b-2d88-ca8d086319d5@HIDDEN>
Date: Fri, 6 Aug 2021 03:03:04 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <877dh3ftst.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

On 02.08.2021 23:58, Juri Linkov wrote:
>> Try this patch:
> Thanks, this makes it more useful.

Now installed, thanks for the suggestion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 2 Aug 2021 21:39:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 02 17:39:18 2021
Received: from localhost ([127.0.0.1]:39413 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mAfeY-0007KG-3D
	for submit <at> debbugs.gnu.org; Mon, 02 Aug 2021 17:39:18 -0400
Received: from relay8-d.mail.gandi.net ([217.70.183.201]:49721)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1mAfeW-0007K2-KX
 for 49731 <at> debbugs.gnu.org; Mon, 02 Aug 2021 17:39:17 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id E10D41BF207;
 Mon,  2 Aug 2021 21:39:08 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
 <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
 <87fsvyik4u.fsf@HIDDEN>
 <ff7b3d8e-f6ce-0c48-96a5-2814f65f46a1@HIDDEN>
 <87tukdm4bn.fsf@HIDDEN>
 <54489bae-ec24-43e7-a600-7189cad19bb5@HIDDEN>
Date: Mon, 02 Aug 2021 23:58:10 +0300
In-Reply-To: <54489bae-ec24-43e7-a600-7189cad19bb5@HIDDEN> (Dmitry Gutov's
 message of "Mon, 2 Aug 2021 05:09:30 +0300")
Message-ID: <877dh3ftst.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> I suppose xref-find-apropos doesn't offer
>> the identifier at point as its default because 'apropos' doesn't offer
>> the default?  But this is not a big problem.
>
> Maybe because of that, or because one usually searches for a word or
> several (right?), rather than some identifier name.
>
> Providing a default wouldn't break anything, though. Perhaps some people
> will find it easier to extract the key words they wanted from the symbol
> name at point.

Indeed, such as removing the suffix and leaving a common prefix
to search all functions under the same package namespace, etc.

> Try this patch:

Thanks, this makes it more useful.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 2 Aug 2021 02:09:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 01 22:09:42 2021
Received: from localhost ([127.0.0.1]:37263 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mANOf-0006uh-I3
	for submit <at> debbugs.gnu.org; Sun, 01 Aug 2021 22:09:41 -0400
Received: from mail-wr1-f41.google.com ([209.85.221.41]:37655)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1mANOc-0006uT-HW
 for 49731 <at> debbugs.gnu.org; Sun, 01 Aug 2021 22:09:40 -0400
Received: by mail-wr1-f41.google.com with SMTP id d8so19556799wrm.4
 for <49731 <at> debbugs.gnu.org>; Sun, 01 Aug 2021 19:09:38 -0700 (PDT)
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=RhT9uAFdtr2Yd7Gjlrr5SRvdc+60TUjNBe4oypx5/AA=;
 b=e2Q//gvinklt1pzGdPhyB4vKjj/zsFdoWxzOakIyVEFAIKbTjMM7IWhGyN6gBEoNb3
 afU3d38mqswnr7/nLO2L9DntK62ImcUOkpBjMjsoN8wnPAzrGR/gxHW0/eXQJNHlX+Bp
 HW3HFzlQD+N1MJRvrgvQ1dDUyAGOR2O/z5zeI9I2oEkisO6fPPX7BtOxwdEG2NuMohPC
 /BFonxY0YxqbFwxUCuHalL9z8YXio7RvAjgBd63vCuwyCPoQw9+xGVau4W05WXButujQ
 gEPKYAWPnvu0lkypbw1+kWFKE2jOcY8sJIEt6ScG2MCpVtPugseJRyguhILVOHeWznQe
 yVOw==
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=RhT9uAFdtr2Yd7Gjlrr5SRvdc+60TUjNBe4oypx5/AA=;
 b=mUmDt0GQ+GEBiZ7yo43Clxek0zjV5E32y4jW0HEjhjF8X+aURutrI6fTLH4M0O3WfW
 7zCSEWzuYSNJtv/K6bQ0vtGLxRtL3vEJOYbJ6n8HAmBKMYjuvkwtSxZltGofjTvI9Y7a
 rJS6hbz6FgEO1HwQXa0uBBuuQxzPCJRaNP93WN23gp+iIG4ZSFpUgGCnFbOuoa8sDdhw
 dXsEjPxBt5KQ2qXqbAyoXyutpXskYuvyqbuVtgdwrlV19ubdgyHS4DglSXw1FYNBXuOl
 ZIy+mwoPcBT7/Twv5embEa2VirsDGktbWex5Vg5o/kZxtnVwbVW0udnN+6fzLJbJPi/5
 Z2sw==
X-Gm-Message-State: AOAM532f1AxEyf2hcFblXlo7o5AB6bJHv1+LKrzNTifL+yTpH4IDdB3w
 7ukzizNsSIbD6Bt3bVol2Om/cVwrIYs=
X-Google-Smtp-Source: ABdhPJyOcKX7iILsrleeqWAzACzBebH6JwniErHL/r0aLwcjD6Q75B84RWPMnm5ytUA/aE20Ex05Kg==
X-Received: by 2002:adf:d1e4:: with SMTP id g4mr1565357wrd.371.1627870172643; 
 Sun, 01 Aug 2021 19:09:32 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id d7sm3055762wrs.39.2021.08.01.19.09.31
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 01 Aug 2021 19:09:31 -0700 (PDT)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
To: Juri Linkov <juri@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN> <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
 <87fsvyik4u.fsf@HIDDEN>
 <ff7b3d8e-f6ce-0c48-96a5-2814f65f46a1@HIDDEN>
 <87tukdm4bn.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <54489bae-ec24-43e7-a600-7189cad19bb5@HIDDEN>
Date: Mon, 2 Aug 2021 05:09:30 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <87tukdm4bn.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

On 29.07.2021 20:43, Juri Linkov wrote:
>>> 1. while xref-find-references works fine in `emacs -Q`,
>>> I don't know why with my customization typing e.g.
>>> 'M-? isearch-lazy-highlight RET' reports
>>> "No references found for: isearch-lazy-highlight".
>>
>> Try and see which of the "tools" semantic-symref-perform-search ends
>> up using.
> 
> Thanks for the pointers to semantic-symref-perform-search.
> It prepends "-n " to my customized pattern "rg -nH",
> so the arg "-n" is duplicated on the command line:
> 
>    `rg -n -nH`
> 
> and signals the error:
> 
>    error: The argument '--line-number' was provided more than once, but cannot be used multiple times
> 
> This error is caused by the bug in the command line parser used by ripgrep:
> 
>    https://github.com/clap-rs/clap/issues/2171
> 
> that was fixed only 6 months ago, so it will take much time
> before this fix will reach ripgrep, and this bug will be closed:
> 
>    https://github.com/BurntSushi/ripgrep/issues/1701

The above might be worked around with creating a symref-grep specific 
user option for grep-find-template which would default to the "global" 
value of that variable.

> But even without duplicated "-n" semantic-symref-perform-search
> doesn't work with ripgrep because it doesn't find such pattern:
> 
>    \\\\\\(\\^\\\\\\|\\\\W\\\\\\)isearch-lazy-highlight\\\\\\(\\\\W\\\\\\|\\$\\\\\\)
> 
> Maybe semantic-symref-perform-search could be improved to support ripgrep?
> Because without these two problems it works fine with ripgrep.

...but the above tells us (I think) that semantic-symref-perform-search 
is trying to use the basic regexp syntax, and ripgrep doesn't support 
that (only Extended, or PCRE).

For your personal consumption, perhaps the best approach is to create a 
separate "tool", like Grep (by copying symref/grep.el and tweaking some 
of its definitions), and then register it in semantic-symref-tool-alist.

I don't know if ripgrep is that much faster for this particular purpose. 
So maybe it's too much work for little benefit.

>>> 2. xref-find-apropos doesn't offer the identifier at point as its
>>> default, and after using it e.g. from the buffer isearch.el with
>>> 'C-M-. isearch-lazy-highlight RET' all its lines are concatenated
>>> on the same line in `emacs -Q`:
>>
>> Thanks for the report, should be fixed now.
> 
> I confirm it's fixed, thanks.  I suppose xref-find-apropos doesn't offer
> the identifier at point as its default because 'apropos' doesn't offer
> the default?  But this is not a big problem.

Maybe because of that, or because one usually searches for a word or 
several (right?), rather than some identifier name.

Providing a default wouldn't break anything, though. Perhaps some people 
will find it easier to extract the key words they wanted from the symbol 
name at point. Try this patch:

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index b7a926f82e..4b73f3715a 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -1353,7 +1353,9 @@ xref-find-apropos
  The argument has the same meaning as in `apropos'."
    (interactive (list (read-string
                        "Search for pattern (word list or regexp): "
-                      nil 'xref--read-pattern-history)))
+                      nil 'xref--read-pattern-history
+                      (xref-backend-identifier-at-point
+                       (xref-find-backend)))))
    (require 'apropos)
    (let* ((newpat
            (if (and (version< emacs-version "28.0.50")




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 31 Jul 2021 17:07:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 31 13:07:20 2021
Received: from localhost ([127.0.0.1]:34761 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m9sSG-00085A-JC
	for submit <at> debbugs.gnu.org; Sat, 31 Jul 2021 13:07:20 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1m9sSF-00084y-A6
 for 49731 <at> debbugs.gnu.org; Sat, 31 Jul 2021 13:07:19 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53786)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1m9sS9-0003o3-Eb; Sat, 31 Jul 2021 13:07:13 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1251
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1m9sS9-0004h0-0X; Sat, 31 Jul 2021 13:07:13 -0400
Date: Sat, 31 Jul 2021 20:06:58 +0300
Message-Id: <83v94qo1jh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
In-Reply-To: <m1lf5msa8g.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
 <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN> <m1lf5msa8g.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org, dgutov@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 49731 <at> debbugs.gnu.org
> Date: Sat, 31 Jul 2021 18:45:35 +0200
> From:  Daniel Martín via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> Dmitry Gutov <dgutov@HIDDEN> writes:
> 
> >
> > But do we want it to be implemented using outline-mode? Because we
> > want the corresponding visuals? Because otherwise a dedicated
> > implementation shouldn't take much more code either (probably roughly
> > the size of xref-truncation-width feature we added recently).
> >
> 
> Yes, I think implementing the feature using outline-mode is not a good
> idea.

How about using selective-display?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 31 Jul 2021 16:45:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 31 12:45:50 2021
Received: from localhost ([127.0.0.1]:34736 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m9s7S-0003wz-IW
	for submit <at> debbugs.gnu.org; Sat, 31 Jul 2021 12:45:50 -0400
Received: from sonic307-54.consmr.mail.ir2.yahoo.com ([87.248.110.31]:44655)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1m9s7P-0003om-Qq
 for 49731 <at> debbugs.gnu.org; Sat, 31 Jul 2021 12:45:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1627749940; bh=xwlSvfzvThaiIgKt69hI2tQoqknFN0g8pU007MZWMHw=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To;
 b=N237mYZftgAp1hlZnGq+HeR+EEz95REWdFTX2ukT8esUPJDaO1I+cOBEab4MOJmyW35oMz2fsVtC3PMvquk/exGU6N8KBlnpIntT4InaFzv5WHnVwgz4FmDVKKFE5hkqo+ctD2iUalcO1/cUCyHzN49Fz3znv3uPBScFMgEkQga3OcWNWpJT/iYzFxXUGjWMD9XFxaCbLYRblme5MyOCRmEFP3cm9zBhlprw+L9FijSASrtipf8gTwAZGAUg7W9Ojv3HhONm3DBzLv9qKiaSp0Imyf3fSpsjpms5Af+rWjLH2KfTrMH96IW7UmcFPXRCVvL+3LTPzoQOZuqBndGM9A==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1627749940; bh=LihpV4A8ldy0EsKH4CgwPv/J1ylBvdi2Fga5bdtuc96=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=nWcEsz1YknLa0IziuJURzGZploKIHiwgdI/+42wIg2sisS79lGJusOppMNij4qsugMj9GtmGLnDOUHDkz+uHJqtOY/G/GE68CSfTvez+uQK7xNgXSeehCbF65PeQvJng4hQuae7ziicMEcmprlRYbdDfNGsHwL5g3zRSg1hIVkkFuGwUUvROVmh/d/HYDix3LJohDF/CgYVgGVt70oezkgl+r0Pj+8tqyA2J4yF2PT4tFWDGk+qpCBpeB81Cyo7YhBCRrc2i8l71dfYxjq74HOg1kLEVkWZH1mkcKxG2R4Yw+xBvhZpAs9rgWUik4reMOj2L1UthO6wGP4cf8o/VaA==
X-YMail-OSG: 7YKb2xQVM1mEmGYYkLfFEGNPh.Li8FWuGBKI7LQMoj_Viuwc.z15Rgj8Hwp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yqiA4hbULGpymSiLG5J.g5Xo9h7m.6
 p_A2cHhQqlLFe1C3GkCB_9KHYM7mlBOhzTW.NcDy69zjdDVPdcDnG6S_6IMXNWaOWnUvMeqUC.i5
 GEzRhBUPR4ipMJrNI1dFWMdtV3_wxfoD85KFf9J4M4wuERQRSVgLunPoC6Fcg6SeOdEOBoDlRDCe
 33GyqpF9fisiqCONw9DIKLv1dpY9pCDM67eCwApgKCbpFW8uZQSG3DDv9oK9xBzgpH4D1d_tyAGg
 YjzTFgPogr2_ufJ6g8s1vHSZiAWqLdG1Qyt0aDHVW0ZuIpGGxVYsM8VRDrJ6IZO2aW4iNlUwF1nG
 dUKIQJ.67jLnd5Ll_d5rjZ__un8l.48..YQI8MkS0wxrsQraS6TklO2ow7bi3ibQN.Bb9trtwiER
 LwD_WDTU-
X-Sonic-MF: <mardani29@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic307.consmr.mail.ir2.yahoo.com with HTTP; Sat, 31 Jul 2021 16:45:40 +0000
Received: by kubenode528.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP
 Server) with ESMTPA ID 38438754952a5277adcc096528ab5bc6; 
 Sat, 31 Jul 2021 16:45:36 +0000 (UTC)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
 <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
Date: Sat, 31 Jul 2021 18:45:35 +0200
In-Reply-To: <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN> (Dmitry Gutov's
 message of "Wed, 28 Jul 2021 03:08:27 +0300")
Message-ID: <m1lf5msa8g.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.18749
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1071
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Dmitry Gutov <dgutov@HIDDEN> writes:

>
> But do we want it to be implemented using outline-mode? Because we
> want the corresponding visuals? Because otherwise a dedicated
> implementation shouldn't take much more code either (probably roughly
> the size of xref-truncation-width feature we added recently).
>

Yes, I think implementing the feature using outline-mode is not a good
idea.  It'll load a library that is not small, and more importantly, it
is confusing from a UI point of view: It's strange that the xref output,
which is initally non-foldable, becomes foldable when you want to filter
the output (one may think that why the output can't just be foldable by
default).

I'd like to take a spin at option 1). How do you think the filtering
should happen? At the xref backend level, or at the xref frontend level?
I think the filtering can happen in the frontend, provided that the
backend provides the necessary information (file path, and symbol type,
if we offer to filter by symbol type).

Is there any thread where this feature was discussed? Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 29 Jul 2021 17:57:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 29 13:57:46 2021
Received: from localhost ([127.0.0.1]:58219 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m9AHy-0004Zu-3n
	for submit <at> debbugs.gnu.org; Thu, 29 Jul 2021 13:57:46 -0400
Received: from relay12.mail.gandi.net ([217.70.178.232]:45881)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1m9AHw-0004Zc-2U
 for 49731 <at> debbugs.gnu.org; Thu, 29 Jul 2021 13:57:45 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay12.mail.gandi.net (Postfix) with ESMTPSA id BEE75200005;
 Thu, 29 Jul 2021 17:57:35 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
 <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
 <87fsvyik4u.fsf@HIDDEN>
 <ff7b3d8e-f6ce-0c48-96a5-2814f65f46a1@HIDDEN>
Date: Thu, 29 Jul 2021 20:43:00 +0300
In-Reply-To: <ff7b3d8e-f6ce-0c48-96a5-2814f65f46a1@HIDDEN> (Dmitry Gutov's
 message of "Thu, 29 Jul 2021 05:02:47 +0300")
Message-ID: <87tukdm4bn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> 1. while xref-find-references works fine in `emacs -Q`,
>> I don't know why with my customization typing e.g.
>> 'M-? isearch-lazy-highlight RET' reports
>> "No references found for: isearch-lazy-highlight".
>
> Try and see which of the "tools" semantic-symref-perform-search ends
> up using.

Thanks for the pointers to semantic-symref-perform-search.
It prepends "-n " to my customized pattern "rg -nH",
so the arg "-n" is duplicated on the command line:

  `rg -n -nH`

and signals the error:

  error: The argument '--line-number' was provided more than once, but cannot be used multiple times

This error is caused by the bug in the command line parser used by ripgrep:

  https://github.com/clap-rs/clap/issues/2171

that was fixed only 6 months ago, so it will take much time
before this fix will reach ripgrep, and this bug will be closed:

  https://github.com/BurntSushi/ripgrep/issues/1701

But even without duplicated "-n" semantic-symref-perform-search
doesn't work with ripgrep because it doesn't find such pattern:

  \\\\\\(\\^\\\\\\|\\\\W\\\\\\)isearch-lazy-highlight\\\\\\(\\\\W\\\\\\|\\$\\\\\\)

Maybe semantic-symref-perform-search could be improved to support ripgrep?
Because without these two problems it works fine with ripgrep.

>> 2. xref-find-apropos doesn't offer the identifier at point as its
>> default, and after using it e.g. from the buffer isearch.el with
>> 'C-M-. isearch-lazy-highlight RET' all its lines are concatenated
>> on the same line in `emacs -Q`:
>
> Thanks for the report, should be fixed now.

I confirm it's fixed, thanks.  I suppose xref-find-apropos doesn't offer
the identifier at point as its default because 'apropos' doesn't offer
the default?  But this is not a big problem.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 29 Jul 2021 02:02:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 28 22:02:58 2021
Received: from localhost ([127.0.0.1]:56107 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8vNy-000104-As
	for submit <at> debbugs.gnu.org; Wed, 28 Jul 2021 22:02:58 -0400
Received: from mail-wr1-f42.google.com ([209.85.221.42]:40470)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1m8vNw-0000zr-A7
 for 49731 <at> debbugs.gnu.org; Wed, 28 Jul 2021 22:02:56 -0400
Received: by mail-wr1-f42.google.com with SMTP id p5so4765908wro.7
 for <49731 <at> debbugs.gnu.org>; Wed, 28 Jul 2021 19:02:56 -0700 (PDT)
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=x/P3ST1VUDpEv5++YTLkcGBeFBljaA5FW644WrC0Uq4=;
 b=Z7kZLKUowDjTzPZ2Q2DyJNg5cyejyR2rMKQn/tRF2Gl9TS/mgWaGqlQ532M9m6TDBZ
 U4qZ1OihAVBhn4p9KO9/tc/HyT0OAQ3TM1jotPoxvgOAg7uuCckI7mZKCWgMn4kQQ52F
 LwuFssWFRFO4PzcYRg2hqK6/QW8lLYVRuY3DUq2A6Jd+UDgjLndey/Jbkh4NwhlHiHv/
 tnZmgHBl6KafFwlwZFmfgdFYchlZ7+9W+LPsY2tNHrLwarbUXsnA7tF/9wYpvaKo3bgA
 nt+hPYXGaXol0EE8hTQyMV10Nua64cupEukKIFN0lAFU2XRQwJJv/I1bZ2Du1+F8OLoH
 ZdRA==
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=x/P3ST1VUDpEv5++YTLkcGBeFBljaA5FW644WrC0Uq4=;
 b=C6gv2w0MVfvfZSAuT3F0shmVRmYvoFRHR1OMl750IafPMA5Iw8hKZecXTXj++nddag
 5e1yCAY2Oo7yElUrnptqpsxr1oz4lFBR1uNUhl3kKYpKsdKQ4+PUZ4DD6ixR61kRq4Vx
 hbRqEXDtRSf0GbOmQGMeNKEFOccgXlDmwFowWNQw8lqf5nlxO/0V3ehVSdtXlYVKwsii
 281rtBfIA41CsUSQvwsLqQ0AZfJnf+dShW8sD5PNWDY2cf8yKl7KZDgaBj4fOAigzn7L
 AqFiqt4kyT/fCPejzA3MdsR0PJYyknO7OfGdE9GTXDkO9zwQHw6C2KwqqiAvSjJogVc9
 PO2Q==
X-Gm-Message-State: AOAM532Jn4z/PjBFaclHiw9Yq72VW2e8fgsNnuF+g891fhw8xUm+8ys7
 FnnEo1DQMASgRSB7T9LjZAsfCFP8zV0=
X-Google-Smtp-Source: ABdhPJxRgrt6OnLYjbFUzrKcDpMXWRZ1RfgTXu1tL6Na90tRJmOHKaPWDipYIHXLgVMBkPvab5j+Xg==
X-Received: by 2002:adf:ea52:: with SMTP id j18mr2050131wrn.294.1627524170507; 
 Wed, 28 Jul 2021 19:02:50 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id x16sm1510158wru.40.2021.07.28.19.02.49
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 28 Jul 2021 19:02:49 -0700 (PDT)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
To: Juri Linkov <juri@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN> <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
 <87fsvyik4u.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <ff7b3d8e-f6ce-0c48-96a5-2814f65f46a1@HIDDEN>
Date: Thu, 29 Jul 2021 05:02:47 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <87fsvyik4u.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

On 28.07.2021 19:12, Juri Linkov wrote:

> Thanks for mentioning xref-find-references and xref-find-apropos.
> I tried them out, but they are broken:
> 
> 1. while xref-find-references works fine in `emacs -Q`,
> I don't know why with my customization typing e.g.
> 'M-? isearch-lazy-highlight RET' reports
> "No references found for: isearch-lazy-highlight".

Try and see which of the "tools" semantic-symref-perform-search ends up 
using.

If you have an index generated by Global, idutils or CScope, it could be 
missing this symbol and have the search fail because of that.

Otherwise the search falls back to Grep, see 
lisp/cedet/semantic/symref/grep.el. You can edebug it there.

> 2. xref-find-apropos doesn't offer the identifier at point as its
> default, and after using it e.g. from the buffer isearch.el with
> 'C-M-. isearch-lazy-highlight RET' all its lines are concatenated
> on the same line in `emacs -Q`:

Thanks for the report, should be fixed now.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 28 Jul 2021 16:27:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 28 12:27:25 2021
Received: from localhost ([127.0.0.1]:55733 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8mOy-0003nJ-Rj
	for submit <at> debbugs.gnu.org; Wed, 28 Jul 2021 12:27:25 -0400
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53637)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1m8mOo-0003ml-Ih
 for 49731 <at> debbugs.gnu.org; Wed, 28 Jul 2021 12:27:22 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0EA1AE0002;
 Wed, 28 Jul 2021 16:27:07 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
 <m15ywv8z2n.fsf@HIDDEN>
 <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
Date: Wed, 28 Jul 2021 19:12:49 +0300
In-Reply-To: <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN> (Dmitry Gutov's
 message of "Wed, 28 Jul 2021 03:08:27 +0300")
Message-ID: <87fsvyik4u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

>> I see it less useful for example when you place the point in an
>> identifier and press M-?.  You'll want to see all the references first,
>> and then filter afterwards if they are too many.  But I think it's a
>> matter of personal preferences and different workflows.
>
> Agree on both counts. Except for xref-find-apropos: it usually works more
> similarly to xref-find-references.

Thanks for mentioning xref-find-references and xref-find-apropos.
I tried them out, but they are broken:

1. while xref-find-references works fine in `emacs -Q`,
I don't know why with my customization typing e.g.
'M-? isearch-lazy-highlight RET' reports
"No references found for: isearch-lazy-highlight".

2. xref-find-apropos doesn't offer the identifier at point as its
default, and after using it e.g. from the buffer isearch.el with
'C-M-. isearch-lazy-highlight RET' all its lines are concatenated
on the same line in `emacs -Q`:


--=-=-=
Content-Type: image/png
Content-Disposition: inline; filename=xref-find-apropos.png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAp8AAAB4CAIAAAA7VA5MAAAACXBIWXMAABXXAAAV1wEELLsZAAAg
AElEQVR42uydeUBUVf//3/fODDgswyKrEIKCAYoi7opbuH8VFyLRx33LFlNMsyz72ZOlbfpkT0/l
Uj6mhiTuPYZLZlqY5kaiKCAIJpsIM8M2c+fe8/uDAQeYBWYGRTuvv+DOzOd8zud8Pp9zz7nLh1Eo
FNCHo6MjKBQKhUKhPFyUSqXe4+np6Y6OjidPnoyLi+N5XqPRaDSamj90/z179uy8efNYakcKhUKh
UJ4w6OxOoVAoFAqd3U0i5G2bEBqXUEj0fVj8vjLxdY3QBDHq86rjQxS7uip2z1NXkYdnkZTl8J4P
9SMfGQEbB2P4V2hq19VY3Bn+T0EqxZaiVqRnU+1pSI6pflkq3xiqC6t69XjjbCWNCxoXNC5MyVkf
idFbmy2n7DRGB8HJGR7RyCemj4PG7yOc3ZXH33s3N/b1GE/GEilEyP5UpY5ziEuVTd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MeLGbdvZ127cDJpy095
bWgOrZ1U0lIuVHd9fsuepKSkpKSkhHdGOd86e672SUDGqV07u7yraWVCww0d/ccNImg4dS2chq8R
T3iOU3MaAUTgOTXH8Y/8mjPjEN439N7lK8Wk3tx+zH7iwrFPiSWBE+cOLvv+q+SCBt1mfUY+11/x
w3e/3K/9HV+vv03oV/W1S+nOvfr4i6hLUigU82Z31vf/z6cwx+DFopLY0PCMrmN8IeUJxohJ5f+/
P716/vLD98G6tuf/x9NzJm17yqQalOiioB8RbyP45cLCSRsf4t4uzWWQVF8SrM96a8fSufOXbT5y
95+SquToeT9Q8OvaibPftWzMhaDNHTYtWwuBu8dPwao3Nv3QZJPns9PDwiKyF9xAHGuASxxXG+Jo
d0QIDIRmzLv2h4GB4c/5qYkhIRHtB778ONIVERKSPP3CgJ8mxChg5WP9/sD++38QdfsujoAMf8ho
PKdORLzp0+Wz9r1GyyBchoE+UhdXrbv2k4GBgeHv0/XlYXD/RvYe+00wWZ/ae0HK02N0O9woGAWj
AG8RtX///tFz5kfBKCCrAflmb1v9ObvWElsBeo3w/L6ztHzKn7TOeA320fAfBaNgFIzW7qNgFIyC
UTAKRsHIAaPjzqNgFIyCUTAKRsFwAywMDAy3bt0aDYhRMApGwSgYBaNg2AAALu11a8rfPK8AAAAA
SUVORK5CYII=
--=-=-=
Content-Type: text/plain


> Speaking of 'f' and 'q', do we have a precedent for this kind of
> interaction somewhere else in Emacs? I'm not against those per se, but I'd
> really rather we try to follow one of the existing workflows, so that the
> users wouldn't have to remember yet one more thing. Hence the idea from
> package.el.

I see no reason to be different from package-menu-filter where
'/ /' resets all filters.  Then maybe add '/ i' to include, and
'/ e' to exclude.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 28 Jul 2021 00:08:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 27 20:08:41 2021
Received: from localhost ([127.0.0.1]:54259 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8X7p-0002Y6-C6
	for submit <at> debbugs.gnu.org; Tue, 27 Jul 2021 20:08:41 -0400
Received: from mail-ed1-f51.google.com ([209.85.208.51]:35550)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1m8X7j-0002Xm-8L
 for 49731 <at> debbugs.gnu.org; Tue, 27 Jul 2021 20:08:39 -0400
Received: by mail-ed1-f51.google.com with SMTP id u12so803492eds.2
 for <49731 <at> debbugs.gnu.org>; Tue, 27 Jul 2021 17:08:35 -0700 (PDT)
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=0e6yjSUHVGysWSeXWq27HvKLsFuBob+DXfif/P09K3c=;
 b=ZhdsiFjdgbVdrZOnwlnipdRBl5a/tRGBRXRdErravyVX/o31V38PcyLESam9aYK/gx
 yI5/HAnTvGGoVsIf4XD09U4fyJCrXBhAEwrWTJEbl+45oJ4jSFywbFzQSUt11xwXV5Ei
 UQ1ciWJyfBgrSCVszIg1EdbIdSRodLib4hSgUUD7DvzmA0WHn3VbMQHcjsY81uwaU1zH
 cMOeKJOo3mpBNkw+5WulAh5IPHSmpwwaHEjG5MoDJxtjHEqaG5rTmYWxAJWi2ar1lyfp
 6Uja06k/btrXg8HcBvzVrVN1t/IzUsYTDBobWghnLHeP7gaTYmvCK76IjCQ2zENIWByh
 3JNw==
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=0e6yjSUHVGysWSeXWq27HvKLsFuBob+DXfif/P09K3c=;
 b=lk+xvteq1SW99ayE/GclcmGCdzdh5z5RXk4JXWtEj8c9MPKDDWXlItytJaVvWFzfdR
 r9ZW1LRNe9gZzCsq6YJoaLP7Y1nSxwrU6zpVD4QHq4DzJgAiW6TCmTsf1dWekQolSauN
 jlhWDD87gFRo17+domNO5ignme5E575p4PvCto/mJm9JBElYMempI02XZ3bF6KjXlwAm
 HgUJARsN3HtwRgXyfXaiGhiT5zoNUa4wXxZjMJtjvxgLgQDBRTI74Y11LMk7uZiZHL3P
 zXJSrSchPlyz2Hiuaus1xVUx0kptRrhAESskD8r4SuWeDw3qy3oEAgRuoUa7108Xhthe
 ejOw==
X-Gm-Message-State: AOAM533tvT/eSnshwaO2oNmj7q+8VnUAfhTE6EFuKYl/jYzzwK7tXh1w
 LqD7NMMG+14Kls7ikoFFbBrcNtjDTgk=
X-Google-Smtp-Source: ABdhPJyY1FxC2SOjfspxcWTG3ORg2ay5zwTiO+s/a+KF1qFyLV+OrFFhX5Algu8xpLaVJt876V1btQ==
X-Received: by 2002:a05:6402:1546:: with SMTP id
 p6mr30755361edx.206.1627430909376; 
 Tue, 27 Jul 2021 17:08:29 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id s3sm1376929ejm.49.2021.07.27.17.08.27
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 27 Jul 2021 17:08:28 -0700 (PDT)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
To: =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN> <m15ywv8z2n.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <7593e0f3-9399-ccf3-21de-b2ac79ae3730@HIDDEN>
Date: Wed, 28 Jul 2021 03:08:27 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <m15ywv8z2n.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

On 27.07.2021 20:08, Daniel Martín wrote:

>> 1. Add the possibility to add filtering by file names, types, etc,
>> before the search is done. This should fit 'project-find-regexp'
>> well. I can point you to a previous discussion with some ideas. The
>> main upside is you can speed up the search. And store such settings as
>> a history.
> 
> I think that kind of search scoping in advance can be specially useful
> when you are doing a grep-like search in the codebase, using either
> grep, rgrep, project-find-regexp, or xref-find-apropos.
> 
> I see it less useful for example when you place the point in an
> identifier and press M-?.  You'll want to see all the references first,
> and then filter afterwards if they are too many.  But I think it's a
> matter of personal preferences and different workflows.

Agree on both counts. Except for xref-find-apropos: it usually works 
more similarly to xref-find-references.

Ultimately we should get both options.

>> 2. Filter in the resulting Xref buffer. The best part is it can work
>> with the output from any command that uses Xref. The "filtering" is
>> temporary. I'm assuming this is the direction you want to work in.
>>
> 
> Yes, that's the direction that interests me the most, if it's actually a
> worthy feature for Emacs users.

I'm fairly certain there is a demand for this kind of functionality.

>> I've never exactly considered the option 2., but I'd be happy to talk
>> the details. WRT UI, maybe something along the lines of
>> package-menu-filter-* commands, bound inside a '/' prefix. One command
>> could add "inclusion filter", another - "exclusion filter", and the
>> third one - reset all filters. '/ /' be bound to the last one.
>>
> 
> I didn't have in mind implementing cumulative filters.  I don't know if
> people would need such advanced filtering of results.  FTR, I've
> researched how other tools and IDEs implement this feature, which is
> less common than what I initially thought:

I'm fine without that feature, or at least with it not being present in 
the first version (someone else could add it later, maybe as a separate 
command).

But if the filter is being replaced rather than added to, it's better we 
make that obvious. For instance, by putting the previous filter as 
initial input when the user invoked the filtering command a second time.

> <...>
> 
> - Chromium Code Search: It offers a box to filter by file path.  It also
>    offers an option to exclude tests and generated files.

The ability to exclude or include certain categories of files (like 
generated ones and ones listed in .gitignore) seems to belong to the 
option 1 -- better executed when we have more information about the 
current project, which when the Xref buffer is rendered is mostly lost.

>> Another thing to keep an eye out for - is how the filtering will
>> affect n/p navigation and the xref-query-replace-in-results command. I
>> think they should respect the filtering as well.
> 
> Here's a first quick and dirty prototype based on Juri's code snippet:

It works, which is a good thing. Though it overrides the existing 'q' 
bindings (now you can't quit the Xref buffer).

But do we want it to be implemented using outline-mode? Because we want 
the corresponding visuals? Because otherwise a dedicated implementation 
shouldn't take much more code either (probably roughly the size of 
xref-truncation-width feature we added recently).

Speaking of 'f' and 'q', do we have a precedent for this kind of 
interaction somewhere else in Emacs? I'm not against those per se, but 
I'd really rather we try to follow one of the existing workflows, so 
that the users wouldn't have to remember yet one more thing. Hence the 
idea from package.el.

Or yet another approach: tack the ability to cancel the filter on top of 
a search history feature (accessed with C-c C-b/C-c C-f, like in Help 
buffers). But we'd actually need to implement that feature first.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 27 Jul 2021 23:11:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 27 19:11:30 2021
Received: from localhost ([127.0.0.1]:54219 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8WET-00013a-VC
	for submit <at> debbugs.gnu.org; Tue, 27 Jul 2021 19:11:30 -0400
Received: from mail-ej1-f43.google.com ([209.85.218.43]:44657)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1m8WEQ-00013L-EN
 for 49731 <at> debbugs.gnu.org; Tue, 27 Jul 2021 19:11:28 -0400
Received: by mail-ej1-f43.google.com with SMTP id hp25so1357789ejc.11
 for <49731 <at> debbugs.gnu.org>; Tue, 27 Jul 2021 16:11:26 -0700 (PDT)
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=VFToqUSyHlBMXLpoxHu4Yrv7FJTBLH25zcWp7uuq+Q8=;
 b=TQjhnV5dZMwi4BxZZ10PO6JEN8hCeW8CjF0S5VmYs4jclqHDG4P4XDkhdWuociWl9C
 NqAjPSHKXFppuvofng5opMRNUrHGON9S6p/jucPunGD7VSMwl4F2sawB6aT6JwNGsbr7
 3wdOx099GcE9p8YhTRTxu7foPc98hopURQn11VCZeJMTszVicNw37h4Y9asf2GdYQFLf
 aG3DmliGnYQK8NLaOrq1mRFr/L5BQ0j9O37Mr/go8paJksVi6TC+C81LsFF2KRHP/NRF
 pF95SjO5sjgmHK4o2+GQPqHE5+AygPzUiDLwT25lBto4skyGQuerr7tpsQ1OEWvUd9T1
 QEVQ==
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=VFToqUSyHlBMXLpoxHu4Yrv7FJTBLH25zcWp7uuq+Q8=;
 b=B/S1o95+ItJftYeXGIr8GUi9TJuSkjp7AiTnIM10SsLR3HchxsjjChzCXMHGi7SYJc
 ylT+UDCAdKHYvH1xCqsVDSjaEzSBX+VjXDL+Z9LyAqQ2KhYOh0ptt1oLwjDFxO/Wd4Df
 TZR6PtIrKftn4B+pVFpaS5e/NFOnbenlNOfFX80jElgE4D5z10EGQhPC7NYGYbOXreVI
 VGlFc01GQAY6JYW1DLlTO3uHlVAGU18/fnakl403TeKcvwZmO83ueRqwY4nfu/4gGlZ+
 oniLyTIZ8TeIMfL1HUOBcvxfdRaMpU6G4/vfCT1Ue+9fNCk3sgKzgUgSnHOevg7Bo19O
 3R+Q==
X-Gm-Message-State: AOAM530/4PwrUX64GUmUyAKftCQ3VosMsaN1Ky5CVTh4EjeJMJ3EUDex
 5z9jX3xqmJ6Nx0JC3ItHXSI=
X-Google-Smtp-Source: ABdhPJzQRq9F/YLqdV4++IkRHOR993fyDOZqbd8iKme8/BsvC7O76TOIm//ZW/BU0uqn9asPr06dTQ==
X-Received: by 2002:a17:906:2d51:: with SMTP id
 e17mr23528988eji.500.1627427480264; 
 Tue, 27 Jul 2021 16:11:20 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id
 kk18sm1336946ejc.114.2021.07.27.16.11.18
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 27 Jul 2021 16:11:19 -0700 (PDT)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
To: Juri Linkov <juri@HIDDEN>, 49731 <at> debbugs.gnu.org
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN> <m15ywv8z2n.fsf@HIDDEN>
 <8735rzo5fk.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <a3ff74e0-53b6-697e-f31c-583f7d754e4a@HIDDEN>
Date: Wed, 28 Jul 2021 02:11:17 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <8735rzo5fk.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 49731
Cc: mardani29@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

On 27.07.2021 23:51, Juri Linkov wrote:

>> I think that kind of search scoping in advance can be specially useful
>> when you are doing a grep-like search in the codebase, using either
>> grep, rgrep, project-find-regexp, or xref-find-apropos.
> 
> Then in your comparison with grep, this is similar to grep options
> 'grep-find-ignored-directories' and 'grep-find-ignored-files'.

Except in reverse (inclusion, not exclusion) and tweakable at runtime 
rather that through Customize.

>> I didn't have in mind implementing cumulative filters.  I don't know if
>> people would need such advanced filtering of results.
> 
> Earlier you compared this to flush-lines/keep-lines, and these commands
> are cumulative.  But maybe xref filtering doesn't need to be cumulative
> when it will support specifying a regexp with alternatives '\|'.

I think ultimately it depends on the mental model the UI produces. In 
the examples we've seen in other programs, you usually modify an input 
field containing the previous search terms, so that makes it obvious the 
existing filter would be replaced, rather than added to.

If the new prompt did that as well, it could work similarly.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 27 Jul 2021 20:53:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 27 16:53:40 2021
Received: from localhost ([127.0.0.1]:54068 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8U56-0003wf-He
	for submit <at> debbugs.gnu.org; Tue, 27 Jul 2021 16:53:40 -0400
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51287)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1m8U52-0003wB-Hd
 for 49731 <at> debbugs.gnu.org; Tue, 27 Jul 2021 16:53:37 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 1D2F7E0004;
 Tue, 27 Jul 2021 20:53:28 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= via "Bug reports for GNU Emacs, the
 Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
 <m15ywv8z2n.fsf@HIDDEN>
Date: Tue, 27 Jul 2021 23:51:35 +0300
In-Reply-To: <m15ywv8z2n.fsf@HIDDEN> ("Daniel =?iso-8859-1?Q?Mart=EDn?=
 via \"Bug reports for
 GNU Emacs, the Swiss army knife of text editors\""'s message of "Tue,
 27 Jul 2021 19:08:00 +0200")
Message-ID: <8735rzo5fk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>,
 49731 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> 1. Add the possibility to add filtering by file names, types, etc,
>> before the search is done. This should fit 'project-find-regexp'
>> well. I can point you to a previous discussion with some ideas. The
>> main upside is you can speed up the search. And store such settings as
>> a history.
>
> I think that kind of search scoping in advance can be specially useful
> when you are doing a grep-like search in the codebase, using either
> grep, rgrep, project-find-regexp, or xref-find-apropos.

Then in your comparison with grep, this is similar to grep options
'grep-find-ignored-directories' and 'grep-find-ignored-files'.

>> I've never exactly considered the option 2., but I'd be happy to talk
>> the details. WRT UI, maybe something along the lines of 
>> package-menu-filter-* commands, bound inside a '/' prefix. One command
>> could add "inclusion filter", another - "exclusion filter", and the 
>> third one - reset all filters. '/ /' be bound to the last one.
>
> I didn't have in mind implementing cumulative filters.  I don't know if
> people would need such advanced filtering of results.

Earlier you compared this to flush-lines/keep-lines, and these commands
are cumulative.  But maybe xref filtering doesn't need to be cumulative
when it will support specifying a regexp with alternatives '\|'.

> I've bound the new command to "f".  For simplicity, each time you press
> "f" you'll filter the entire list (filters are not cumulative).  As you
> said, pressing "p" and "n" navigate results that are folded, which is
> confusing.  Perhaps a new minor mode in xref could do the outline
> folding and also make sure that "p" and "n" skip results that are
> folded.

Thanks, I'll test your command for a while.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Jul 2021 20:53:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 27 16:53:37 2021
Received: from localhost ([127.0.0.1]:54066 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8U53-0003wT-6z
	for submit <at> debbugs.gnu.org; Tue, 27 Jul 2021 16:53:37 -0400
Received: from lists.gnu.org ([209.51.188.17]:41554)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1m8U51-0003wH-Nr
 for submit <at> debbugs.gnu.org; Tue, 27 Jul 2021 16:53:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51438)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1m8U51-0006O8-FD
 for bug-gnu-emacs@HIDDEN; Tue, 27 Jul 2021 16:53:35 -0400
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51087)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1m8U4z-0005QZ-Cb
 for bug-gnu-emacs@HIDDEN; Tue, 27 Jul 2021 16:53:35 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 1D2F7E0004;
 Tue, 27 Jul 2021 20:53:28 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= via "Bug reports for GNU Emacs, the
 Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
 <m15ywv8z2n.fsf@HIDDEN>
Date: Tue, 27 Jul 2021 23:51:35 +0300
In-Reply-To: <m15ywv8z2n.fsf@HIDDEN> ("Daniel =?iso-8859-1?Q?Mart=EDn?=
 via \"Bug reports for
 GNU Emacs, the Swiss army knife of text editors\""'s message of "Tue,
 27 Jul 2021 19:08:00 +0200")
Message-ID: <8735rzo5fk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=217.70.183.196; envelope-from=juri@HIDDEN;
 helo=relay4-d.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: submit
Cc: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>,
 49731 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

>> 1. Add the possibility to add filtering by file names, types, etc,
>> before the search is done. This should fit 'project-find-regexp'
>> well. I can point you to a previous discussion with some ideas. The
>> main upside is you can speed up the search. And store such settings as
>> a history.
>
> I think that kind of search scoping in advance can be specially useful
> when you are doing a grep-like search in the codebase, using either
> grep, rgrep, project-find-regexp, or xref-find-apropos.

Then in your comparison with grep, this is similar to grep options
'grep-find-ignored-directories' and 'grep-find-ignored-files'.

>> I've never exactly considered the option 2., but I'd be happy to talk
>> the details. WRT UI, maybe something along the lines of 
>> package-menu-filter-* commands, bound inside a '/' prefix. One command
>> could add "inclusion filter", another - "exclusion filter", and the 
>> third one - reset all filters. '/ /' be bound to the last one.
>
> I didn't have in mind implementing cumulative filters.  I don't know if
> people would need such advanced filtering of results.

Earlier you compared this to flush-lines/keep-lines, and these commands
are cumulative.  But maybe xref filtering doesn't need to be cumulative
when it will support specifying a regexp with alternatives '\|'.

> I've bound the new command to "f".  For simplicity, each time you press
> "f" you'll filter the entire list (filters are not cumulative).  As you
> said, pressing "p" and "n" navigate results that are folded, which is
> confusing.  Perhaps a new minor mode in xref could do the outline
> folding and also make sure that "p" and "n" skip results that are
> folded.

Thanks, I'll test your command for a while.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 27 Jul 2021 17:08:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 27 13:08:14 2021
Received: from localhost ([127.0.0.1]:53772 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8QYv-0006r1-OJ
	for submit <at> debbugs.gnu.org; Tue, 27 Jul 2021 13:08:14 -0400
Received: from sonic302-21.consmr.mail.ir2.yahoo.com ([87.248.110.84]:42466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1m8QYt-0006qg-5d
 for 49731 <at> debbugs.gnu.org; Tue, 27 Jul 2021 13:08:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1627405683; bh=Pm3yz+ZVYxAKgsq29qJNOPxohDr2Nggme5lkqZn6nj8=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To;
 b=PEE7y11YOOZYdGnCeKGY7JChv84Byrxzl5PDPmX5ANZFgmX48DGZDlG81mR1E1fyXri87u/aootHyry+5/WufnMNrrBvfoDDmG+bJyBh/SXuim5NWOKSjkzyT2kzStwMTdJQdrkJPH3nYxjTWNi6CnTB6dtdu4WCsV+C77RmJFASdmbrewo61lPBlVvERSm8V8Jpkjwb5kmR7ZoxYEpSGxQchpVVbDcZf608pWdsFH9HuucbbGpvK/dF7N4QUcVybD/uuwE1fXJBULq6jU3YvqtGq+2n+nfQ3NxMZxdceuavjRaznGqN1vuPY0Gll8yhLIa6fLrLXpuQbdiwHLz4cw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1627405683; bh=RaHf7PKDrREQiJyCz7E7In/r5XejYp5uyopx4EUIig6=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=ReSEqekfOdQH1DPhAHVpdXcxnsqpv/o/XeGN8rGLIntAGGpNcVZpBbhuEi/HxdlHiKc7DcH7nXIDMvVoJSbSKCR0HG6gzXV/fin/Plvr5bZEtti0hmTK7+8/gADzFm/EvXLvCayKtgBjrPJXnYIOuIWrjzFKCKjCMNQvYyZo11vjLWen5VR09V8hWWUlkqACToKIeJkNTfKpj9XVDgtwG2A+cRZ69X+lJ5catfIN3eBnQnoVHZn+UhmR51LkuswnanhIq1eRRcVsOExul62GKLdKB3cADj5kfpzx7CZzekWdjoPFnMOloB2G7G4W/u1hhqTWcaP6fejplUHRVCKROQ==
X-YMail-OSG: YdI05fYVM1nh5ZW1gF_RcDu6LIkkhFmlY1O0zaXBSJhfX64hMiNFj1sdMZ2VNjU
 ReJs1yCoM2gBU1D57aD7QAqmVwxuIXVUYml2yyu28G8hINccHKiWqqLY.5N2CpEvxDaLAekUTWs6
 Mx60Lndi8cX2MEYtywumXAP0DmCVucBEb.MbhxX_ZMiIgX.wBRSKHdfps0otkgza.uuJ5a0Djsmm
 Bu3yixaymaLzv3RR9TxyMeNIYq5xkUWnTzw2ZfOFo2yNj62J0Nt31X4ntnkLvD.B_HsqrsbhR224
 CQtwIzvmGvg2WAr7AvkC_XjwZAQ2o5KuUEbn4DhwTLPDMretn.U8gN8qXStURUPLm8ZQHfExRXi8
 1LpaTt0BGuOCHf3HqfuneF3bTe8Etnz4HXnGwzRkSgztKyLANdGgM43JXGa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gOq0T3Yhf.EWe2ZvKTvFw2sduxAF2Vb35RrJ66ELr
 .P9mli33oF0dCpg--
X-Sonic-MF: <mardani29@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic302.consmr.mail.ir2.yahoo.com with HTTP; Tue, 27 Jul 2021 17:08:03 +0000
Received: by kubenode553.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP
 Server) with ESMTPA ID 564fa334980f7a68168fa17decdfbe29; 
 Tue, 27 Jul 2021 17:08:01 +0000 (UTC)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
Date: Tue, 27 Jul 2021 19:08:00 +0200
In-Reply-To: <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN> (Dmitry Gutov's
 message of "Tue, 27 Jul 2021 02:28:58 +0300")
Message-ID: <m15ywv8z2n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.18749
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 4811
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Dmitry Gutov <dgutov@HIDDEN> writes:

>
> We've discussed this sort of functionality before. Here are some
> approaches (not mutually exclusive):
>
> 1. Add the possibility to add filtering by file names, types, etc,
> before the search is done. This should fit 'project-find-regexp'
> well. I can point you to a previous discussion with some ideas. The
> main upside is you can speed up the search. And store such settings as
> a history.

I think that kind of search scoping in advance can be specially useful
when you are doing a grep-like search in the codebase, using either
grep, rgrep, project-find-regexp, or xref-find-apropos.

I see it less useful for example when you place the point in an
identifier and press M-?.  You'll want to see all the references first,
and then filter afterwards if they are too many.  But I think it's a
matter of personal preferences and different workflows.

>
> 2. Filter in the resulting Xref buffer. The best part is it can work
> with the output from any command that uses Xref. The "filtering" is 
> temporary. I'm assuming this is the direction you want to work in.
>

Yes, that's the direction that interests me the most, if it's actually a
worthy feature for Emacs users.

>
> I've never exactly considered the option 2., but I'd be happy to talk
> the details. WRT UI, maybe something along the lines of 
> package-menu-filter-* commands, bound inside a '/' prefix. One command
> could add "inclusion filter", another - "exclusion filter", and the 
> third one - reset all filters. '/ /' be bound to the last one.
>

I didn't have in mind implementing cumulative filters.  I don't know if
people would need such advanced filtering of results.  FTR, I've
researched how other tools and IDEs implement this feature, which is
less common than what I initially thought:

- Xcode: In the references panel there is a filter box on the bottom so
  that you type and filter the results to keep those that match the
  pattern.

- IntelliJ IDEA: I haven't seen a similar functionality.  There is a
  button to remove references from automatically generated code, but
  that's all.

- Sourcegraph: It doesn't seem to offer a similar functionality.

- Chromium Code Search: It offers a box to filter by file path.  It also
  offers an option to exclude tests and generated files.

>
> Another thing to keep an eye out for - is how the filtering will
> affect n/p navigation and the xref-query-replace-in-results command. I
> think they should respect the filtering as well.

Here's a first quick and dirty prototype based on Juri's code snippet:

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index e2cd904a6c..27ff08f7ce 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -665,6 +665,36 @@ xref-goto-xref
       ;; Emacs < 27
       (setq next-error-last-buffer buffer))))
 
+(declare-function outline-show-entry "outline" ())
+(declare-function outline-hide-body "outline" ())
+
+(defun xref-filter-results-by-file (pattern)
+  "Filter xref results to only include those in files that match PATTERN."
+  (interactive (list (read-string
+                      "Filter results in files that match pattern (regexp): "
+                      nil nil)))
+  (require 'outline)
+  (setq-local outline-regexp
+              (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]"))
+  (outline-minor-mode +1)
+  (outline-hide-body)
+  (save-excursion
+    (goto-char (point-min))
+    (let ((count 0))
+      (while (progn
+             (when (re-search-forward pattern (line-end-position) t)
+               (outline-show-entry)
+               (setq count (1+ count)))
+             (xref--search-property 'xref-group)))
+      (when (zerop count)
+        (message "No match")
+        (xref-exit-results-filter)))))
+
+(defun xref-exit-results-filter ()
+  "Remove any xref filter and show the full list of results."
+  (interactive)
+  (outline-minor-mode -1))
+
 (defun xref-quit-and-goto-xref ()
   "Quit *xref* buffer, then jump to xref on current line."
   (interactive)
@@ -824,6 +854,8 @@ xref--xref-buffer-mode-map
     (define-key map (kbd ",") #'xref-prev-line)
     (define-key map (kbd "g") #'xref-revert-buffer)
     (define-key map (kbd "M-,") #'xref-quit-and-pop-marker-stack)
+    (define-key map (kbd "f") #'xref-filter-results-by-file)
+    (define-key map (kbd "q") #'xref-exit-results-filter)
     map))
 
 (define-derived-mode xref--xref-buffer-mode special-mode "XREF"

I've bound the new command to "f".  For simplicity, each time you press
"f" you'll filter the entire list (filters are not cumulative).  As you
said, pressing "p" and "n" navigate results that are folded, which is
confusing.  Perhaps a new minor mode in xref could do the outline
folding and also make sure that "p" and "n" skip results that are
folded.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 26 Jul 2021 23:29:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 26 19:29:10 2021
Received: from localhost ([127.0.0.1]:51743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8A21-0003b2-Jd
	for submit <at> debbugs.gnu.org; Mon, 26 Jul 2021 19:29:09 -0400
Received: from mail-ej1-f53.google.com ([209.85.218.53]:43853)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1m8A1z-0003an-4j
 for 49731 <at> debbugs.gnu.org; Mon, 26 Jul 2021 19:29:08 -0400
Received: by mail-ej1-f53.google.com with SMTP id ga41so18951614ejc.10
 for <49731 <at> debbugs.gnu.org>; Mon, 26 Jul 2021 16:29:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=XYQWd3ERxuI9e5RqDqIzjTu3uS9wtvmFKu4f60IiwGE=;
 b=L7zCAg3ODKejZ0tYnwYh668KF4DYRz/EuB9da6na6QB8ailOtXCKtiI8QsF3w1gkfX
 BLXQJox/A4GaLvdThqhZO97Ig6Re2BmPE7aRfgaQ348W2BrtoflXCSMPDsnh4ezZWxEA
 n4lfDbGfWjZPPegoqu4ERt0GdW+rip5e8gftIO4k5MXOTkcOdswfBDxL4Qs+hq7gGHRm
 4Avw7By06V8eELngh+w+iyXmGx10VJC48kddBRgvrOxomD4brak15SVVBouwTa+OIuae
 0wDw1biMI1sUyou3dEGplzfBlkjPDlKmwooqXW4e/8skAjKB16NkJQ4vSQsRXh0h5tlK
 UReg==
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:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=XYQWd3ERxuI9e5RqDqIzjTu3uS9wtvmFKu4f60IiwGE=;
 b=aGGSVMd2e1DFpd1KSPVuNEEHJARWpGt7oV6K0Y3cRm5rDXtRQKDAdghHBPQRkEfVfj
 BzR26jWeUy6g5gKQaM9lLXLkOvr139URo+W3TbUbGtXyDC5L7AsWQwnhd+u6Es5Vmd7E
 nG0Zm6J3GSQI9NX2/s4TnojdZdQUrfnSsQe/1C9GpxIfVY33eUhRG2PS3JOPBKSgGyOD
 EY75gzAqzn6uQ0eQ32Gq15/9UQwfaHRO0UDV0Jt/+xXMKwb7FYrFJmgBqqxall66oZZU
 o6ttipNDFLAhiEKA+9mDEupAQGiCc25AENzg9iw/n/RVaje2J8L6u+gw5Azdm5hgpNmT
 61pA==
X-Gm-Message-State: AOAM531I+82yCyO8dNqhQhmx4rKC7m6anif99/+cfFxo6oPjcr3dYbGM
 kMwODXBEoNrgwIV+wgQgg+UcqAT5pPw=
X-Google-Smtp-Source: ABdhPJwsh48JTKRZrsK5V8QMxoRcu4/MrK/T7NUcftgQkCIXjJWHRb2NM5ObwZz7G6xbcfA5vjiSBw==
X-Received: by 2002:a17:906:c831:: with SMTP id
 dd17mr13860243ejb.143.1627342141263; 
 Mon, 26 Jul 2021 16:29:01 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id h8sm325512ejj.22.2021.07.26.16.28.59
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 26 Jul 2021 16:29:00 -0700 (PDT)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
To: =?UTF-8?Q?Daniel_Mart=c3=adn?= <mardani29@HIDDEN>, 49731 <at> debbugs.gnu.org
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <030dbe6c-130d-e578-f50d-54e90bfa7cfa@HIDDEN>
Date: Tue, 27 Jul 2021 02:28:58 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <m1pmv6iz4n.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 49731
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

Hi Daniel,

On 25.07.2021 11:19, Daniel Martín via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> 
> 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.

This is going to be quite welcome.

> Right now the only approach I know for this use case is to use Isearch,
> but Isearch searches the entire xref buffer, including xref matches.
> 
> What do you think about this new feature? Do you have any suggestions
> about how it should work?

We've discussed this sort of functionality before. Here are some 
approaches (not mutually exclusive):

1. Add the possibility to add filtering by file names, types, etc, 
before the search is done. This should fit 'project-find-regexp' well. I 
can point you to a previous discussion with some ideas. The main upside 
is you can speed up the search. And store such settings as a history.

2. Filter in the resulting Xref buffer. The best part is it can work 
with the output from any command that uses Xref. The "filtering" is 
temporary. I'm assuming this is the direction you want to work in.

3. Do some sort of "editable Xref buffer" feature where you can kill the 
lines you don't want to see/use, with an undo history. This would 
probably fit better together with another requested feature (wdired-like 
editing).

I've never exactly considered the option 2., but I'd be happy to talk 
the details. WRT UI, maybe something along the lines of 
package-menu-filter-* commands, bound inside a '/' prefix. One command 
could add "inclusion filter", another - "exclusion filter", and the 
third one - reset all filters. '/ /' be bound to the last one.

The 'q' binding sounds iffy to be in that regard.

Another thing to keep an eye out for - is how the filtering will affect 
n/p navigation and the xref-query-replace-in-results command. I think 
they should respect the filtering as well.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 26 Jul 2021 23:16:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 26 19:16:38 2021
Received: from localhost ([127.0.0.1]:51729 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m89pu-0003J8-Fu
	for submit <at> debbugs.gnu.org; Mon, 26 Jul 2021 19:16:38 -0400
Received: from mail-ej1-f45.google.com ([209.85.218.45]:37541)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1m89pr-0003Iu-Q0
 for 49731 <at> debbugs.gnu.org; Mon, 26 Jul 2021 19:16:37 -0400
Received: by mail-ej1-f45.google.com with SMTP id nb11so19094943ejc.4
 for <49731 <at> debbugs.gnu.org>; Mon, 26 Jul 2021 16:16:35 -0700 (PDT)
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=md28/l4ZHe8AjcCEs0UAlXSaThsUpWFgYt3+/sGaBzE=;
 b=J4h1qcWK4z/71s+cFJ6ZwlPDkjDFY5IumV54A1uc57NZauHn72ytkY35wFo8gdhOWN
 vFtW53TtlyC59xL3EtXhKsqxh+vnhomlWTTf7uNtY0BcBR3OBfGeLmuclEUaF6pWFSO6
 q5Um7SQZgrD3Q+gzI9a9yJUJzC5uPpWbf0kRvIrvEMOWwbZhbwNWkw2+GD/EwyW96gxI
 nDi8gvehDXCTU6y/zQBcHR6c7F/Vw1fq5Dj+38BxR9I6B7A4i1NzP8MZ71BcW34QJyze
 FAXxr/v7WLwNl0rKfjst0lIrPufgNMfDU8ctep8oJLM7fmXQnMjxYTQG6M+24rC9f1H2
 vApQ==
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=md28/l4ZHe8AjcCEs0UAlXSaThsUpWFgYt3+/sGaBzE=;
 b=bBZ1Prgr9gqETYg/CzJohUR4DYCl6cAppsZAJatDf222IDF+hoI4gAYFDGC0YcvDUQ
 ER+FF3R1FhANVeiL/E3BCwsqUbHE43zajX3xACqtWzF8/GraCiw4KMvOuukWwuFNV71i
 qQ3t9msDoULrABoLfqM3SQAdkf6B9myiA2tNU3Y0YqJlD0jvUb6HPR+V6ZV9mhh9iWK/
 gOB4jR0mCoTub/i0S6bkHxKr6jo+Yz0TLVCHNd/hLq2sL04sv1aHVMBwSCTJXHqtkayG
 vP3v73ItjrmphO1brbbauQibIf6U6KhgRjFT/oBDhJ1ptS1dqPqidxDF3SFA3wrFVJ5e
 3LeA==
X-Gm-Message-State: AOAM532vAC8wtRreBCPPFYAbIIY4csl7g9lU67a2j1T7lNi6ad4110/v
 8GQaBwVkZHrY/B1UEVZcAQ/n29PU3Rw=
X-Google-Smtp-Source: ABdhPJy1Q1FrBDx4ox/9+FAv9G8ixZ74j/9XAfSHXF6O4g10UhhRXL8eKEZmZrIu34uESNHp5QA0Ow==
X-Received: by 2002:a17:906:31cb:: with SMTP id
 f11mr19596985ejf.379.1627341390324; 
 Mon, 26 Jul 2021 16:16:30 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id dy8sm484749edb.74.2021.07.26.16.16.29
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 26 Jul 2021 16:16:29 -0700 (PDT)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
To: Lars Ingebrigtsen <larsi@HIDDEN>, =?UTF-8?Q?Daniel_Mart=c3=adn?=
 <mardani29@HIDDEN>
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5ux079.fsf@HIDDEN> <87h7gix067.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <9684aaa8-91f6-117c-c227-4c7b1cc69668@HIDDEN>
Date: Tue, 27 Jul 2021 02:16:28 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <87h7gix067.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

On 25.07.2021 11:33, Lars Ingebrigtsen wrote:
> (Well, as sorting instead of filtering, so it's not quite the same.)

And it's etags-specific.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 26 Jul 2021 23:00:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 26 19:00:43 2021
Received: from localhost ([127.0.0.1]:51706 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m89aV-0002tP-Lt
	for submit <at> debbugs.gnu.org; Mon, 26 Jul 2021 19:00:43 -0400
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:46509)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1m89aQ-0002sr-FI
 for 49731 <at> debbugs.gnu.org; Mon, 26 Jul 2021 19:00:39 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 2984C240003;
 Mon, 26 Jul 2021 23:00:30 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN> <m1a6m9e1mw.fsf@HIDDEN>
Date: Tue, 27 Jul 2021 01:53:09 +0300
In-Reply-To: <m1a6m9e1mw.fsf@HIDDEN> ("Daniel =?iso-8859-1?Q?Mart=EDn=22?=
 =?iso-8859-1?Q?'s?= message of "Mon, 26 Jul 2021 13:49:11 +0200")
Message-ID: <87im0wadre.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> (add-hook 'xref-after-update-hook
>>           (lambda ()
>>             (setq-local outline-regexp
>>               (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]"))
>>             (outline-minor-mode +1)
>>             (save-excursion
>>               (goto-char (point-min))
>>               (while (search-forward "ChangeLog" nil t)
>>                 (outline-cycle)))))
>
> This is similar to what I have in mind.  Instead of hardcoding
> "ChangeLog", the proposed command would ask the user for the regular
> expression.  Your command hides entries that match the pattern, but I
> think that for the new command the opposite interpretation is more
> common (only show those entries that match the pattern, and hide
> everything else).  Does it make sense to offer both behaviors? (Like
> flush-lines/keep-lines.)

Indeed, both include/exclude make sense.  In your example
of using "tests/" to get results only from unit tests,
actually in most projects I need exactly the inverse:
to ignore all results from unit tests, because when I need
to get results only from "tests/", then it's easy to run
'C-x p g' (project-find-regexp) with the prefix C-u
and specify the directory to search such as "tests/".

> Another xref-mode-map command bound to "q", for example, would disable
> outline-minor-mode to present the xref buffer with full visibility.

There is 'outline-cycle-buffer' bound to 'S-TAB' that can
enable full visibility, or just 'outline-show-all'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 26 Jul 2021 11:49:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 26 07:49:21 2021
Received: from localhost ([127.0.0.1]:50090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7z6n-0000pf-KU
	for submit <at> debbugs.gnu.org; Mon, 26 Jul 2021 07:49:21 -0400
Received: from sonic312-25.consmr.mail.ir2.yahoo.com ([77.238.178.96]:38356)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1m7z6l-0000pR-L9
 for 49731 <at> debbugs.gnu.org; Mon, 26 Jul 2021 07:49:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1627300153; bh=mnkQmwRf7qsdZYS3eC4h1s4zrKopYK2+ZiXknEXpHOU=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To;
 b=B3eUw3l2gIiWoPovdqO1JhzeVziZ0uJOr2p8kaIfNZlmdu0L/LHNBnDr6jkRGVHuIaNZt5QQR/+h0aK3V5z0IwrCNc9PndiOF4fiiH/HOkzgnv0hs2ETw9rAHvV1tjG7HKeoriJmD+u2finWz36qbMjYHRvuXod5d49+EhdVPjnH4GD+blmL/pSYvGRxPXsHjGe7zl5U70O+u3tk0aJVKQMktLyVPOatmMEaYNx77Qocp3Att46ygdXxY1tIZFo6p3jhBsLTuSsKqXhWW3oQo+61dK9rE9fb4YYlT/53fkT4T0glv8f9deWard5eUynLFYNFEgtFw1+1EKGBllu2NQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1627300153; bh=TGQDvuYl9hsxmu+2Dc/bPbzVtylCfJKGsCR2nZ2ET8f=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=DQ2T1lbfeALLkQF3Y7LUpCBkCCq9FGZhglngzUKNMozecP7WmWTHQbuhmmJGV6KU2VRS+0/Jt7PEWzwQDHEYJ8YEZAFVjzGc1Qrxo7Wf0gvmcvH3jJoWDmpSf8JD9QgX0/vF1hR1jxOkWXoXp4J8S3oI9YoRKskkqyxKAZzTCdi46E7xJbtPmQ4p3SNS1l89Hb4P63daPw4C7qQzFMs6zkjQMpdWj4yyJ5V+brYMdzauDj4tyta9t2uc5w/COaroA6pb2LbGmLMTWLWccQFdfCEBFNQ9Ey1OHOOxkTA72Dudq9zYAlkapy6GNtQ3dUUF5VNtcZtkQfa2mQJ+ya4vZg==
X-YMail-OSG: mzWYbCsVM1mbG.WnMMpUgtGMEv74ZMReV_16AIJEO3GULftRVH3G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eiLsAZx3s5odzxdRkIAY9Q9
 yuNpHD84GlJBlogfzlf2CWCYi2Xb.sk8m3ug4XLtgjlXBn8RAoZMbvkaRF9VvyXhtJfiRQs9ikQF
 4cs_ygY0Dff.VniQF1wPM3HaPKx0SwDq6ZfyXmOqJa98Wz9WXmigVRpRAmgWdoegqkABUK3EtyMJ
 15imqpUFyUpQV3RLZfqwQBkgE7MxYf9bQEzyaE6DuvWnWZc_yuy.Ps47o_Ewjll0VyRfQXZrNZFe
 PxCFdqgYgLvyMhiH.R5nCSLVCBP9kzyYAZ1lGelG7ThV0ahzFgXFNN5.Z_NAozAu9lNAswHVqwrT
 eGUhsGFRCmYou80pSnzQGlkoezG575W3Zg4akobEoJPSllLgoJnRJ03o4f4Gm7H8tO4SF4A57_QW
 7I7H77.bPnBr7
X-Sonic-MF: <mardani29@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic312.consmr.mail.ir2.yahoo.com with HTTP; Mon, 26 Jul 2021 11:49:13 +0000
Received: by kubenode528.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP
 Server) with ESMTPA ID 96c7c1dcd920be714453f3aee4bef75f; 
 Mon, 26 Jul 2021 11:49:12 +0000 (UTC)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5urv4c.fsf@HIDDEN>
Date: Mon, 26 Jul 2021 13:49:11 +0200
In-Reply-To: <87lf5urv4c.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 25 Jul 2021 23:43:55 +0300")
Message-ID: <m1a6m9e1mw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.18736
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1381
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Juri Linkov <juri@HIDDEN> writes:

>
> I have exactly the same problem while using xref on the Emacs source tree:
> most of the time I'm not interested in the results found in ChangeLog files,
> so I want to ignore all ChangeLog files, and only ChangeLog files.
>
> This problem was solved by enabling outline-minor-mode on the xref output,
> then collapsing all ChangeLog entries automatically:
>
> #+begin_src emacs-lisp
> (add-hook 'xref-after-update-hook
>           (lambda ()
>             (setq-local outline-regexp
>               (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]"))
>             (outline-minor-mode +1)
>             (save-excursion
>               (goto-char (point-min))
>               (while (search-forward "ChangeLog" nil t)
>                 (outline-cycle)))))
> #+end_src

This is similar to what I have in mind.  Instead of hardcoding
"ChangeLog", the proposed command would ask the user for the regular
expression.  Your command hides entries that match the pattern, but I
think that for the new command the opposite interpretation is more
common (only show those entries that match the pattern, and hide
everything else).  Does it make sense to offer both behaviors? (Like
flush-lines/keep-lines.)

Another xref-mode-map command bound to "q", for example, would disable
outline-minor-mode to present the xref buffer with full visibility.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 25 Jul 2021 20:58:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 25 16:58:23 2021
Received: from localhost ([127.0.0.1]:49488 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7lCY-0000rA-TE
	for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 16:58:23 -0400
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:44407)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1m7lCX-0000qq-6L
 for 49731 <at> debbugs.gnu.org; Sun, 25 Jul 2021 16:58:21 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id DBB0CC0003;
 Sun, 25 Jul 2021 20:58:12 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= via "Bug reports for GNU Emacs, the
 Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
Date: Sun, 25 Jul 2021 23:43:55 +0300
In-Reply-To: <m1pmv6iz4n.fsf@HIDDEN> ("Daniel =?iso-8859-1?Q?Mart=EDn?=
 via \"Bug reports for
 GNU Emacs, the Swiss army knife of text editors\""'s message of "Sun,
 25 Jul 2021 10:19:52 +0200")
Message-ID: <87lf5urv4c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49731
Cc: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>,
 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> 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.

I have exactly the same problem while using xref on the Emacs source tree:
most of the time I'm not interested in the results found in ChangeLog files,
so I want to ignore all ChangeLog files, and only ChangeLog files.

This problem was solved by enabling outline-minor-mode on the xref output,
then collapsing all ChangeLog entries automatically:

#+begin_src emacs-lisp
(add-hook 'xref-after-update-hook
          (lambda ()
            (setq-local outline-regexp
              (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]"))
            (outline-minor-mode +1)
            (save-excursion
              (goto-char (point-min))
              (while (search-forward "ChangeLog" nil t)
                (outline-cycle)))))
#+end_src

> Right now the only approach I know for this use case is to use Isearch,
> but Isearch searches the entire xref buffer, including xref matches.

You can use isearch-filter-predicate to match only on file names.
There is an example of this feature in dired-isearch-filenames-mode.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jul 2021 20:58:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 25 16:58:27 2021
Received: from localhost ([127.0.0.1]:49491 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7lCd-0000rR-71
	for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 16:58:27 -0400
Received: from lists.gnu.org ([209.51.188.17]:58368)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1m7lCY-0000r4-BC
 for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 16:58:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53856)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1m7lCY-00078S-2C
 for bug-gnu-emacs@HIDDEN; Sun, 25 Jul 2021 16:58:22 -0400
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:34307)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1m7lCV-000166-Qr
 for bug-gnu-emacs@HIDDEN; Sun, 25 Jul 2021 16:58:21 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id DBB0CC0003;
 Sun, 25 Jul 2021 20:58:12 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= via "Bug reports for GNU Emacs, the
 Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
Organization: LINKOV.NET
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
Date: Sun, 25 Jul 2021 23:43:55 +0300
In-Reply-To: <m1pmv6iz4n.fsf@HIDDEN> ("Daniel =?iso-8859-1?Q?Mart=EDn?=
 via \"Bug reports for
 GNU Emacs, the Swiss army knife of text editors\""'s message of "Sun,
 25 Jul 2021 10:19:52 +0200")
Message-ID: <87lf5urv4c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@HIDDEN;
 helo=relay6-d.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: submit
Cc: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>,
 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

> 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.

I have exactly the same problem while using xref on the Emacs source tree:
most of the time I'm not interested in the results found in ChangeLog files,
so I want to ignore all ChangeLog files, and only ChangeLog files.

This problem was solved by enabling outline-minor-mode on the xref output,
then collapsing all ChangeLog entries automatically:

#+begin_src emacs-lisp
(add-hook 'xref-after-update-hook
          (lambda ()
            (setq-local outline-regexp
              (if (eq xref-file-name-display 'abs) "/" "[^ 0-9]"))
            (outline-minor-mode +1)
            (save-excursion
              (goto-char (point-min))
              (while (search-forward "ChangeLog" nil t)
                (outline-cycle)))))
#+end_src

> Right now the only approach I know for this use case is to use Isearch,
> but Isearch searches the entire xref buffer, including xref matches.

You can use isearch-filter-predicate to match only on file names.
There is an example of this feature in dired-isearch-filenames-mode.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 25 Jul 2021 14:59:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 25 10:59:03 2021
Received: from localhost ([127.0.0.1]:49129 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7fap-0006hi-4L
	for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 10:59:03 -0400
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 <mardani29@HIDDEN>) id 1m7fam-0006hB-5Q
 for 49731 <at> 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+9ShYpmYCtfhHesJeN7e8UXn8tFaCtkm5q5dZ4z3W6KulEW3ZGD3VQUk44Vl+XWzYQGoI2TVyTsT/5VW9V/A2v0dDirQcpbTcqeJYn83Fo9PTV+lsW6OdVpzhgshPRS3Kn8LdG+JXQPq6dVm5zvZ4kJ8+uhl7t0Jl9YkqJwTbBRqamVnEUbwQAC1+x6NHU/neQUYBeZoq9JcuaZ7CX7/XvrJuM4Cov99CD0A5CQNyRG+xKFOAt9Qib2uNHuMEdOkSUBFG9hYFg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1627225134; bh=0kg3MW0eFyUcntinZKO8J0Mao1Bm5CJnvSpD5OXhXS0=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=n4xoDcU4Q3Pyr9frxcJr2HtZ8Bmbh2rg8+nTC0dQBBXOn+N31s8wxg3JNTQ3dU9Xxn0vgkE50+GqVuiq01dM6nfY3MvRpZoPweDi8rubqoe0f33q4evRUjSdQbf+sK7oT2w3GdZYkbV+UBCyUuC56MQLrfrJA9oA/9z2HGlUFaJ345pZaVRQYqpTp7hSkZEPwOx5st64GTSOJDzkce7f+dN+3HfkKMuZKtZR6lPv4q1htCG5kHlXAhUhcLzwwHQbSgxQMu3EB9Ebe88isedP4a3G81iG0ew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tdXn
 Fk9Zq.SgCjLj1IR218.HyOZwT862vJfRMPXiUMlS_uNGkmKymLxjQ6IWXQAqNpFW1FNSPUdQSSs7
 ftN1Nwxv0x86Q3NDnZtvWzDx4b1WvKI7h0CLEDk7.84UMfIigEKwTY70ix5B12sq6.JD5M48jkcO
 Dpyvvmh4kw2DKbIfFshXjVP8WyeG1XDubvitdq6.TYevJCmFPZWwqL4B3vDyNOkuezG6YImwUiLO
 rWM8uYINjiWpR51JY7x8yHgfps2F.on.N04cTAzx.NsUXorpqWQ4O61rmRuhqWwa2ulurJkvS_rv
 rwChUE8bAGvecCaAntxMzEe_Lh7IQf_kFaaFCltiRI890T9EYGfUxdlWNsRJX.EIGCwqqNBaF6PP
 HQON_vu5.k6zSbkId63xz0PSyhoa6NxUXZVBmrk5JfnwAeYNs5BC72QwFGeWpXn_CHuIFujTv8It
 wXAQfUWqB1yo9swWvetFmK00jnp22ZaHFf5x6FJFTjdNd9LuyCGiuZppntEbuEpGNEY6oYWiuglI
 SrdqTuWbi8X4PLRuQZ_QDxY435948c1IO4CoWDqdxeJSkKrK7ved8i2NCRIG1Uvuc7zIO69xk3Yl
 GgyBz.unUKnBSO1f3m__dhgOYgALCJA--
X-Sonic-MF: <mardani29@HIDDEN>
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
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)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <831r7myd0y.fsf@HIDDEN>
Date: Sun, 25 Jul 2021 16:58:46 +0200
In-Reply-To: <831r7myd0y.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 25 Jul
 2021 12:10:37 +0300")
Message-ID: <m14kcih23d.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.18736
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1623
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Eli Zaretskii <eliz@HIDDEN> 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?).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 25 Jul 2021 09:11:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 25 05:11:01 2021
Received: from localhost ([127.0.0.1]:47579 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7aA0-0003fY-Q9
	for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 05:11:01 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1m7a9v-0003fI-R4
 for 49731 <at> debbugs.gnu.org; Sun, 25 Jul 2021 05:10:59 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34244)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1m7a9q-0001j5-BK; Sun, 25 Jul 2021 05:10:50 -0400
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 <eliz@HIDDEN>)
 id 1m7a9p-0007mn-Sc; Sun, 25 Jul 2021 05:10:50 -0400
Date: Sun, 25 Jul 2021 12:10:37 +0300
Message-Id: <831r7myd0y.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
In-Reply-To: <m1pmv6iz4n.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> 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" <bug-gnu-emacs@HIDDEN>
> 
> 
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 25 Jul 2021 08:33:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 25 04:33:48 2021
Received: from localhost ([127.0.0.1]:47556 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7Za0-0002oz-8N
	for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 04:33:48 -0400
Received: from quimby.gnus.org ([95.216.78.240]:42494)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1m7ZZx-0002ok-Cc
 for 49731 <at> debbugs.gnu.org; Sun, 25 Jul 2021 04:33:46 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=/eIAUsodrCwk6dDe+hVSWXnlMlBAlJKr7ReLur/sKZY=; b=e6tMad5WNk0J6BNf0FcZ2ShUSo
 +kDrZjNYmQHJZgZUtTV1Hf0kOtwj2Aq8yYL/hDkS3obI58OIwCQfODysCV9/pct/S1LwA7OcQuMrI
 n3kfckHS9OMKzen7j4ENFeNkTWOKwBPy6ugaAXe34zYsxDPfzB3dkhSiQBUDRoE/gBMw=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1m7ZZp-000731-AT; Sun, 25 Jul 2021 10:33:39 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Daniel =?utf-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
 <87lf5ux079.fsf@HIDDEN>
X-Now-Playing: Jane Siberry's _Angels Bend Closer_: "Anytime (Ballad)"
Date: Sun, 25 Jul 2021 10:33:36 +0200
In-Reply-To: <87lf5ux079.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun,
 25 Jul 2021 10:32:58 +0200")
Message-ID: <87h7gix067.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Lars Ingebrigtsen <larsi@HIDDEN> writes: > Daniel Martín
    <mardani29@HIDDEN> writes: > >> What do you think about this new feature?
    Do you have any suggestions >> about how it should work? > > This was recently
    discussed in bug#2544... 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Daniel Mart=C3=ADn <mardani29@HIDDEN> writes:
>
>> What do you think about this new feature? Do you have any suggestions
>> about how it should work?
>
> This was recently discussed in bug#2544...

(Well, as sorting instead of filtering, so it's not quite the same.)

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at 49731 <at> debbugs.gnu.org:


Received: (at 49731) by debbugs.gnu.org; 25 Jul 2021 08:33:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 25 04:33:09 2021
Received: from localhost ([127.0.0.1]:47553 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7ZZN-0002o6-0U
	for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 04:33:09 -0400
Received: from quimby.gnus.org ([95.216.78.240]:42478)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1m7ZZL-0002nq-EP
 for 49731 <at> debbugs.gnu.org; Sun, 25 Jul 2021 04:33:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=AiYVmEElDWm83tMuzgMS/ybvm3wWKBLIdRIkj9QeyBA=; b=bRzvSrChvGtwzzF2AdSVnE3FpS
 +qk/h8NEZzX8Z2MsN0jNmqyEPajcGGav8J9orS15ux3TtLf/JS0U7xkz2kt+Nx3GdgUG4V9Ag6nnX
 0K1nHcamOSeBI+hlhZhwH9KqO+eGtmBujt2EyFSNUYm7xRas98gqud3t9gLjuIau/4WU=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1m7ZZC-00072o-J5; Sun, 25 Jul 2021 10:33:01 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Daniel =?utf-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>
Subject: Re: bug#49731: 28.0.50; Filter xref results by filename
References: <m1pmv6iz4n.fsf.ref@HIDDEN> <m1pmv6iz4n.fsf@HIDDEN>
X-Now-Playing: Jane Siberry's _Angels Bend Closer_: "Anytime (Ballad)"
Date: Sun, 25 Jul 2021 10:32:58 +0200
In-Reply-To: <m1pmv6iz4n.fsf@HIDDEN> ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?=
 message of "Sun, 25 Jul 2021 10:19:52 +0200")
Message-ID: <87lf5ux079.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Daniel Martín <mardani29@HIDDEN> writes: > What do you
   think about this new feature? Do you have any suggestions > about how it should
    work? This was recently discussed in bug#2544... 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 49731
Cc: 49731 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Daniel Mart=C3=ADn <mardani29@HIDDEN> writes:

> What do you think about this new feature? Do you have any suggestions
> about how it should work?

This was recently discussed in bug#2544...

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jul 2021 08:20:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 25 04:20:07 2021
Received: from localhost ([127.0.0.1]:47543 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m7ZMl-0002TX-4Q
	for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 04:20:07 -0400
Received: from lists.gnu.org ([209.51.188.17]:45120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1m7ZMi-0002TM-SZ
 for submit <at> debbugs.gnu.org; Sun, 25 Jul 2021 04:20:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54066)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mardani29@HIDDEN>)
 id 1m7ZMh-0002Q0-Mn
 for bug-gnu-emacs@HIDDEN; Sun, 25 Jul 2021 04:20:04 -0400
Received: from sonic302-19.consmr.mail.ir2.yahoo.com ([87.248.110.82]:45613)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <mardani29@HIDDEN>)
 id 1m7ZMe-0002OI-B7
 for bug-gnu-emacs@HIDDEN; Sun, 25 Jul 2021 04:20:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1627201196; bh=9msOvjKoWuOW7cAvx9VrjxtYGIay/7IcjoqGCPED05I=;
 h=From:To:Subject:Date:References:From:Subject:Reply-To;
 b=KDw75R/tNTt+KD3sCptDRNcIE02IRFEqboYxchISksbve4Ll3EfXH9LuTjvk8F43FnevAtz9+Ign6KxR+1yA5T05Z92h0pq+ZrNZ9WeVWxhbuTUR3hkuhqlh8zBlWiQNz35H+9XTF7dl06yalHZ/fIST0WCuazhx2p+NH9/Rhmbl2TK2QBFEb5L/gRwlkoYHaDOYO+zgsVa4x0wf9rusekIKpYU7sxicVwkeuXMPU9bC785mxL7/PS9zjvwDWOt2ftb6uWkwt2fVBe9qPCm738NMpC93iMyEnpGJccpkER/HBridKG50B2+p3J8Htn7rmuixXoZEcBPpJj6Y09fX3A==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1627201196; bh=qbsdJ8RclGRe/Epzaj68AvjUyTCkK7Xkc66Mdq761iz=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=hy915S2q0fkP4rzUrCkgGNHQzx6jVv7E4cZxQhhNUh/SxZT0v17Jfunwg4Xh5ZxKbN7IiJV7yu+MOvtQnr3v4DgAROma9y+UciGka4u30uUvVgKZlUgrjqV/7dc7osUe6fyu2ccNQylDWrXxHEgo6vpdgmfrkfQT55hpdLUOFgm56W8Ezy/GBZBD1Kt8hPwPPTDTXL2hyhejrVBjNT+wApc/rGK6JonxhnmFh6lPxhs5S1H3eZcPcicASrwxpDerDKG/RcGQiqpaqefoBIWxcCOvQdh7tDttiAdy8LPk0QjKt1RtgIY4c9tXprOAcG/UrKWBTpRlZoGbHVVWiohZBg==
X-YMail-OSG: jeZVI2IVM1nTIlbPeV_cYVm0lW5nO.S5i2C4_tIfe9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LzbqU2k.aEitlqJHXL1k8kDvXCuZaousRoUu.54q_YdTylx4ysHh.hGyttheT2s9VCXSV02tny37
 tav2p19UPH1jS.dkTmf9nK4qCyxhIMJEaQqZ2OWAKtOz0mgm5k9Egs9rb3_.ZQZ.kqeRK3YVWIOO
 9N1Oe14Qoqc2sndPJo4qOoqOsCVVrnOx1om2q0tHsJPZH59iyZyS_BYuYhNmMFGCX4J0UPoNOOIA
 QLS78sWPMpcMGPTg_gd0Ht4li6i61VanBOdvmHcgSscrjxVIPdbXdIgIO0mJX_2t210FVCDSevQ_
 dcYBVSbtyPygmdH4lxhhU8oWei4ua5AF2r0wfyC7q5mQTHdBSTTWtlDdR
X-Sonic-MF: <mardani29@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic302.consmr.mail.ir2.yahoo.com with HTTP; Sun, 25 Jul 2021 08:19:56 +0000
Received: by kubenode537.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP
 Server) with ESMTPA ID d19e2314ccbd00e7df634a0d684c1908; 
 Sun, 25 Jul 2021 08:19:53 +0000 (UTC)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Filter xref results by filename
Date: Sun, 25 Jul 2021 10:19:52 +0200
Message-ID: <m1pmv6iz4n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
References: <m1pmv6iz4n.fsf.ref@HIDDEN>
X-Mailer: WebService/1.1.18736
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 972
Received-SPF: pass client-ip=87.248.110.82; envelope-from=mardani29@HIDDEN;
 helo=sonic302-19.consmr.mail.ir2.yahoo.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


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.

Right now the only approach I know for this use case is to use Isearch,
but Isearch searches the entire xref buffer, including xref matches.

What do you think about this new feature? Do you have any suggestions
about how it should work?




Acknowledgement sent to Daniel Martín <mardani29@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#49731; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 13 Feb 2024 17:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.