emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [BABEL] BUG: Can't pass format string (-F) to ledger


From: Viktor Rosenfeld
Subject: Re: [O] [BABEL] BUG: Can't pass format string (-F) to ledger
Date: Mon, 16 May 2011 19:50:39 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Eric,

I applied your patch locally and can confirm that it works.

Thank you,
Viktor

Eric S Fraga wrote:

> Viktor Rosenfeld <address@hidden> 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
> 

> 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

> 
> -- 
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
> : using Org-mode version 7.5 (release_7.5.284.g2a8fb.dirty)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]