[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-babel guile source block bug in handling multiple values
From: |
Bruno Barbier |
Subject: |
Re: org-babel guile source block bug in handling multiple values |
Date: |
Wed, 08 Mar 2023 20:38:09 +0100 |
Hi Zelphir,
Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:
> On 3/7/23 20:52, Bruno Barbier wrote:
> Also thanks for the idea with sessions + separate import source block. I
> thought
> that should work, but apparently that also has the same error, when running
> for
> the first time:
>
> ...
Oh, I see. I tested something way simpler :-)
First, one block to open and configure the guile session.
#+begin_src scheme :session "!guile" :results silent
(import (except (rnrs base) error vector-map)
(only (guile)
lambda*
λ)
;; let-values
(srfi srfi-11))
#+end_src
Then, you can get to work and evaluate as many blocks as you like in
that session:
#+begin_src scheme :session "!guile" :results output replace drawer :var
x=1 :var y=2
(let-values ([(a b) (values x y)])
(simple-format #t "~a ~a\n" a b))
#+end_src
#+RESULTS:
:results:
1 2
:end:
Bruno
- org-babel guile source block bug in handling multiple values, Zelphir Kaltstahl, 2023/03/07
- Re: org-babel guile source block bug in handling multiple values, Ihor Radchenko, 2023/03/07
- Re: org-babel guile source block bug in handling multiple values, Zelphir Kaltstahl, 2023/03/07
- Re: org-babel guile source block bug in handling multiple values, Bruno Barbier, 2023/03/07
- Re: org-babel guile source block bug in handling multiple values, Zelphir Kaltstahl, 2023/03/07
- Re: org-babel guile source block bug in handling multiple values,
Bruno Barbier <=
- Re: org-babel guile source block bug in handling multiple values, Zelphir Kaltstahl, 2023/03/08
- [BUG] Inconsistent global/local :var assignments in ob-* for lisps and non-lisps (was: org-babel guile source block bug in handling multiple values), Ihor Radchenko, 2023/03/09
- Re: [BUG] Inconsistent global/local :var assignments in ob-* for lisps and non-lisps (was: org-babel guile source block bug in handling multiple values), Zelphir Kaltstahl, 2023/03/10
- Re: [BUG] Inconsistent global/local :var assignments in ob-* for lisps and non-lisps (was: org-babel guile source block bug in handling multiple values), Ihor Radchenko, 2023/03/11
- Re: [BUG] Inconsistent global/local :var assignments in ob-* for lisps and non-lisps (was: org-babel guile source block bug in handling multiple values), Zelphir Kaltstahl, 2023/03/11
- Re: [BUG] Inconsistent global/local :var assignments in ob-* for lisps and non-lisps (was: org-babel guile source block bug in handling multiple values), Ihor Radchenko, 2023/03/12
- [PATCH] lisp/ob-scheme.el, Zelphir Kaltstahl, 2023/03/19
- Re: [PATCH] lisp/ob-scheme.el, Ihor Radchenko, 2023/03/22
- Re: [PATCH] lisp/ob-scheme.el, Zelphir Kaltstahl, 2023/03/25
- Re: [PATCH] lisp/ob-scheme.el, Ihor Radchenko, 2023/03/26