Function: semantic-imenu-semanticdb-hook

semantic-imenu-semanticdb-hook is a byte-compiled function defined in imenu.el.gz.

Signature

(semantic-imenu-semanticdb-hook)

Documentation

Function to be called from semanticdb-mode-hook.

Clears all imenu menus that may be depending on the database.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/imenu.el.gz
(defun semantic-imenu-semanticdb-hook ()
  "Function to be called from `semanticdb-mode-hook'.
Clears all imenu menus that may be depending on the database."
  (require 'semantic/db-mode)
  (semantic-map-buffers
   (lambda ()
     ;; Set up semanticdb environment if enabled.
     (if (semanticdb-minor-mode-p)
         (semanticdb-semantic-init-hook-fcn))
     ;; Clear imenu cache to redraw the imenu.
     (semantic-imenu-flush-fcn))))