From ab249b7f518115f8dfd85191a64656f8f40ab58e Mon Sep 17 00:00:00 2001 From: Jack Kamm Date: Mon, 21 Oct 2024 20:22:00 -0700 Subject: [PATCH] NEWS entry for the new argument of org-babel-comint-async-register The optional argument was added on bugfix branch, but we are adding this extra NEWS entry on main. See also: https://list.orgmode.org/875xpnrubg.fsf@localhost/T/#m179d313e1db284ff28eb4098129bb49418824a25 --- etc/ORG-NEWS | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 5d421172f..17ffc4068 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -186,6 +186,24 @@ accept the INFO channel and return a string. This makes it possible to dynamically generate the content of the resulting ~~ tag in the resulting HTML document. +*** ~org-babel-comint-async-register~: Added argument to specify prompt handling + +The new argument ~prompt-handling~ allows Babel languages to specify +how prompts should be handled when passing output to +~org-babel-comint-async-chunk-callback~. If equal to +~filter-prompts~, prompts are removed beforehand, similar to the +default behavior of ~org-babel-comint-with-output~. If equal to +~disable-prompt-filtering~, then the prompt filtering is skipped. If +unset, then the default behavior is the same as ~filter-prompts~ for +backwards compatibility. + +Prompt filtering is needed for some Babel languages, such as ob-shell, +which leave extra prompts in the output as a side effect of +evaluation. However other Babel languages, like ob-python, don't +leave extra prompts after evaluation, and skipping the prompt +filtering can be more robust for such languages (as this avoids +removing false positive prompts). + ** Miscellaneous *** Org mode no longer prevents =flyspell= from spell-checking inside =LOGBOOK= drawers -- 2.46.2