Function: semantic-throw-on-input
semantic-throw-on-input is a macro defined in fw.el.gz.
Signature
(semantic-throw-on-input FROM)
Documentation
Exit with throw when in semantic-exit-on-input on user input.
FROM is an indication of where this function is called from as a value
to pass to throw. It is recommended to use the name of the function
calling this one.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/fw.el.gz
(defmacro semantic-throw-on-input (from)
"Exit with `throw' when in `semantic-exit-on-input' on user input.
FROM is an indication of where this function is called from as a value
to pass to `throw'. It is recommended to use the name of the function
calling this one."
`(when (and semantic-current-input-throw-symbol
(or (input-pending-p)
(with-current-buffer
(marker-buffer semantic--on-input-start-marker)
;; Timers might run during accept-process-output.
;; If they redisplay, point must be where the user
;; expects. (Bug#15045)
(save-excursion
(goto-char semantic--on-input-start-marker)
(accept-process-output)))))
(throw semantic-current-input-throw-symbol ,from)))