ledger binary location problem with emacs ledger-mode

497 views
Skip to first unread message

Will Monroe

unread,
Sep 22, 2014, 11:49:49 AM9/22/14
to ledge...@googlegroups.com
Hello,

I'm encountering an error when I attempt to run ledger-mode in Emacs
that I have not encountered before:

> File mode specification error: (file-error "Searching for program"
"No such file or directory" "ledger")

I've been using ledger-cli 3.0 for the last three months on OSX 10.9
without any problem. When I go to terminal, I'm able to use "which
ledger" to find ledger-cli at /opt/local/bin/ledger without any
trouble. I can obtain man pages, get help, and run ledger itself
without any trouble. But Emacs can no longer find it. A quick search
of the ledger-cli archives didn't yield any results. The ledger-mode
FAQ doesn't seem to have any information about how to declare the
location of ledger either.

I know this is a very novice error but I'm not sure how to troubleshoot
it. Does anyone have advice on the next step I should take?

Thank you kindly,

Will

Andrew Schwartzmeyer

unread,
Sep 22, 2014, 1:38:02 PM9/22/14
to ledge...@googlegroups.com
Since you know the path to ledger, you could customize 'ledger-binary-path’.

> Thank you kindly,
>
> Will
>
> --
>
> --- You received this message because you are subscribed to the Google Groups "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Monroe, Will

unread,
Sep 22, 2014, 5:13:16 PM9/22/14
to ledge...@googlegroups.com
Thanks so much, Andrew. I'll give that a try.

I've noticed something else regarding ledger-mode on another device
running Ubuntu 14.04 rather than OSX 10.9 that's puzzling though. Even
though my Emacs can find ledger on Ubuntu machine and will run basic
tasks (e.g., balance, add new transactions, etc.) it does not
"highlight" transactions anymore. So now this lack of highlight is
appearing on both machines. I would expect this to be a problem if
Emacs couldn't find ledger. But that's not the case on my other Ubuntu
laptop.

I'd like to roll back my ledger-mode to an earlier version but I can't
locate prior versions of ledger-mode anywhere. Does anyone know where
to find those?

Will

Craig Earls

unread,
Sep 22, 2014, 5:22:55 PM9/22/14
to ledge...@googlegroups.com
I just updated the fontification code. By default cleared transaction are greyed out. Open transactions have full highlighting. If you don't like that there is a customization variable that I can't recall right now. Please let me know if that is the problem. 
--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

Johann Klähn

unread,
Sep 22, 2014, 5:25:12 PM9/22/14
to ledge...@googlegroups.com

On Sep 22, 2014 11:13 PM, "Monroe, Will" <wtmon...@gmail.com> wrote:
> I've noticed something else regarding ledger-mode on another device running Ubuntu 14.04 rather than OSX 10.9 that's puzzling though.  Even though my Emacs can find ledger on Ubuntu machine and will run basic tasks (e.g., balance, add new transactions, etc.) it does not "highlight" transactions anymore.  So now this lack of highlight is appearing on both machines.  I would expect this to be a problem if Emacs couldn't find ledger.  But that's not the case on my other Ubuntu laptop.

Did you install leder-mode via MELPA? If you used 'make install' or similar that's a known bug (ledger-fontify.el does not get installed). I will push a fix momentarily.

Monroe, Will

unread,
Sep 22, 2014, 5:42:02 PM9/22/14
to ledge...@googlegroups.com
Thanks, Johann. I installed ledger-mode via MELPA. I tried
uninstalling it once in case it had become corrupted somehow but that
did not seem to make a difference.

Will

Monroe, Will

unread,
Sep 22, 2014, 5:48:06 PM9/22/14
to ledge...@googlegroups.com
Craig,

Thank you! That makes sense and the term (fontification) is helpful.

Actually, there is something kind of strange about the new behavior.
The greyed out text for completed transactions works as expected and new
transactions have the proper highlighting. However, when use I C-c C-a
to start a new transaction, the placement of the new transaction is kind
of suprising: it's usually way down on the ledger document somewhere
and it's never placed back in sequence. Maybe I've missed something
important in "completing" the transactions themselves?

Will

Craig Earls

unread,
Sep 22, 2014, 5:59:03 PM9/22/14
to ledge...@googlegroups.com
Please enter that as a bug. I had to rewrite the transaction navigation code to support not having empty lines between xacts. Sounds like that was a casuty. 

Erik Hetzner

unread,
Sep 22, 2014, 8:19:16 PM9/22/14
to ledge...@googlegroups.com, Monroe, Will
Hi Will,

This is what my previous email to the list was about. You need to set
ledger-fontify-xact-state-overrides to nil.

best, Erik

At Mon, 22 Sep 2014 16:13:14 -0500,
--
Sent from my free software system <http://fsf.org/>.
Reply all
Reply to author
Forward
0 new messages