From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: [BABEL] BUG: Can't pass format string (-F) to ledger
Date: Mon, 16 May 2011 12:21:49 +0100 [thread overview]
Message-ID: <87liy6q4aa.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <20110514144115.GA416@kenny.fritz.box> (Viktor Rosenfeld's message of "Sat, 14 May 2011 16:41:15 +0200")
[-- Attachment #1: Type: text/plain, Size: 400 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix problems with percent signs in command line arguments --]
[-- Type: text/x-diff, Size: 507 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 127 bytes --]
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.284.g2a8fb.dirty)
next prev parent reply other threads:[~2011-05-16 11:22 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 [this message]
2011-05-16 17:50 ` Viktor Rosenfeld
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=87liy6q4aa.fsf@pinto.chemeng.ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--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).