bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49731: 28.0.50; Filter xref results by filename


From: Dmitry Gutov
Subject: bug#49731: 28.0.50; Filter xref results by filename
Date: Wed, 23 Nov 2022 20:47:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]