Commit graph

50 commits

Author SHA1 Message Date
John Wiegley
ac5cc7796f Merged in from master. 2008-07-21 17:34:39 -04:00
John Wiegley
00a47a38f6 Corrected the copyright date in ledger.el. 2008-07-20 20:31:20 -04:00
John Wiegley
d568319495 Merged in bug fixes from master (done for 2.6.1b) 2008-07-19 21:36:34 -04:00
John Wiegley
2aeee0bb64 Merged over changes from the newer ledger.el that was in my FTP directory.
C-c C-c will no longer destroy information if the amount is too close to the
account name.

C-c C-e will clear a whole entry; TAB and C-TAB now perform completion; the
reporting infrastructure has been improved (thanks to a contributor); and
other small improvements.
2008-07-18 02:28:43 -04:00
John Wiegley
899f79d032 Reconciling using ledger.el is now line-based, instead of character based, due
to problems with UTF-8 characters.
2008-07-17 23:42:19 -04:00
John Wiegley
3d1ab0e4e7 Changed the default value of ledger-binary-path to just "ledger", since
there's no need to require an absolute pathname.
2008-07-17 22:09:26 -04:00
John Wiegley
49ae3b65d5 *** empty log message *** 2008-04-13 02:41:30 -04:00
John Wiegley
f2a167e0ed *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
8d3403fbef (ledger-run-ledger): Report better error messages if
`ledger-binary-path' is set to an invalid value.
2008-04-13 02:41:24 -04:00
John Wiegley
2df14a5b86 Transactions now track their beginning and ending position, as do
entries.  The new format strings %xB %xE %xb %xe can be used to
display those values relative to a transaction.  The Emacs module now
relies on this support to exactly determine where a transaction is,
rather than the Elisp logic it relied on previously.
2008-04-13 02:41:24 -04:00
John Wiegley
f56b29eb4b Added "=" to the character set used to scan for dates at the beginning
of lines, to accomodate virtual dates.  (This came from the mailing
list, thanks guys).
2008-04-13 02:41:22 -04:00
John Wiegley
f691735c6c Restructed the code that it can build and be used as a shared library.
The command-line version is still statically bound in the build
process by default (for the sake of speed).
2008-04-13 02:41:21 -04:00
John Wiegley
a53f44ecda Support has been added for clearing of individual transactions. Set
`ledger-clear-whole-entries' in Emacs to revert to the old behavior.
2008-04-13 02:41:19 -04:00
John Wiegley
e9ea090035 (ledger-do-reconcile): Only allow toggling of reconcilation entries
that are found in the "main" ledger file (for now).
2008-04-13 02:41:11 -04:00
John Wiegley
0fdc3d67b6 (ledger-do-reconcile): If no output at all is generated by the "emacs"
command, do not trigger a Lisp error.
2008-04-13 02:41:09 -04:00
John Wiegley
0bd520e5d7 (write_entry): Added filename to Emacs output, in preperation for
multi-file support.
2008-04-13 02:41:07 -04:00
John Wiegley
3e8c04e5e1 Added missing `require' for eshell. 2008-04-13 02:41:06 -04:00
John Wiegley
1b30e1c5ad (ledger-auto-reconcile): Added a note to the auto-reconcile prompt, to
remind people to use a negative amount for a liability.
2008-04-13 02:41:05 -04:00
John Wiegley
e846d22fcf Made several changes to the behavior of the reconciler: 1) Hitting
space marks entries as pending; use C-c C-c when you have achieved the
proper cleared balance, and all of the "pending" entries will be
marked clear and saved; 2) Using C-x C-s in the ledger data buffer
will refresh the currently open reconcile buffer; 3) C-l in the
reconcile buffer will now refresh the view (in case you wish to
refresh changes made in the ledger data buffer without saving that
buffer).
2008-04-13 02:41:05 -04:00
John Wiegley
5c25fc413c *** empty log message *** 2008-04-13 02:41:04 -04:00
John Wiegley
6a5465588e (ledger-add-entry): Use Eshell to do argument parsing, since that's
the easiest way to tell if '1 "2 3" 4' contains three arguments or
four.
2008-04-13 02:41:04 -04:00
John Wiegley
06c0e4707a (ledger-auto-reconcile): If auto-reconciling fails, report an error in
the minibuffer.
2008-04-13 02:41:03 -04:00
John Wiegley
ff48992067 *** empty log message *** 2008-04-13 02:40:59 -04:00
John Wiegley
b831ee1832 (ledger-reconcile-save): Call `save-buffer', instead of trying to
write the file directly.
2008-04-13 02:40:59 -04:00
John Wiegley
80492683e5 (ledger-do-reconcile): Fixed a marker problem that was causing entries
to not be reconciled.
2008-04-13 02:40:58 -04:00
John Wiegley
ce6bf5353a *** empty log message *** 2008-04-13 02:40:58 -04:00
John Wiegley
a874bc851e *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
69abac7512 Added "a" and "d" commands to *Reconcile* mode. 2008-04-13 02:40:57 -04:00
John Wiegley
e961ce5f6a (ledger-reconcile): Added back the feature that C-u C-c C-r will
assume that an auto-reconcile is to be attempted.
2008-04-13 02:40:57 -04:00
John Wiegley
d516c64bec Updated the Emacs interface to use the ledger executable more fully
(it doesn't do its own parsing anymore, for example).  Many things
should be faster, and things should work for users of earlier Emacsen.
2008-04-13 02:40:56 -04:00
John Wiegley
c240ec23fa (ledger-reconcile): If a prefix argument is passed to C-c C-r
(ledger-reconcile), then it will attempt to use the auto-reconciler to
pre-mark the uncleared transactions.  Note that if it fails, and the
uncleared list is long, it might appear to hang.  It's far from
fool-proof, but when it does work, it's like magic!
2008-04-13 02:40:56 -04:00
John Wiegley
4eac6dc9d6 Fix to the reconcile function, for the case when there are spaces in
an account name.
2008-04-13 02:40:55 -04:00
John Wiegley
e4b5af061e Changed the reconciling feature so that it doesn't need to ask for the
"number of days".
2008-04-13 02:40:51 -04:00
John Wiegley
d142018bcd Added code for setting the default year/month given in the prompt to
C-c C-a.  This is helpful for people with lots of receipts in a past
month.
2008-04-13 02:40:49 -04:00
John Wiegley
1db60b12e2 updated to 2.02 2008-04-13 02:40:48 -04:00
John Wiegley
c9fb11bd60 updated to version 2.0 2008-04-13 02:40:47 -04:00
John Wiegley
a32173ace6 changes 2008-04-13 02:40:47 -04:00
John Wiegley
c57bfb72c3 moved entry hooking mechanism to journal_t; further improvements to "entry" 2004-09-23 21:08:42 -04:00
John Wiegley
ac000a67c4 fixed two memory corruption bugs 2004-08-25 21:02:07 -04:00
John Wiegley
eebd06c371 added a better commentary (at least for now) 2004-08-23 08:01:55 -04:00
John Wiegley
abae9138e9 added missing files 2004-07-29 17:25:28 -04:00
John Wiegley
161d6f79bd initial rev of 2.0 2004-07-26 23:33:51 -04:00
John Wiegley
9ca1d24d30 initial import into Darcs 2004-05-13 18:37:12 -04:00
John Wiegley
83b7a0ea9c Several small fixes. 2004-04-08 23:14:53 +00:00
John Wiegley
42a1c03968 *** empty log message *** 2004-04-04 23:59:20 +00:00
John Wiegley
f672024e06 *** empty log message *** 2004-04-04 11:26:32 +00:00
John Wiegley
c68b502156 *** empty log message *** 2004-04-04 11:09:59 +00:00
John Wiegley
47eebe8d73 Reconcile mode is now working. 2004-04-04 08:08:59 +00:00
John Wiegley
8c5b124e99 changes 2003-10-29 07:47:41 +00:00
John Wiegley
0d29133f8a *** empty log message *** 2003-10-13 06:55:15 +00:00