bug#81624: New command: xref-find-by-kind

João Távora <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Dmitry Gutov <[email protected]> writes:

> Couldn't really decide, flipped a coin. But if we flip it back, the
> command definitions get even smaller:
>
>   (defun eglot-find-declaration (identifier)
>     "Find declarations for IDENTIFIER."
>     (interactive (list (xref-read-identifier "Find declarations of: ")))
>     (xref-find-by-kind identifier 'declaration))

I definitely think you should do this -- i.e. flip back -- the other one
is repeating a database entry.  Consulting this small database should be
cheap.  Again, if you really want to do it by the book, make the
database in Lisp symbols: use a separate obarray and 'intern-soft' (the
poor man's elisp equivalent to FIND-SYMBOL+package of proper civilized
Lisps).

João
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.