What is the best way to navigate duplicate tag definitions in Emacs?

In emacs, what are the best options for moving to a specific function, whose name can appear in several different files? Inside etags, you are allowed to loop through the tags one at a time, which may take some time if the popular function name is popular.

+6
emacs tags
source share
4 answers

Cu M-. cyclically all locations of the same tag, but if you want to see a list of all tags that match the name of your function, you can use the apropos command tags.

+5
source share
+3
source share

If your programming language is C , then cscope is much better than etags. It presents you an interactive list of symbol instances with its context. More information is in this answer.

+1
source share
  • Icicles Tag Commands

    In particular, use the icicle-find-tag to do what all of these vanilla commands do:

    • find-tag ( M-. ) to find the tag
    • tags-loop-continue ( M-, ) to find another matching tag
    • tags-apropos to display all tags matching the regular expression
    • list-tags to show all tags (definitions) in a given source file.

    icicle-find-tag - a common tag browser: as a multi icicle-find-tag , you can visit any number of tags in any order in one call.

  • Icicles imenu - Imenu through files or buffers. Search within specific function definitions (in the search context).

0
source share

All Articles