* :cache and :results drawer don't get along?
@ 2018-09-06 18:01 tomas
0 siblings, 0 replies; only message in thread
From: tomas @ 2018-09-06 18:01 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]
Hi, Org gurus
I'm using Org 9.1.9, as it comes with Emacs 27.0.50, freshly compiled
from sources.
I'm having a hard time referencing a cached result when it's in
a drawer (I like to wrap my results in a drawer).
Before I file a bug report, I'd make sure that I am not doing
something obviously stupid.
Best with an example:
* with drawer
No cache, with drawer:
#+NAME: with-drawer
#+BEGIN_SRC emacs-lisp :results drawer
42
#+END_SRC
#+RESULTS: with-drawer
:RESULTS:
42
:END:
#+NAME: check-with-drawer
#+BEGIN_SRC emacs-lisp :var thing=with-drawer
thing
#+END_SRC
#+RESULTS: check-with-drawer
: 42
So far, so good
* drawer and cache:
Cached results in a drawer:
#+NAME: cached-with-drawer
#+BEGIN_SRC emacs-lisp :results drawer :cache yes
42
#+END_SRC
#+RESULTS[4ba2e4b62c57298395b2f6f8d145dcc85264d192]: cached-with-drawer
:RESULTS:
42
:END:
#+NAME: check-cached-with-drawer
#+BEGIN_SRC emacs-lisp :var thing=cached-with-drawer
thing
#+END_SRC
#+RESULTS: check-cached-with-drawer
: nil
Note how the variable is nil. I tested also :cache yes _without_ a
drawer, and then it works as expected.
Am I doing something stupid?
Thanks for any insights
-- tomás
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-06 18:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-06 18:01 :cache and :results drawer don't get along? tomas
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).