Function: org-babel-comint--remove-prompts-p
org-babel-comint--remove-prompts-p is a byte-compiled function defined
in ob-comint.el.gz.
Signature
(org-babel-comint--remove-prompts-p PROMPT-HANDLING)
Documentation
Helper to decide whether to remove prompts from comint output.
Parses the symbol in PROMPT-HANDLING, which can be
filter-prompts, in which case prompts should be removed; or
disable-prompt-filtering, in which case prompt filtering is
skipped. For backward-compatibility, the default value of nil
is equivalent to filter-prompts.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-comint.el.gz
(defun org-babel-comint--remove-prompts-p (prompt-handling)
"Helper to decide whether to remove prompts from comint output.
Parses the symbol in PROMPT-HANDLING, which can be
`filter-prompts', in which case prompts should be removed; or
`disable-prompt-filtering', in which case prompt filtering is
skipped. For backward-compatibility, the default value of `nil'
is equivalent to `filter-prompts'."
(cond
((eq prompt-handling 'disable-prompt-filtering) nil)
((eq prompt-handling 'filter-prompts) t)
((eq prompt-handling nil) t)
(t (error (format "Unrecognized prompt handling behavior %s"
prompt-handling)))))