On Tuesday, 16 Aug 2022 at 21:21, Ihor Radchenko wrote:
> Can you also update [Worg]

I will do so, maybe tomorrow.  I assume that's okay as it's a separate
repository?  and as I do not have submit access, I'll post a patch here,
if that's okay?

> This will set the variable globally. You may want setq-local instead.

I've put the setting into the (let ...) and it seems to work just fine.
New patch attached.

thank you,
eric
-- 
: Eric S Fraga, with org release_9.5.4-737-gd3a9c4 in Emacs 29.0.50
From dabcbd8005d5323d8a784f031b7fc5d1523b7b6d Mon Sep 17 00:00:00 2001
From: Eric S Fraga <e.fr...@ucl.ac.uk>
Date: Tue, 16 Aug 2022 17:03:33 +0100
Subject: [PATCH] lisp/ob-julia.el: Fix session support for Julia

* ob-julia.el (org-babel-julia-evaluate-session, commentary): Add line
to initialize ESS so that Julia sessions work.  Also added text in
commentary about Julia packages that sessions require.  Fix
contributed by Stephen Eglen.  See discussion:
https://stat.ethz.ch/pipermail/ess-help/2022-August/013113.html.
---
 lisp/ob-julia.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/ob-julia.el b/lisp/ob-julia.el
index 7f25fafad..6b2f59354 100644
--- a/lisp/ob-julia.el
+++ b/lisp/ob-julia.el
@@ -26,6 +26,9 @@
 ;; Org-Babel support for evaluating julia code
 ;;
 ;; Based on ob-R.el by Eric Schulte and Dan Davison.
+;;
+;; Session support requires the installation of the DataFrames and CSV
+;; Julia packages.
 
 ;;; Code:
 (require 'cl-lib)
@@ -281,7 +284,8 @@ last statement in BODY, as elisp."
     (value
      (with-temp-buffer
        (insert (org-babel-chomp body))
-       (let ((ess-local-process-name
+       (let ((ess-local-customize-alist t)
+             (ess-local-process-name
 	      (process-name (get-buffer-process session)))
 	     (ess-eval-visibly-p nil))
 	 (ess-eval-buffer nil)))
-- 
2.30.2

Reply via email to