From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Unable to reuse the result of a cached function call as argument of a gnuplot call Date: Sat, 04 Jul 2015 15:09:17 +0200 Message-ID: <87oajsf4si.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBNAc-0000Az-1d for emacs-orgmode@gnu.org; Sat, 04 Jul 2015 09:07:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBNAa-0003m1-Tf for emacs-orgmode@gnu.org; Sat, 04 Jul 2015 09:07:49 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:38604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBNAa-0003lb-N7 for emacs-orgmode@gnu.org; Sat, 04 Jul 2015 09:07:48 -0400 In-Reply-To: (bernardH's message of "Wed, 10 Jun 2015 18:30:22 +0000 (UTC)") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: bernardH Cc: emacs-orgmode@gnu.org Hello, bernardH writes: > Now a cached call. > > #+name: my-call-cached > #+call: fun[:results table](nb=5) :cache yes > > #+RESULTS[f2b650eb5296f72a1f7237c2a65b7fb3443acf5f]: my-call-cached > | 1 | 2 | > | 3 | 4 | > | 5 | 6 | > | 7 | 8 | > | 9 | 10 | [...] > But if I try to use the cached call : > > #+name: plot-result-cached > #+call: plotting[:file result-call-cached.png](data= my-call-cached) :results file Why can't you simply use the (cached) results of my-call instead of the call itself, e.g.: #+name: my-call-cached #+call: fun[:results table](nb=5) :cache yes #+name: my-cached-results #+RESULTS[f2b650eb5296f72a1f7237c2a65b7fb3443acf5f]: my-call-cached | 1 | 2 | | 3 | 4 | | 5 | 6 | | 7 | 8 | | 9 | 10 | #+name: plot-result-cached #+call: plotting[:file result-call-cached.png](data= my-cached-results) :results file Regards, -- Nicolas Goaziou