From mboxrd@z Thu Jan  1 00:00:00 1970
From: Eric Schulte <eric.schulte@gmx.com>
Subject: Re: Selectively export RESULTS
Date: Fri, 02 Mar 2012 13:26:18 -0700
Message-ID: <87mx7ylpg5.fsf@gmx.com>
References: <87ty2aw7ps.fsf@tajo.ucsd.edu> <m1fwduxgpp.fsf@tsdye.com>
	<87ty29eg8n.fsf@tajo.ucsd.edu> <87boohbmch.fsf@gmx.com>
	<8762epz8uh.fsf@tajo.ucsd.edu>
	<loom.20120302T181328-40@post.gmane.org> <87mx7ynbbm.fsf@gmx.com>
	<87zkbykcxg.fsf@tajo.ucsd.edu>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:33265)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eric.schulte@gmx.com>) id 1S3Z3e-0004Wb-UJ
	for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 15:26:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eric.schulte@gmx.com>) id 1S3Z3c-0007KZ-Mw
	for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 15:26:30 -0500
Received: from mailout-us.gmx.com ([74.208.5.67]:58802)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <eric.schulte@gmx.com>) id 1S3Z3c-0007KK-H9
	for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 15:26:28 -0500
In-Reply-To: <87zkbykcxg.fsf@tajo.ucsd.edu> (cberry@tajo.ucsd.edu's message of
	"Fri, 02 Mar 2012 11:42:03 -0800")
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: cberry@tajo.ucsd.edu
Cc: emacs-orgmode@gnu.org

>
> Eric,
>
> your response is threaded as a reply to Matthew, but here you have
> replied to my comment about buffer wide PROPERTY setting of :cache.
>
> Here is an example of the difficulty I face:
>
> ,----
> | #+property: :cache yes
> | 
> | 
> | #+name: Ablock
> | #+begin_src emacs-lisp :results value :exports both 
> |   (current-time-string)
> | #+end_src
> | 
> | #+results[2ca40f0dc0f23e5743133e229d9e8f31b31830c5]: Ablock
> | : Wed Feb 29 11:57:19 2012
> | 
> | 
> | * headline 1
> |   :PROPERTIES:
> |   :cache:   no
> |   :END:
> | 
> | #+CALL: Ablock() :exports results
> | 
> `----
>
> When I place point under the headline and issue 
>
>      C-c @ C-c C-e a
>
> I get 
>
> ,----
> |                               headline 1
> |                               ==========
> | 
> | Author: 
> | Date: 2012-03-02 11:28:54 PST
> | 
> | 
> | 
> | 
> | Fri Mar  2 11:28:52 2012
> | 
> `----
>
> showing that Ablock() actually was executed.
>
> If the :cache setting under 'headline 1' is omitted then no update of
> the time string is performed.
>
> I understand that this behavior might be considered a *feature*, not a
> *bug*. 
>
> Either way, having an easy way to copy results into other parts of a
> document would help me out.
>

Hi Chuck,

You have a simple syntax error at the top of the file.  Replace 

> | #+property: :cache yes

with

> | #+property:  cache yes
                ^
(delete a colon | right there)

and you will get the behavior you are seeking.

Best,

>
> Best,
>
> Chuck

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/