Function: org-babel-comint-eval-invisibly-and-wait-for-file
org-babel-comint-eval-invisibly-and-wait-for-file is a byte-compiled
function defined in ob-comint.el.gz.
Signature
(org-babel-comint-eval-invisibly-and-wait-for-file BUFFER FILE STRING &optional PERIOD)
Documentation
Evaluate STRING in BUFFER invisibly.
Don't return until FILE exists. Code in STRING must ensure that FILE exists at end of evaluation.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-comint.el.gz
(defun org-babel-comint-eval-invisibly-and-wait-for-file
(buffer file string &optional period)
"Evaluate STRING in BUFFER invisibly.
Don't return until FILE exists. Code in STRING must ensure that
FILE exists at end of evaluation."
(unless (org-babel-comint-buffer-livep buffer)
(error "Buffer %s does not exist or has no process" buffer))
(when (file-exists-p file) (delete-file file))
(process-send-string
(get-buffer-process buffer)
(if (= (aref string (1- (length string))) ?\n) string (concat string "\n")))
(while (not (file-exists-p file)) (sit-for (or period 0.25))))