From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Minshall Subject: Re: parameterizing keyword values during a #+call Date: Fri, 26 Apr 2013 07:46:11 -0400 Message-ID: <96905.1366976771@greg-minshalls-mbp.local> References: <87txmuhyvq.fsf@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVh6V-0001fi-RN for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 07:46:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVh6T-0001fL-0V for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 07:46:15 -0400 Received: from relay01.pair.com ([209.68.5.15]:4383) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UVh6S-0001f8-PJ for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 07:46:12 -0400 In-reply-to: Your message of "Thu, 25 Apr 2013 19:19:37 -0600." <87txmuhyvq.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org Eric, thanks! > Something like the following should work. > > #+call: disc[:file (if (and (boundp org-export-current-backend) (equal org-export-current-backend 'html)) "foo.svg" "foo.tex")]() :results file in fact, with the new exporter, org-export-current-backend has bit the dust, but apparently the non-architected "backend" exists. the following works great!! ---- #+call: discs[:file (if (and (boundp 'backend) (equal backend 'html)) "fox.svg" "fox.pdf")]() :results file ---- (note the tick in the (boundp 'backend)). now to wedge it into some init code. cheers, Greg