From: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
To: Munyoki Kilyungi <me@bonfacemunyoki.com>
Cc: guile-user@gnu.org, Tim Van den Langenbergh <tmt_vdl@gmx.com>
Subject: Re: Using guile (running on a port) in Org Mode
Date: Fri, 15 Jul 2022 14:57:15 +0000 [thread overview]
Message-ID: <a35d249c-f0fb-5a18-0e66-809da0de334e@posteo.de> (raw)
In-Reply-To: <86fsj2zb99.fsf@bonfacemunyoki.com>
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
next prev parent reply other threads:[~2022-07-15 14:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 12:03 Using guile (running on a port) in Org Mode Munyoki Kilyungi
2022-07-15 12:48 ` Tim Van den Langenbergh
2022-07-15 14:44 ` Munyoki Kilyungi
2022-07-15 14:57 ` Zelphir Kaltstahl [this message]
2022-07-16 19:19 ` Munyoki Kilyungi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a35d249c-f0fb-5a18-0e66-809da0de334e@posteo.de \
--to=zelphirkaltstahl@posteo.de \
--cc=guile-user@gnu.org \
--cc=me@bonfacemunyoki.com \
--cc=tmt_vdl@gmx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).