Function: semantic-create-imenu-index

semantic-create-imenu-index is an autoloaded and byte-compiled function defined in imenu.el.gz.

Signature

(semantic-create-imenu-index &optional STREAM)

Documentation

Create an imenu index for any buffer which supports Semantic.

Uses the output of the Semantic parser to create the index. Optional argument STREAM is an optional stream of tags used to create menus.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/imenu.el.gz
;;;###autoload
(defun semantic-create-imenu-index (&optional stream)
  "Create an imenu index for any buffer which supports Semantic.
Uses the output of the Semantic parser to create the index.
Optional argument STREAM is an optional stream of tags used to create menus."
  (setq imenu-default-goto-function #'semantic-imenu-goto-function)
  (prog1
      (if (and semantic-imenu-index-directory
               (featurep 'semantic/db)
               (semanticdb-minor-mode-p))
          (semantic-create-imenu-directory-index
	   (or stream (semantic-fetch-tags-fast)))
        (semantic-create-imenu-index-1
	 (or stream (semantic-fetch-tags-fast)) nil))
    (add-hook 'semantic-after-toplevel-cache-change-hook
              #'semantic-imenu-flush-fcn nil t)
    (add-hook 'semantic-after-partial-cache-change-hook
              #'semantic-imenu-flush-fcn nil t)))