emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Issue with :cache yes


From: Dushyant Juneja
Subject: [O] Issue with :cache yes
Date: Wed, 26 Oct 2016 05:49:13 +0000

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: address@hidden
#+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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]