From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: return link to :file when using #+call Date: Wed, 05 Jan 2011 23:28:00 -0700 Message-ID: <87oc7ueebz.fsf@gmail.com> References: <20101231000534.3e9e97ea@bill> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=55576 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PajKT-0003mE-5Q for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 01:28:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PajKS-0003m8-4x for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 01:28:09 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:35189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PajKR-0003m2-U5 for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 01:28:08 -0500 Received: by iwn40 with SMTP id 40so17854507iwn.0 for ; Wed, 05 Jan 2011 22:28:07 -0800 (PST) In-Reply-To: (Myles English's message of "Sat, 1 Jan 2011 22:57:02 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Myles English Cc: emacs-orgmode@gnu.org Hi Myles, Currently I believe the best option is the solution you posted below, the file name is repeated because both the code block and the call line need to know the file name to create the file and the link respectively. Cheers -- Eric Myles English writes: > Myles English gmail.com> writes: > >> #+source: foo() >> #+begin_src R :file bar.png >> plot(1,1) >> #+end_src > > This works but I have to repeat the filename: > > #+call: foo[:file baz.png]() :file baz.png > > #+results: foo[:file baz.png]() > [[file:baz.png]] > > Myles > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode