guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using guile (running on a port) in Org Mode


From: Zelphir Kaltstahl
Subject: Re: Using guile (running on a port) in Org Mode
Date: Fri, 15 Jul 2022 14:57:15 +0000

Hello Munyoki!

On 7/15/22 16:44, Munyoki Kilyungi wrote:
Tim Van den Langenbergh <tmt_vdl@gmx.com>
anaandika:

Munyoki Kilyungi <me@bonfacemunyoki.com> writes:

[[PGP Signed Part:Undecided]]

Hi Guilers!

Recently I worked out a way to point an org src
block to any python environment I want:
<https://www.bonfacemunyoki.com/post/2022-07-12-gnu-guix-org-mode-guix-profiles/>.
WRT to scheme code, is there a way to tell a
scheme source block to run a guile interpreter
that runs on a given port?
Hello there,

it's been a little while since I looked at the ob-scheme code, but I believe
that you should be able to use an existing Geiser session as the execution
session for your Org buffer.  So if you connect Geiser to a running Guile
instance, give the Geiser buffer a unique name, and use that name as the
session parameter for your src block (plus or minus earmuffs) I think it should
work.

So I've renamed my buffer to "GUILE"

and now I have this:

#+begin_src scheme :results output :session "GUILE"
(+ 1 1)
#+end_src

But I get:

#+RESULTS:
: Geiser Interpreter produced no output

Anything I'm doing wrong?  I'll look into the
ob-scheme source later though.  Perhaps I'll find
answers there.

I think you are facing the same problem I faced: https://gitlab.com/emacs-geiser/guile/-/issues/21

Long story short: ob-scheme needs a patch applied, and your version of ob-scheme probably does not have it yet.

Best regards,
Zelphir


--
repositories: https://notabug.org/ZelphirKaltstahl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]