Semantic mode provides a number of commands for navigating, querying, and editing source code in a language-aware manner. These commands generally act on tags, which are the source-code units deemed “important” by the present programming language (e.g., functions in the C programming language).
These commands may be used in any buffer that has been parsed by Semantic. Several of them prompt for a tag name using the minibuffer; here, the TAB key can be used to complete tag names. Others act on the current tag, meaning the tag at (or around) point.
Prompt for a tag defined in the current file, and move point to it
Prompt for a tag defined in any file that Emacs has parsed, and move
point to it (
Display a list of the possible completions of the current tag
Prompt for a tag, and display a list of tags that call it
semantic-symref-symbol). This relies on the presence of an
external symbol reference tool. See SymRef.
Display a list of tags that call the current tag
semantic-symref). This relies on the presence of an external
symbol reference tool. See SymRef.
Move point to the previous tag (
Move point to the next tag (
Move point “up” one reference (
The meaning of “up” is language-dependent; in C++, for instance,
this means moving to the parent of the current tag.
Display a list of possible completions for the symbol at point
semantic-complete-analyze-inline). This also activates a
special set of keybindings for choosing a completion: RET
accepts the current completion, M-n and M-p cycle through
possible completions, TAB completes as far as possible and then
cycles, and C-g or any other key aborts the completion.
See Smart Completion.
Kill the current tag (
senator-kill-tag). This removes the text
for that tag, placing it in the kill ring. You can retrieve the text
with C-y. This also places the tag in the tag ring, so
that you can yank it with \C-c,\C-y, below.
Copy the current tag into the kill ring as well as the tag ring
Yank a tag from the tag ring (
Copy the current tag into a register
senator-copy-tag-to-register). With an optional argument,
kill it as well. This allows you to insert or jump to that tag with
the usual register commands. See Registers in Emacs manual.
Transpose the current tag with the previous one
Transpose the current tag with the next one