branch: externals/org commit 1d8dbae5f883db3157cbb1c6da763dbe35811804 Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
org-babel: Do not treat :results drawer verbatim * lisp/ob-core.el (org-babel-result-cond): Do not try to interpret :results drawer verbatim. :results drawer is only controlling how the results are written to the buffer, not how they are parsed. * etc/ORG-NEWS (Org mode no longer treats =:results drawer= as verbatim output): Announce the breaking change. Reported-by: Vincent Koppelmans <vincentkoppelm...@gmail.com> Link: https://orgmode.org/list/87fre1ldd6.fsf...@gmail.com --- etc/ORG-NEWS | 9 +++++++++ lisp/ob-core.el | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 08d2bd9381..af0408142b 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -133,6 +133,15 @@ to your configuration. The new behaviour follows general babel backend rules (auto-detecting result type), but may affect the existing usage. +*** Org mode no longer treats =:results drawer= as verbatim output + +Previously, =:results drawer= left the code block results verbatim in +some scenarios. This is no longer the case, in line with the manual +and the intended purpose of this option. However, the fix may have +brought subtle changes in the code block output for users who made use +of the previous erroneous behavior. If you use =:results drawer= in your +Org documents, please watch out for potential changes in the code evaluation. + ** New features # We list the most important features, and the features that may diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 326a9a8572..1402827e4a 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -3549,8 +3549,7 @@ Execute TABLE-FORMS when result should be considered sexp and parsed." (member "file" ,params) (and (or (member "output" ,params) (member "raw" ,params) - (member "org" ,params) - (member "drawer" ,params)) + (member "org" ,params)) (not (member "table" ,params)))) ,scalar-form ,@table-forms)))))