branch: externals-release/org
commit 84fa57ad1f89fea675d0353043f3c0d4c4111102
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-babel-insert-result: Do not modify RESULT for side effects
    
    * lisp/ob-core.el (org-babel-insert-result): In some scenarios, result
    of evaluation is a mutable Elisp string.  Avoid modifying it for side
    effects as it may affect side effects of Elisp code blocks.
    
    Reported-by: Jeff Trull <edas...@att.net>
    Link: 
https://orgmode.org/list/CAF_DUeEYVMytS=v2_agjlyhddvzapd7fwg_5sbys6qcb0zg...@mail.gmail.com
---
 lisp/ob-core.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index b111ce86c8..2df3396ee7 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -2358,7 +2358,7 @@ INFO may provide the values of these header arguments (in 
the
           using the argument supplied to specify the export block
           or snippet type."
   (cond ((stringp result)
-        (setq result (org-no-properties result))
+        (setq result (substring-no-properties result))
         (when (member "file" result-params)
           (setq result
                  (org-babel-result-to-file

Reply via email to