From 795cc0ebe637aa4ff148c495cf5403ba2baec242 Mon Sep 17 00:00:00 2001 From: Jeremie Juste Date: Mon, 27 Sep 2021 22:02:17 +0200 Subject: [PATCH] ob-R.el: Patch async evaluation when :results output * lisp/ob-R.el (ob-session-async-org-babel-R-evaluate-session): Make sure that 'ess-eval-visibly' is nil before evaluating the temporary buffer, but return ess-eval-visibly to it's original state afterwards. --- lisp/ob-R.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 299ccdf1d..188b9ac8f 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -526,8 +526,11 @@ by `org-babel-comint-async-filter'." (insert body) (insert "\n") (insert (format ob-session-async-R-indicator - "end" uuid)) + "end" uuid)) + (setq tmp ess-eval-visibly) + (setq ess-eval-visibly nil) (ess-eval-buffer nil)) + (setq ess-eval-visibly tmp) uuid)))) (defun ob-session-async-R-value-callback (params tmp-file) -- 2.30.2