Function: semantic--set-buffer-cache

semantic--set-buffer-cache is a byte-compiled function defined in semantic.el.gz.

Signature

(semantic--set-buffer-cache TAGTABLE)

Documentation

Set the toplevel tag cache to TAGTABLE.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic.el.gz
(defun semantic--set-buffer-cache (tagtable)
  "Set the toplevel tag cache to TAGTABLE."
  (setq semantic--buffer-cache tagtable
        semantic-unmatched-syntax-cache-check nil)
  ;; This is specific to the bovine parser.
  (setq-local semantic-bovinate-nonterminal-check-obarray nil)
  (semantic-parse-tree-set-up-to-date)
  (add-hook 'after-change-functions #'semantic-change-function nil t)
  (run-hook-with-args 'semantic-after-toplevel-cache-change-hook
		      semantic--buffer-cache)
  (setq semantic--completion-cache nil)
  ;; Refresh the display of unmatched syntax tokens if enabled
  (run-hook-with-args 'semantic-unmatched-syntax-hook
                      semantic-unmatched-syntax-cache))