Function: org-babel-comint-async-delete-dangling-and-eval
org-babel-comint-async-delete-dangling-and-eval is a macro defined in
ob-comint.el.gz.
Signature
(org-babel-comint-async-delete-dangling-and-eval SESSION-BUFFER &rest BODY)
Documentation
Remove dangling text in SESSION-BUFFER and evaluate BODY.
This is analogous to org-babel-comint-with-output, but meant
for asynchronous output, and much shorter because inserting the
result is delegated to org-babel-comint-async-filter.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-comint.el.gz
(defmacro org-babel-comint-async-delete-dangling-and-eval
(session-buffer &rest body)
"Remove dangling text in SESSION-BUFFER and evaluate BODY.
This is analogous to `org-babel-comint-with-output', but meant
for asynchronous output, and much shorter because inserting the
result is delegated to `org-babel-comint-async-filter'."
(declare (indent 1) (debug t))
`(org-babel-comint-in-buffer ,session-buffer
(goto-char (process-mark (get-buffer-process (current-buffer))))
(delete-region (point) (point-max))
,@body))