Previous Next
Command Reference

All of the SNiFF+ commands that are important when editing source code are also available in Emacs. To accomplish this, a few keys have been bound to functions that communicate with SNiFF+. The functions and the key bindings are defined in:
$SNIFF_DIR/config/sniff-mode.el
Generally all commands (except toggle declaration/definition, edit overridden method and find next match) read the argument string (or symbol) from the minibuffer, whereby the string around the point is inserted as a default. (In Emacs nomenclature, the cursor position is called point.)
The following commands and bindings are available:

SNiFF+ command  What happens Emacs key binding
Show Symbol(s)... Shows the declaration or implementation of symbol. If symbol is ambiguous, a dialog opens with a list of valid alternatives
C-c C-g
sniff-goto-symbol
Show Baseclass Of... Shows the declaration of the base class of the currently selected class. This entry is enabled when the cursor is positioned in the scope of a class that has a base class.
C-c C-s
sniff-superclass
Show Overidden Method Shows the overridden method of the closest base class that defines method into a Source Editor.
C-c C-o
sniff-overridden
Toggle Declaration/Implementation Shows the declaration/implementation of method
C-c C-e
sniff-toggle
Browse Class... Shows the members of class in the Class Browser
C-c C-b
sniff-browse-class
Show In Entire Hierarchy... Opens a Hierarchy Browser and loads the entire class graph. class is highlighted in the Hierarchy Browser
C-c C-h
sniff-hierarchy
Show Relatives In Hierarchy... Opens a Hierarchy Browser and loads the graph of the base and derived classes. class is highlighted in the Hierarchy Browser
C-c M-C-h
sniff-restr-hier
Retrieve From This File... Searches for a string in the current file using the Retriever.
C-c C-r
sniff-retrieve
Retrieve From This Project... Searches for a string in the current project using the Retriever.

sniff-retrieve-proj
Retrieve From All Projects... Searches for a string in all projects using the Retriever.

sniff-retrieve
-allprojs
Retrieve (Using Retriever Settings) Searches for a string using the current Retriever settings.
C-c M-C-r
sniff-retrieve-next
Find Symbols Matching... Opens a Symbol Browser to search for symbols that match selection as a whole word.
C-c C-f
sniff-find-symbol
Symbol Refers-to... Opens a Cross Referencer and starts a Refers-To query on symbol. The settings of this Cross Referencer's Xref Filter are used for the query parameters.
C-c C-x
sniff-xref-to
Symbol Referred-by.. Opens a Cross Referencer and starts a refers-by query on symbol. The settings of this Cross Referencer's Xref Filter are used for the query parameters.
C-c M-C-x
sniff-xref-by
Symbol Refers-to Components... Opens a Cross Referencer and starts a query for showing all symbols (classes and structures) that are components of symbol. If the current selection is a member of a class/structure, the class/structure is taken for this query.
C-c C-c
sniff-xref-has
Symbol Referred-by as Component... Opens a Cross Referencer and starts a query for showing all symbols that have symbol as a component. Note that you can also query primitive C data types with this command.
C-c M-C-c
sniff-xref-used by
Show Documentation Of... Opens a Documentation Editor and positions it to the documentation of symbol. An alert message appears if no documentation file exists for either the entire file or for symbol. You then have the option of creating a documentation file
C-c C-d
sniff-show-docu
Generate Documentation For... If the cursor is positioned on a symbol, you are asked if you would like to generate documenation for the symbol or for the file, if not documentation is generated for the file.
C-c M-C-d
sniff-gen-docu
Save w/o Reparse SNiFF+ saves the current file without reparsing it.
sniff-writebuffer
Reparse... SNiFF+ reparses the current file and updates the Symbol Table.
sniff-reparse
Connect Establishes connection with SNiFF+. Make sure that SNiFF+ is in Emacs mode.
sniff-connect
Disconnect Disconnects from SNiFF+.
You can reconnect at any time with
:sniff connect.
sniff-disconnect


Previous Next