Sacha Chua writes: > On Fri, Jan 17, 2025, 00:18 James Thomas via Emacs news and miscellaneous > discussions outside > the scope of other Emacs mailing lists <emacs-tangents@gnu.org> wrote: > > Sacha Chua writes: > > > * Recursive project search in Emacs (17:57) > >> https://www.youtube.com/watch?v=1jBbVUnNbDU > > Instead of the advising, why not customize xref-show-xrefs-function? > Btw there's 'C-x x u' if it's only needed selectively. > > And it seemed like 'C-x C-SPC' could be used instead of a customization. > > I forwarded your message to Luke and Luke said: > > --- > I think that the `xref-show-xrefs-function` hook wasn't very helpful > because the values it took as inputs didn't include something I could > easily use to make a unique buffer name - or at least would have > required significantly more work. But maybe there was a simple way I > missed!
If by unique he meant not just a counter, then perhaps a single early advice to store the IDENTIFIER in a global variable to access it there? Peeking into the closure directly: (aref (aref fetcher 2) 4) is probably overkill. Regards, James --- via emacs-tangents mailing list (https://lists.gnu.org/mailman/listinfo/emacs-tangents)