From: Dushyant Juneja <juneja.dushyant@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Issue with :cache yes
Date: Wed, 26 Oct 2016 05:49:13 +0000 [thread overview]
Message-ID: <CAJkb0UNcZe3eGbEfPyKMMg_Jwz7MGT1ds7hZ=zaJJWii0faoTg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1770 bytes --]
Hi,
I have an org file (as below) with pre-computed outputs already available
in the RESULTS drawer:
######################################################
#+OPTIONS: ':t *:t -:t ::t <:t H:3 \n:nil ^:{} arch:headline author:t
#+OPTIONS: c:nil creator:nil d:(not "LOGBOOK") date:t e:t email:nil
#+OPTIONS: f:t inline:t num:t p:nil pri:nil prop:nil stat:t tags:t
#+OPTIONS: tasks:t tex:t timestamp:t title:t toc:nil todo:t |:t
#+TITLE: Using cache in org-babel
#+DATE: <2016-10-26 Wed>
#+AUTHOR: Dushyant.Juneja
#+EMAIL: djuneja@djuneja-vd1
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 25.1.1 (Org mode 8.3.6)
# PROPERTY: cache yes
Trying to use cache in org mode.
#+name: execBlk1
#+BEGIN_SRC sh :shebang #!/bin/sh :var args="defVal" :exports results
:results verbatim :cache yes
date
sleep 30
echo $args
date
#+END_SRC
#+RESULTS[69b2da29c266b8bb5157905519c7afe157575196]: execBlk1
: Wed Oct 26 11:10:11 IST 2016
: defVal
: Wed Oct 26 11:10:41 IST 2016
* New Heading
#+call: execBlk1( "newHeading" ) :cache yes
#+RESULTS[b49b6acbaa204c4bff632070f1e0a1b686b7a8e2]:
: Wed Oct 26 11:12:01 IST 2016
: newHeading
: Wed Oct 26 11:12:31 IST 2016
######################################################
However, when I try to export it to ascii (C-c C-e t A), I get the
following error:
######################################################
org-babel-exp process sh at line 16...
mapcar: Wrong type argument: listp, "args=\"newHeading\""
######################################################
Is there something wrong in my use-model? I am basically trying to avoid
re-evaluating code blocks during export, if I already have them evaluated
in my buffer.
This happens with #+PROPERTY: cache yes as well as in-line :cache yes
Dushyant
[-- Attachment #2: Type: text/html, Size: 2587 bytes --]
next reply other threads:[~2016-10-26 5:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 5:49 Dushyant Juneja [this message]
2016-10-26 7:37 ` Issue with :cache yes Ulrich J. Herter
2016-10-26 9:17 ` Dushyant Juneja
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='CAJkb0UNcZe3eGbEfPyKMMg_Jwz7MGT1ds7hZ=zaJJWii0faoTg@mail.gmail.com' \
--to=juneja.dushyant@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).