unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Extending etags.el + exuberant ctags for duplicate tag definitions
@ 2008-01-23 17:52 Nordlöw
  2008-01-23 20:39 ` Scott Frazer
  0 siblings, 1 reply; 3+ messages in thread
From: Nordlöw @ 2008-01-23 17:52 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

I am looking for a way to extend the behaviour of find-tag and similar
functions (in etags.el) together with exuberant ctags (either using
format 1 ("tags") or 2 ("TAGS")) to propose the following completions
for a tag say TAG that have multiple definitions say in the files fa.c
and fb.c in the following way:

Completions for TAG:

TAG@fa.c,
TAG@fb.c

or

TAG@foo()@fa.c,
TAG@bar()@fa.c

Is this possible using the file formats 1 or 2 that Exuberant Ctags
can produce?

Thanks in advance,
Nordlöw

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

* Re: Extending etags.el + exuberant ctags for duplicate tag definitions
  2008-01-23 17:52 Extending etags.el + exuberant ctags for duplicate tag definitions Nordlöw
@ 2008-01-23 20:39 ` Scott Frazer
  2008-02-13 22:30   ` Extending etags.el + exuberant ctags for duplicate tagdefinitions Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Frazer @ 2008-01-23 20:39 UTC (permalink / raw)
  To: help-gnu-emacs

Nordlöw wrote:
> Hi!
> 
> I am looking for a way to extend the behaviour of find-tag and similar
> functions (in etags.el) together with exuberant ctags (either using
> format 1 ("tags") or 2 ("TAGS")) to propose the following completions
> for a tag say TAG that have multiple definitions say in the files fa.c
> and fb.c in the following way:
> 
> Completions for TAG:
> 
> TAG@fa.c,
> TAG@fb.c
> 
> or
> 
> TAG@foo()@fa.c,
> TAG@bar()@fa.c
> 
> Is this possible using the file formats 1 or 2 that Exuberant Ctags
> can produce?
> 
> Thanks in advance,
> Nordlöw
> 

It won't do tag-completion, but for browsing through tags with multiple
definitions, try:

http://www.emacswiki.org/cgi-bin/wiki/EtagsSelect

Scott

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

* RE: Extending etags.el + exuberant ctags for duplicate tagdefinitions
  2008-01-23 20:39 ` Scott Frazer
@ 2008-02-13 22:30   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-02-13 22:30 UTC (permalink / raw)
  To: 'Scott Frazer', help-gnu-emacs, 'Nordlöw'

> From: Scott Frazer Sent: Wednesday, January 23, 2008 12:39 PM
> Nordlöw wrote:
> > I am looking for a way to extend the behaviour of find-tag 
> > and similar functions (in etags.el) together with exuberant
> > ctags (either using format 1 ("tags") or 2 ("TAGS")) to propose
> > the following completions for a tag say TAG that have multiple
> > definitions say in the files fa.c and fb.c in the following way:
> > 
> > Completions for TAG:
> > TAG@fa.c,
> > TAG@fb.c
> > or
> > TAG@foo()@fa.c,
> > TAG@bar()@fa.c
> > 
> > Is this possible using the file formats 1 or 2 that Exuberant Ctags
> > can produce?
> 
> It won't do tag-completion, but for browsing through tags 
> with multiple definitions, try:
> http://www.emacswiki.org/cgi-bin/wiki/EtagsSelect

Sorry for the late posting, but maybe this will still help. 

You can browse all tags (including duplicates) of all tags tables, complete
against them, and visit their source definitions, using Icicles
multi-command `icicle-search-tag'. Your minibuffer input filters the source
files to search, as well as the set of matching tags. Matching can use
regexps.

`icicle-search-tag' thus combines the functionality of standard commands
‘find-tag’ (`M-.’) to find a tag, ‘tags-loop-continue’ (`M-,’) to find
another matching tag, ‘tags-apropos’ to list all tags that match a regexp,
and ‘list-tags’ to show all tags (definitions) in a given source file.

http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Tags_Enhancements

HTH.





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

end of thread, other threads:[~2008-02-13 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 17:52 Extending etags.el + exuberant ctags for duplicate tag definitions Nordlöw
2008-01-23 20:39 ` Scott Frazer
2008-02-13 22:30   ` Extending etags.el + exuberant ctags for duplicate tagdefinitions Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).