Function: semantic-exit-on-input

semantic-exit-on-input is a macro defined in fw.el.gz.

Signature

(semantic-exit-on-input SYMBOL &rest FORMS)

Documentation

Using SYMBOL as an argument to throw, execute FORMS.

If FORMS includes a call to semantic-throw-on-input, then if a user presses any key during execution, this form macro will exit with the value passed to semantic-throw-on-input. If FORMS completes, then the return value is the same as progn.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/fw.el.gz
(defmacro semantic-exit-on-input (symbol &rest forms)
  "Using SYMBOL as an argument to `throw', execute FORMS.
If FORMS includes a call to `semantic-throw-on-input', then
if a user presses any key during execution, this form macro
will exit with the value passed to `semantic-throw-on-input'.
If FORMS completes, then the return value is the same as `progn'."
  (declare (indent 1) (debug def-body))
  `(let ((semantic-current-input-throw-symbol ,symbol)
         (semantic--on-input-start-marker (point-marker)))
     (catch ,symbol
       ,@forms)))