From: Ihor Radchenko <yantar92@posteo.net>
To: Emin Martinian <emin.martinian@gmail.com>
Cc: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <87fs73ctyk.fsf@localhost> (raw)
In-Reply-To: <87r0qt67z7.fsf@gmail.com>
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>
prev parent reply other threads:[~2023-06-07 12:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-02 18:04 Bug: using :wrap src interferes with :cache yes with :var [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] Emin Martinian
2023-06-07 12:55 ` Ihor Radchenko [this message]
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fs73ctyk.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=emin.martinian@gmail.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).