From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: eval header arguments for ledger :cmdline? Date: Thu, 08 Jan 2015 10:17:59 +0000 Message-ID: <87wq4xsguo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9AO5-0000EL-Fd for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 05:32:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9AO2-0003sI-At for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 05:32:21 -0500 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:61061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9AO2-0003sD-4h for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 05:32:18 -0500 Received: by mail-wi0-f177.google.com with SMTP id l15so2305892wiw.4 for ; Thu, 08 Jan 2015 02:32:17 -0800 (PST) Received: from localhost (host86-142-249-140.range86-142.btcentralplus.com. [86.142.249.140]) by mx.google.com with ESMTPSA id bs2sm5544845wjc.43.2015.01.08.02.32.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2015 02:32:16 -0800 (PST) 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: Org-mode Hello, Can anybody tell me how this could be achieved, please? I would like to use parameters for ledger[1] source code blocks, and understand that the :cmdline header argument means "pass this straight through to the command line", but effectively what I would like to do is this: #+PROPERTY: header-args :var ACC_PERIOD="-b 2013-04-06 -e 2014-04-06" BAT_FILE="myledger.bat" #+begin_src ledger :cmdline bal ACC_PERIOD -f BAT_FILE #+end_src Is something like this currently possible or does it need further development of ob-ledger.el? Any volunteers||collaborators? Myles [1] http://www.ledger-cli.org/