From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [BABEL] BUG: Can't pass format string (-F) to ledger Date: Mon, 16 May 2011 12:21:49 +0100 Message-ID: <87liy6q4aa.fsf@pinto.chemeng.ucl.ac.uk> References: <20110514144115.GA416@kenny.fritz.box> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLvs9-0002G6-T9 for emacs-orgmode@gnu.org; Mon, 16 May 2011 07:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLvs8-0007Jz-UA for emacs-orgmode@gnu.org; Mon, 16 May 2011 07:22:01 -0400 Received: from vscani-e.ucl.ac.uk ([144.82.108.33]:47691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLvs8-0007Jr-MO for emacs-orgmode@gnu.org; Mon, 16 May 2011 07:22:00 -0400 Received: from pinto.chemeng.ucl.ac.uk ([128.40.74.171] helo=localhost) by vscani-e.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1QLvrx-0005hB-Tw for emacs-orgmode@gnu.org; Mon, 16 May 2011 12:21:49 +0100 In-Reply-To: <20110514144115.GA416@kenny.fritz.box> (Viktor Rosenfeld's message of "Sat, 14 May 2011 16:41:15 +0200") 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Viktor Rosenfeld writes: > Hi, > > I'm having trouble passing format strings (-F) to ledger using > org-babel. When I pass -F to :cmdline, I get the following error: > > Not enough arguments for format string. yes, sorry, this is an error in formatting a message which doesn't actually do anything. Can somebody please apply the attached patch? Thanks, eric --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=ob-ledger-fix-message.patch Content-Description: fix problems with percent signs in command line arguments diff --git a/lisp/ob-ledger.el b/lisp/ob-ledger.el index e2709a7..e678137 100644 --- a/lisp/ob-ledger.el +++ b/lisp/ob-ledger.el @@ -52,7 +52,7 @@ called by `org-babel-execute-src-block'." (in-file (org-babel-temp-file "ledger-")) (out-file (org-babel-temp-file "ledger-output-"))) (with-temp-file in-file (insert body)) - (message (concat "ledger" + (message "%s" (concat "ledger" " -f " (org-babel-process-file-name in-file) " " cmdline)) (with-output-to-string --=-=-= Content-Type: text/plain -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.284.g2a8fb.dirty) --=-=-=--