Viktor Rosenfeld <listuse...@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)

Reply via email to