Function: vc-run-delayed-success

vc-run-delayed-success is a macro defined in vc-dispatcher.el.gz.

Signature

(vc-run-delayed-success OKSTATUS &rest BODY)

Documentation

Execute BODY when the current buffer's process exits successfully.

This means the current buffer's process exits normally (i.e., does not die to a signal) with status not exceeding OKSTATUS. If the current buffer has no process, execute BODY immediately.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-dispatcher.el.gz
(defmacro vc-run-delayed-success (okstatus &rest body)
  "Execute BODY when the current buffer's process exits successfully.
This means the current buffer's process exits normally (i.e., does not
die to a signal) with status not exceeding OKSTATUS.
If the current buffer has no process, execute BODY immediately."
  (declare (indent 1) (debug (def-body)))
  `(vc-exec-after (lambda () ,@body) ,okstatus))