ledger-mode does not colorize effective date transactions as other entries

29 views
Skip to first unread message

Guido Van Hoecke

unread,
Nov 30, 2014, 12:47:46 PM11/30/14
to ledger-cli
Hi,

ledger-mode does not colorize transactions with an effective date.
The entries here-after are displayed as shown in the small screenshot in appendix.

2014-11-29 colruyt
    k:eten:olie                     (€11.52 - €2.00)
    t:colruyt                                 €-9.52
2014-12-03=2014-11-29 colruyt
    t:colruyt                                 €35.90
    b:bkbc:cmfrt                             €-35.90
2014-12-03=2014-11-29 colruyt
    t:colruyt                                  €9.52
    b:bkbc:cmfrt                              €-9.52
2014-12-01 azg
    k:varia-k:filantropie:azg                  €7.44

This is with ledger-mode from commit db7e4fd741021bec72121f915414679d30144735 dated Sat Nov 15 21:36:34 2014 -0700.

I did not realize this earlier as I erroneously had spaces around the = character, and than colorization works as expected.

Please advise,

Guido


141130-0001.png

Craig Earls

unread,
Nov 30, 2014, 1:51:18 PM11/30/14
to ledge...@googlegroups.com
This is a known bug, I am working on it.

--

---
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.



--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

guivho

unread,
Nov 30, 2014, 4:28:20 PM11/30/14
to ledge...@googlegroups.com


On Sunday, November 30, 2014 7:51:18 PM UTC+1, Craig Earls wrote:
This is a known bug, I am working on it.

Ok Craig, it definitely isn't a showstopper, there's no hurry at all, I just felt I needed to report this.

Have a good night,

Guido

Craig Earls

unread,
Dec 1, 2014, 9:31:27 PM12/1/14
to ledge...@googlegroups.com
Should be fixed in the latest push.

Guido Van Hoecke

unread,
Dec 2, 2014, 3:19:28 AM12/2/14
to ledger-cli
Hi Craig,

I pulled the latest version from elpa (20141201.1918).

Effective date transactions that have no status mark are now colorized like other transactions. When a status marl (* or !) is present, only the dates are colorized, rest remains black.

Transactions with status marks now remain black (except the date, which is colorized).

Payees with spaces in their name have the first word in black, the rest in bold red.

I've added couple of small screenshots to illustrate the problems.

Guido
141202-0001.png
141202-0003.png
141202-0005.png
141202-0006.png

Craig Earls

unread,
Dec 2, 2014, 7:53:26 AM12/2/14
to ledge...@googlegroups.com
Thanks. What version of emacs are you using?  These exact cases are correct for me. 
--

---
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.

Douglas Philips

unread,
Dec 2, 2014, 8:10:25 AM12/2/14
to ledge...@googlegroups.com
Comment from the peanut gallery...
It seems a lot of what's going on here is rather depressing because
Craig is writing a second ledger parser in emacs. I wonder if there
might be a way to have one syntax definition that could be used to generate
both the C++ and the emacs parsing code? I'm sure it's been shot down before, but
I wanted to mention it. (As a programmer I hate seeing things implemented
twice instead of once.)

-=Doug


On 12/2/14 7:53 AM, Craig Earls wrote:
> Thanks. What version of emacs are you using? These exact cases are correct for me.
>
> On Tuesday, December 2, 2014, Guido Van Hoecke <gui...@gmail.com <mailto:gui...@gmail.com>> wrote:
>
> Hi Craig,
>
> I pulled the latest version from elpa (20141201.1918).
>
> Effective date transactions that have no status mark are now colorized like other transactions. When a status marl (* or !) is present, only the dates are colorized, rest remains black.
>
> Transactions with status marks now remain black (except the date, which is colorized).
>
> Payees with spaces in their name have the first word in black, the rest in bold red.
>
> I've added couple of small screenshots to illustrate the problems.
>
> Guido
>
> On 2 December 2014 at 03:31, Craig Earls <ende...@gmail.com <javascript:_e(%7B%7D,'cvml','ende...@gmail.com');>> wrote:
>
> Should be fixed in the latest push.
>
>
> --
>
> ---
> 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 <javascript:_e(%7B%7D,'cvml','ledger-cli%2Bunsu...@googlegroups.com');>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Craig, Corona De Tucson, AZ
> enderw88.wordpress.com <http://enderw88.wordpress.com>
>
> --
>
> ---
> 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 <mailto:ledger-cli+...@googlegroups.com>.

Craig Earls

unread,
Dec 2, 2014, 8:12:17 AM12/2/14
to ledge...@googlegroups.com
Sometimes it seems like it.  
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.

Guido Van Hoecke

unread,
Dec 2, 2014, 8:18:01 AM12/2/14
to ledger-cli
Hi Craig,

$ version
GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2014-10-21 on builder10-9.porkrind.org

which I got from http://emacsformacosx.com/


guivho

You received this message because you are subscribed to a topic in the Google Groups "Ledger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ledger-cli/cBy3-QSai6o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ledger-cli+...@googlegroups.com.

Craig Earls

unread,
Dec 2, 2014, 8:38:31 AM12/2/14
to ledge...@googlegroups.com
OK, I understand what it was doing.  I just pushed a fixed.

Guido Van Hoecke

unread,
Dec 2, 2014, 9:59:10 AM12/2/14
to ledger-cli
Hi Craig,


On 2 December 2014 at 14:38, Craig Earls <ende...@gmail.com> wrote:
OK, I understand what it was doing.  I just pushed a fixed.

​Thanks for your fast response (remember, these are nice to have, not need to have).​
 

With this new version all goes well until the first cleared transaction with an effective date.

I add a small anon.ledger file as well as a screenshot showing how it's rendered in my emacs.

​Guido

anon.ledger
141202-0007.png

Craig Earls

unread,
Dec 2, 2014, 10:01:25 AM12/2/14
to ledge...@googlegroups.com
Ugh. I need to find another hobby.  I will check this out tonight. 


On Tuesday, December 2, 2014, Guido Van Hoecke <gui...@gmail.com> wrote:
--

---
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.

Guido Van Hoecke

unread,
Dec 2, 2014, 10:06:15 AM12/2/14
to ledger-cli
Craig,

On 2 December 2014 at 16:01, Craig Earls <ende...@gmail.com> wrote:
Ugh. I need to find another hobby.  I will check this out tonight. 

:) Remember, there's no hurry!

Guido​
 


Craig Earls

unread,
Dec 2, 2014, 7:35:30 PM12/2/14
to ledge...@googlegroups.com
Crud.  The file you attached fontifies perfectly for me in Aquamacs but not in emacs24.4

--

---
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.

Craig Earls

unread,
Dec 2, 2014, 8:08:32 PM12/2/14
to ledge...@googlegroups.com
Fixed.

Guido Van Hoecke

unread,
Dec 3, 2014, 5:59:00 AM12/3/14
to ledger-cli
Thanks Craig, works like a charm :)

Fixed.
You received this message because you are subscribed to a topic in the Google Groups "Ledger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ledger-cli/cBy3-QSai6o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ledger-cli+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages