emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Emin Martinian <emin.martinian@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: using :wrap src interferes with :cache yes with :var [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]
Date: Fri, 02 Jun 2023 14:04:55 -0400	[thread overview]
Message-ID: <87r0qt67z7.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

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 verified the bug using `emacs -nw -q' with version 9.3 but would be
happy to send more information if the above is not enough to reproduce.

Thanks.

[-- Attachment #2: Type: text/html, Size: 2241 bytes --]

             reply	other threads:[~2023-06-06 12:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 18:04 Emin Martinian [this message]
2023-06-07 12:55 ` Bug: using :wrap src interferes with :cache yes with :var [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] Ihor Radchenko

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=87r0qt67z7.fsf@gmail.com \
    --to=emin.martinian@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).