Next: SymRef, Previous: Analyzer, Up: Using Semantic

### 2.5 Speedbar

You can integrate Semantic with the Speedbar. See Speedbar. To do this, add the following line to your init file:

         (add-hook 'speedbar-load-hook (lambda () (require 'semantic/sb)))

Or, alternatively:

         (require 'semantic/sb)

Once installed, the Speedbar will use Semantic to find and display tags. Tags from Semantic are displayed with more details than ordinary Speedbar tags, such as function arguments and return type.

In addition, you can use the Speedbar to show the output of the Semantic Analyzer (see Analyzer). To do this, go to the ‘`Display`’ menu item on the Speedbar menu and select ‘`Analyze`’; or type `M-x semantic-speedbar-analysis`.

— Command: semantic-speedbar-analysis

> Start the Speedbar in Semantic Analysis mode.

In Semantic Analysis mode, the Speedbar displays information about the local context, such as the current function, local arguments and variables, and details on the prefix (the current symbol). Each entry has an ‘`<i>`’ button; clicking on this shows a summary of what Semantic knows about that variable or type. The Speedbar also displays a list of possible completions at point.