[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/org 84fa57ad1f: org-babel-insert-result: Do not
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/org 84fa57ad1f: org-babel-insert-result: Do not modify RESULT for side effects |
Date: |
Tue, 24 Oct 2023 06:58:46 -0400 (EDT) |
branch: externals-release/org
commit 84fa57ad1f89fea675d0353043f3c0d4c4111102
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@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 <edaskel@att.net>
Link:
https://orgmode.org/list/CAF_DUeEYVMytS=V2_aGjLyhddVZaPd7FWG_5Sbys6qcB0zGnyw@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals-release/org 84fa57ad1f: org-babel-insert-result: Do not modify RESULT for side effects,
ELPA Syncer <=