emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG: Cached named call lines
@ 2015-03-13 19:55 Rick Frankel
  0 siblings, 0 replies; only message in thread
From: Rick Frankel @ 2015-03-13 19:55 UTC (permalink / raw)
  To: emacs-orgmode

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

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

  This block works when called
  ,#+name: src
  ,#+BEGIN_SRC emacs-lisp :var string=""

  ,#+name: word
  ,#+BEGIN_SRC emacs-lisp :var data=""
    (split-string data)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-13 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 19:55 BUG: Cached named call lines Rick Frankel

Code repositories for project(s) associated with this public inbox


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