From: Rick Frankel <rick@rickster.com>
To: emacs-orgmode@gnu.org
Subject: BUG: Cached named call lines
Date: Fri, 13 Mar 2015 15:55:44 -0400 [thread overview]
Message-ID: <20150313195544.GA47411@eyeBook.home> (raw)
There are bugs with calling named call lines and blocks when they are cached.
If the callee is cached, the results vary when the caller is re-evaluated.
The following file demonstrates the bug(s). Unfortunately I don't have time
right now to debug...
#+BEGIN_SRC org
,* Cached results bug
,** Tests
,*** Fails with error:
mapconcat: Wrong type argument: listp, "string=\"foo bar\""
,#+call: bad-src(string="foo bar")
,*** Fails with =nil= second time evaluated
,#+call: word(data=cached(string="bar fly"))
,*** Returns different results on second call (quotes words)
,#+call: word(data=cached-unwrapped(string="bar fly"))
,*** Works
,#+call: word(data=src(string="bar fly"))
,#+call: word(data=uncached(string="bar fly"))
,** Intermediate calls
,#+name: cached
,#+call: src(string="foo bar") :cache yes :results wrap
,#+name: uncached
,#+call: src(string="foo bar") :results wrap
,#+name: cached-unwrapped
,#+call: src(string="foo bar") :cache yes
,** Blocks
,#+name: bad-src
,#+BEGIN_SRC emacs-lisp :var string="" :cache yes
string
,#+END_SRC
This block works when called
,#+name: src
,#+BEGIN_SRC emacs-lisp :var string=""
string
,#+END_SRC
,#+name: word
,#+BEGIN_SRC emacs-lisp :var data=""
(split-string data)
#+END_SRC
#+END_SRC
reply other threads:[~2015-03-13 19:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150313195544.GA47411@eyeBook.home \
--to=rick@rickster.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.