all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Replacing find-tag with xref
@ 2019-04-30  9:15 R. Diez
  2019-04-30 14:33 ` Noam Postavsky
  0 siblings, 1 reply; 5+ messages in thread
From: R. Diez @ 2019-04-30  9:15 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all:

I have a large C++ repository and build my own TAGS file.

I have been using find-tag and etags-select-find-tag-at-point for years. I am used to it, and it works fine.

Some time ago I noticed that find-tag was being deprecated, and I tried the suggested replacement, but I got frustrated and gave up.

This deprecation has now become a more serious issue, because etags.el is no longer present in a convenient package repository, like Emacs' 
default one or MELPA.

So I have tried again to replace find-tag and etags-select-find-tag-at-point with xref-find-definitions-other-window and the like, to no avail.

I realised that there have been long discussions about this in the past. This is the kind of issue that makes me long for an Emacs 
alternative. 8-((( But I guess there is nothing viable yet.

Can someone please help me with this matter? I need working replacements for these functions:

1) find-tag
This is what I use manually when I do not quite know what I am looking for.
It should suggest the thing at point.
It should support autocompletion.
It should always (and hopefully exclusively) look in my TAGS file, no matter what my current buffer is.

2) etags-select-find-tag-at-point
This is what I use on existing source code.
If there is just one match, it should not prompt, just jump to the declaration.
If there are many matches, it should display a list to choose from.
It should always (and hopefully exclusively) look in my TAGS file, no matter what my current buffer is.

I tried to make xref-find-definitions always use the TAGS file, but my Lisp skills are not enough. I found this snippet:

https://github.com/emacs-ess/ESS/issues/686#issuecomment-475378908

But it does not work. I does not find anything.

I wonder whether I could turn xref-etags-mode on globally. And whether that would be enough.

Thanks in advance,
   rdiez



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-02 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-30  9:15 Replacing find-tag with xref R. Diez
2019-04-30 14:33 ` Noam Postavsky
2019-05-02  9:34   ` R. Diez
2019-05-02 11:15     ` Noam Postavsky
2019-05-02 22:53       ` Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.