From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dushyant Juneja Subject: Issue with :cache yes Date: Wed, 26 Oct 2016 05:49:13 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c094852ee183e053fbe2f9a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzH5a-0005zr-QT for emacs-orgmode@gnu.org; Wed, 26 Oct 2016 01:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzH5Z-0004Hg-Kx for emacs-orgmode@gnu.org; Wed, 26 Oct 2016 01:49:26 -0400 Received: from mail-vk0-x233.google.com ([2607:f8b0:400c:c05::233]:36185) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bzH5Z-0004HQ-EB for emacs-orgmode@gnu.org; Wed, 26 Oct 2016 01:49:25 -0400 Received: by mail-vk0-x233.google.com with SMTP id y123so333021vka.3 for ; Tue, 25 Oct 2016 22:49:25 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" --94eb2c094852ee183e053fbe2f9a Content-Type: text/plain; charset=UTF-8 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 --94eb2c094852ee183e053fbe2f9a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 titl= e:t toc:nil todo:t |:t
#+TITLE: Using cache in org-babel
#+DATE: <2016-10-26 Wed>
#+AUTHOR: Dushyant.Juneja
<= div>#+EMAIL: djuneja@djuneja-vd1
#+LANGUAGE: en
#+SELEC= T_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emac= s 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=3D"defVal" :export= s results :results verbatim :cache yes
date
sleep 30
echo $args
date

#+END_SRC
<= div>
#+RESULTS[69b2da29c266b8bb5157905519c7afe157575196]: exe= cBlk1
: Wed Oct 26 11:10:11 IST 2016
: defVal
: Wed Oct 26 11:10:41 IST 2016

* New Heading
#+call: execBlk1( "newHeading" ) :cache yes

<= /div>
#+RESULTS[b49b6acbaa204c4bff632070f1e0a1b686b7a8e2]:
: = Wed Oct 26 11:12:01 IST 2016
: newHeading
: Wed Oct 26 = 11:12:31 IST 2016
###############################################= #######=C2=A0=C2=A0

However, when I try = to export it to ascii (C-c C-e t A), I get the following error:
<= br>
###################################################= ###=C2=A0=C2=A0
org-babel-exp process sh at line 16...<= /div>
mapcar: Wrong type argument: listp, "args=3D\"newHeadin= g\""
##################################= ####################=C2=A0=C2=A0

Is there something wrong in my use-mode= l? I am basically trying to avoid re-evaluating code blocks during export, = if I already have them evaluated in my buffer.

Thi= s happens with #+PROPERTY: cache yes as well as in-line :cache yes

Dushyant


--94eb2c094852ee183e053fbe2f9a--