Function: semanticdb-revert-hook
semanticdb-revert-hook is a byte-compiled function defined in
db-mode.el.gz.
Signature
(semanticdb-revert-hook)
Documentation
Hook run before a revert buffer.
We can't track incremental changes due to a revert, so just clear the cache. This will prevent the next batch of hooks from wasting time parsing things that don't need to be parsed.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/db-mode.el.gz
(defun semanticdb-revert-hook ()
"Hook run before a revert buffer.
We can't track incremental changes due to a revert, so just clear the cache.
This will prevent the next batch of hooks from wasting time parsing things
that don't need to be parsed."
(if (and (semantic-active-p)
semantic--buffer-cache
semanticdb-current-table)
(semantic-clear-toplevel-cache)))