[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-babel guile source block bug in handling multiple values
From: |
Ihor Radchenko |
Subject: |
Re: org-babel guile source block bug in handling multiple values |
Date: |
Wed, 08 Mar 2023 08:55:06 +0000 |
Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:
> Actually, now that I think about it, the whole problem is gone, when
> replacing
> the wrapping let with 2 separate (define ...), which I originally thought org
> would do:
> ...
> Is there a reason it has to be wrapped in a let, instead of simply define-ing
> the variables?
Because (define ...) will, AFAIU, define the variables in the whole
session, including subsequent code block calls. Let-binding is safer in
this regard - it only affects a specific code block.
For the problem of (import ...), a similar problem is solved by ob-C
using :includes header argument. See
https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-C.html
I am not yet sure if let-binding around (import ...) must never be done
in Guile. It would be helpful of someone more familiar with Guile chimes
in.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: [PATCH] lisp/ob-scheme.el, (continued)
- Re: org-babel guile source block bug in handling multiple values, Ihor Radchenko, 2023/03/09
- Re: org-babel guile source block bug in handling multiple values, Zelphir Kaltstahl, 2023/03/10
- Re: org-babel guile source block bug in handling multiple values, Ihor Radchenko, 2023/03/11
- Re: org-babel guile source block bug in handling multiple values, Ihor Radchenko, 2023/03/09
- Re: org-babel guile source block bug in handling multiple values, Daniel Kraus, 2023/03/09
- Re: org-babel guile source block bug in handling multiple values, Ihor Radchenko, 2023/03/10
- Re: org-babel guile source block bug in handling multiple values, Zelphir Kaltstahl, 2023/03/10
- 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,
Ihor Radchenko <=
Re: org-babel guile source block bug in handling multiple values, Max Nikulin, 2023/03/07
Re: org-babel guile source block bug in handling multiple values, Rudolf Adamkovič, 2023/03/07