emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Turoff <adam.turoff@gmail.com>
To: Adam Turoff <adam.turoff@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Problems with including ledger files in org-babel
Date: Mon, 12 May 2014 12:32:37 -0400	[thread overview]
Message-ID: <CAOmtXAeY32NanR6Tw-vkv96NcuRNdpqW5amnv96V_K888bqdjA@mail.gmail.com> (raw)
In-Reply-To: <87a9anmf83.fsf@pinto.chemeng.ucl.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]

I've tried that, and that doesn't fix the problem.

I'm testing it now on another system, and this actually works (ledger.lgr
and the org file are in the same directory):

#+begin_src ledger :cmdline -f .ledger.lgr print
#+end_src

It seems like there's some issue with ledger not loading properly, and the
error appears to be eaten by org-babel.  Is there any way to debug what
org-babel is seeing here?

Also, I prefer using hledger over ledger. Is that a customizable option in
ob-ledger?

Thanks,

-- Adam


On Mon, May 12, 2014 at 7:03 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> On Monday, 12 May 2014 at 03:27, Adam Turoff wrote:
> > I'm trying to prepare a ledger report by including a ledger file with
> babel:
> >
> > #+begin_src ledger :cmdline print
> > !include ledger.lgr
> > #+end_src
>
> I would suggest you try specifying the full path to the ledger file,
> i.e. one starting with / (assuming you're using Linux, say).  Babel
> executes in another directory potentially and this could be the source
> of the problem.
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-949-g751506
>

[-- Attachment #2: Type: text/html, Size: 2070 bytes --]

  reply	other threads:[~2014-05-12 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12  7:27 Problems with including ledger files in org-babel Adam Turoff
2014-05-12 11:03 ` Eric S Fraga
2014-05-12 16:32   ` Adam Turoff [this message]
2014-05-12 20:28     ` Samuel Wales
2014-05-13  1:18       ` Adam Turoff

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=CAOmtXAeY32NanR6Tw-vkv96NcuRNdpqW5amnv96V_K888bqdjA@mail.gmail.com \
    --to=adam.turoff@gmail.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).