To generate the etags database file, you need to be in the directory containing your c-files. For example, typing etags *.[ch] in your shell will create the file TAGS, containing the references to all C-functions and definitions.
Table 6 describes some of the possible commands.
Etags | ||
Key | Action | Explanation |
M-. | find tag | Jumps to the location where the function or constant is defined. Emacs opens the file containing the function automatically, if it is not yet open. |
M-TAB | Expand tag | Any function name that is indexed by a tag file (explained in subsection 2.4), can be expanded to its full name. If the expansion is ambiguous, the variants are displayed in a separate buffer. This feature can also be very useful, if we are not sure about the function name. |