Function: semantic-show-parser-state-marker
semantic-show-parser-state-marker is a byte-compiled function defined
in util-modes.el.gz.
Signature
(semantic-show-parser-state-marker &rest IGNORE)
Documentation
Set semantic-show-parser-state-string to indicate parser state.
This marker is one of the following:
- -> The cache is up to date.
! -> The cache requires a full update.
~ -> The cache needs to be incrementally parsed.
% -> The cache is not currently parsable.
@ -> Auto-parse in progress (not set here.)
Arguments IGNORE are ignored, and accepted so this can be used as a hook
in many situations.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/util-modes.el.gz
(defun semantic-show-parser-state-marker (&rest _ignore)
"Set `semantic-show-parser-state-string' to indicate parser state.
This marker is one of the following:
`-' -> The cache is up to date.
`!' -> The cache requires a full update.
`~' -> The cache needs to be incrementally parsed.
`%' -> The cache is not currently parsable.
`@' -> Auto-parse in progress (not set here.)
Arguments IGNORE are ignored, and accepted so this can be used as a hook
in many situations."
(setq semantic-show-parser-state-string
(cond ((semantic-parse-tree-needs-rebuild-p)
"!")
((semantic-parse-tree-needs-update-p)
"^")
((semantic-parse-tree-unparseable-p)
"%")
(t
"-")))
;;(message "Setup mode line indicator to [%s]" semantic-show-parser-state-string)
)