Hi,

I recently updated ledger from 3.1.1_2 to 3.1.1_6 (homebrew, on macOS 
Sierra 10.12.6, GUI Emacs 25.1 and 25.2). Now "Add transaction" in ledger 
does not work anymore.

When I enter:  C-c C-a "2017/09/01 Test" I get "if: Error in 
ledger-add-transaction: Error: Invalid date:"

I have added a (message date) to the function "ledger-add-transaction" to 
trace the problem (this is probably _not_ the way to do it, but my Lisp 
abilities are rather limited…):

    (unless insert-at-point
      (let ((date (car args)))
        ;; LB debug
        (message date)
        (if (string-match ledger-iso-date-regexp date)
            (setq date
                  (encode-time 0 0 0 (string-to-number (match-string 4 
date))
                               (string-to-number (match-string 3 date))
                               (string-to-number (match-string 2 date)))))
        (ledger-xact-find-slot date)))


This prints "2017/09/01" in the Messages buffer, the following line 
checking the regexp seems to fail. The date string seems to be alright, has 
something changed with the ledger-iso-date-regexp?

I hope I am not wasting anyone's time asking stupid questions :/

Thanks in advance!

Leo

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to