emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Bug: using :wrap src interferes with :cache yes with :var [9.3 (rele


From: Ihor Radchenko
Subject: Re: Bug: using :wrap src interferes with :cache yes with :var [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]
Date: Wed, 07 Jun 2023 12:55:47 +0000

Emin Martinian <emin.martinian@gmail.com> writes:

> I think there is a bug with the `:cache' header and how results of
> evaluation are wrapped: Using `:cache yes' and wrapping the results
> prevents later blocks using the cached results.
>
> To reproduce, start with an example like the one at the bottom of the
> documentation in
> <https://orgmode.org/manual/Evaluating-Code-Blocks.html>. Then add
> something like `:wrap src R' (or `:results value drawer') to the header
> of the block named `random' and the second block produces `nil' instead
> of the desired result.

I tried to evaluate the following in various orders.

#+NAME: random
#+BEGIN_SRC R :cache yes :wrap src R
  runif(+1)
#+END_SRC

#+NAME: caller
#+BEGIN_SRC emacs-lisp :var x=random :cache yes
  x
#+END_SRC

I am unable to see any issues with the latest development version of Org.
You may try to update Org and check on your side.

Canceled, for now.

-- 
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>



reply via email to

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