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

2014-12-02 Thread Guido Van Hoecke
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 ender...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-12-02 Thread Douglas Philips
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 ender...@gmail.com 
 javascript:_e(%7B%7D,'cvml','ender...@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+unsubscr...@googlegroups.com 
 javascript:_e(%7B%7D,'cvml','ledger-cli%2bunsubscr...@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+unsubscr...@googlegroups.com 
 mailto:ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-12-02 Thread Craig Earls
Sometimes it seems like it.

On Tuesday, December 2, 2014, Douglas Philips douglas.phil...@gmail.com
wrote:

 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
 javascript:; mailto:gui...@gmail.com javascript:; 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 ender...@gmail.com
 javascript:; javascript:_e(%7B%7D,'cvml','ender...@gmail.com
 javascript:;'); 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+unsubscr...@googlegroups.com javascript:;
 javascript:_e(%7B%7D,'cvml','ledger-cli%2bunsubscr...@googlegroups.com
 javascript:;');.
  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+unsubscr...@googlegroups.com javascript:;
 mailto:ledger-cli+unsubscr...@googlegroups.com javascript:;.
  For more options, visit https://groups.google.com/d/optout.

 --

 ---
 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+unsubscr...@googlegroups.com javascript:;.
 For more options, visit https://groups.google.com/d/optout.



-- 
Craig, Corona De Tucson, AZ
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-12-02 Thread Guido Van Hoecke
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

On 2 December 2014 at 13:53, Craig Earls ender...@gmail.com 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 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 ender...@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+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



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

 --

 ---
 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+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 

--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-12-02 Thread Craig Earls
OK, I understand what it was doing.  I just pushed a fixed.

On Tue, Dec 2, 2014 at 6:17 AM, Guido Van Hoecke gui...@gmail.com wrote:

 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

 On 2 December 2014 at 13:53, Craig Earls ender...@gmail.com 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 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 ender...@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+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



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

 --

 ---
 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+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


  --

 ---
 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+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Craig, Corona De Tucson, AZ
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-12-02 Thread Craig Earls
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:

 Hi Craig,


 On 2 December 2014 at 14:38, Craig Earls ender...@gmail.com
 javascript:_e(%7B%7D,'cvml','ender...@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

  --

 ---
 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+unsubscr...@googlegroups.com
 javascript:_e(%7B%7D,'cvml','ledger-cli%2bunsubscr...@googlegroups.com');
 .
 For more options, visit https://groups.google.com/d/optout.



-- 
Craig, Corona De Tucson, AZ
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-12-02 Thread Guido Van Hoecke
Craig,

On 2 December 2014 at 16:01, Craig Earls ender...@gmail.com wrote:

 Ugh. I need to find another hobby.  I will check this out tonight.

​
:) Remember, there's no hurry!

Guido​

-- 

--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ledger-schedule-already-entered

2014-12-02 Thread Craig Earls
Thanks. I need to pull out the reference to that function it did nothing
and I am going a different route.

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

 Hi,

 The latest ledger-schedule.el no longer has following function:

 (defun ledger-schedule-already-entered (candidate buffer)
   (let ((target-date (format-time-string date-format (car candidate)))
 (target-payee (cadr candidate)))
 nil))

 But it is still required and needed when listing upcoming transactions.

 The attached patch would restore this function.

 (I am a complete newbie in generating patches, so be carefull)

 Guido

 --

 ---
 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+unsubscr...@googlegroups.com
 javascript:_e(%7B%7D,'cvml','ledger-cli%2bunsubscr...@googlegroups.com');
 .
 For more options, visit https://groups.google.com/d/optout.



-- 
Craig, Corona De Tucson, AZ
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Standardise ledger file extension

2014-12-02 Thread Christopher Allan Webber
Craig Earls writes:

 Standardizing is only necessary if you plan on exchanging files
 frequently.  This is one area where that is very unlikely.  We also have
 many international users who use some completely different.  I see no
 reason to standardize here.

While there's no requirement to do so, it's nice to give people a
format that emacs/vim/whatever modes can auto-open.  The manual saying
.dat never made sense to me... that's a super generic file extension,
and I've seen a lot of stuff use it that's not ledger related.

 On Sat, Nov 29, 2014 at 6:09 AM, Gwenhael Le Moine 
 gwenhael.le.mo...@gmail.com wrote:

 I use .ledger, I'd use .timelog if I used timelogs.

I use .ldgr, it's short enough, and clear enough.

-- 

--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [BUG] Crash when using --trace option

2014-12-02 Thread John Wiegley
 Alexis  surryh...@gmail.com writes:

 Note that using smaller values than 10 work, even though it
 seems to have no effect on the trace level as suggested by the manpage.

 % for trace in {1..9}; do ./ledger -f test/input/sample.dat test--trace
 ${trace} 2/tmp/ledger_trace_${trace}.txt /dev/null; done

 Any helpful hints what needs to be changed?

I'm not sure what's causing the segmentation fault, but there are no trace
messages above level 9, so I'm not sure what type of information you'd be
looking for.

The whole tracing mechanism was pretty much subsumed by the advanced --debug
class mechanism which got added later.  That one is regular expression based,
so that I can target exactly which debug messages I'm interested in seeing.

John

-- 

--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ledger-schedule-already-entered

2014-12-02 Thread Craig Earls
fixed

On Tue, Dec 2, 2014 at 10:51 AM, Craig Earls ender...@gmail.com wrote:

 Thanks. I need to pull out the reference to that function it did nothing
 and I am going a different route.


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

 Hi,

 The latest ledger-schedule.el no longer has following function:

 (defun ledger-schedule-already-entered (candidate buffer)
   (let ((target-date (format-time-string date-format (car candidate)))
 (target-payee (cadr candidate)))
 nil))

 But it is still required and needed when listing upcoming transactions.

 The attached patch would restore this function.

 (I am a complete newbie in generating patches, so be carefull)

 Guido

 --

 ---
 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+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



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




-- 
Craig, Corona De Tucson, AZ
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.