From: Viktor Rosenfeld <listuser36@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BABEL] BUG: Can't pass format string (-F) to ledger
Date: Mon, 16 May 2011 19:50:39 +0200 [thread overview]
Message-ID: <20110516175039.GA17396@kenny.fritz.box> (raw)
In-Reply-To: <87liy6q4aa.fsf@pinto.chemeng.ucl.ac.uk>
Hi Eric,
I applied your patch locally and can confirm that it works.
Thank you,
Viktor
Eric S Fraga wrote:
> Viktor Rosenfeld <listuser36@googlemail.com> 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)
prev parent reply other threads:[~2011-05-16 17:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-14 14:41 [BABEL] BUG: Can't pass format string (-F) to ledger Viktor Rosenfeld
2011-05-16 11:21 ` Eric S Fraga
2011-05-16 17:50 ` Viktor Rosenfeld [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110516175039.GA17396@kenny.fritz.box \
--to=listuser36@googlemail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).