all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using xref-find-definitions
@ 2023-10-06 18:38 Patrick Mahan
  2023-10-07  6:02 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Mahan @ 2023-10-06 18:38 UTC (permalink / raw)
  To: Help Gnu Emacs

I am running 25.2.2 on Ubuntu 18.04 release.

I am working on a large software project, with lots of subdirectories and
lots of files.  Originally, TAGS are built using the cascading makefiles
(one per directory) so you get a TAGS file in each directory and as you
move up the TAGS file also incorporates the ones below it (without the use
of the --include command).  In my emacs init file I have tags-table-list
set to the list of locations for the tag files -

(setq tags-table-list (list "./" "../"
                                      (concat (getenv "WORK") "/src/lib")
                                      (concat (getenv "WORK") "/src/bin")
                                      (concat (getenv "WORK")
"/src/include")
                                      (concat (getenv "WORK") "/src"))))

This has worked well for a while now using the older find-tags command.
But now that command is no longer supported and I need to use
xref-find-definitions.  Which works fine, for the most part, but
occasionally I run across the following issue -

An *xref* buffer appears with the following -
/home/pmahan/workspaces/myos/src/bin/mserv/appclass/my_ipserv.c
109: void flow_log(
/home/pmahan/workspaces/myos/src/bin/mserv/appclass/my_ipserv.c
109: void flow_log(

When I was using find-tag, it would give me the first hit, then I could do
CTRL-u M-. to go to the next entry.  I would not have this presented.  In
the new method, this is churning my buffer displays around which is
annoying, especially when the entry is in the same code module.

My current assumption is that this is due to all of the various TAGS files
that have duplicate entries.  Is it time to change how we generate TAGS?
Or can I configure xref-find-definitions to handle this situation.

Thanks,

Patrick


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

end of thread, other threads:[~2023-10-07 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-06 18:38 Using xref-find-definitions Patrick Mahan
2023-10-07  6:02 ` Eli Zaretskii
2023-10-07  7:35   ` Patrick Mahan
2023-10-07 19:05     ` Patrick Mahan

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.