Commit graph

56 commits

Author SHA1 Message Date
Craig Earls
63ba45dbaa Finished changing name to ledger-*
All files and references changed ldg-* to ledger-*
2013-07-02 15:37:33 -07:00
Craig Earls
c23c994b22 Fix Bug 966 Auto Indent conflicts with undo. Removed the auto-indent function and added an indent xact function 2013-06-03 16:39:36 -07:00
Craig Earls
a7097c9e41 Fix Bug 962 2013-05-11 19:14:51 -07:00
Craig Earls
971bcf22f4 Bug 951, handle thousand separators.
Rewrote handling for decimal comma to be much simpler.  Why can't I see the simple way first?
2013-04-13 21:55:06 -07:00
Craig Earls
345f4a977e Refactoring and style. 2013-04-10 13:48:52 -07:00
Craig Earls
4df990014f Fixed reconciliation initialization. Now prompts with only account, not status and amount
Moved context function to leg-context, from leg-report. Cleaned up many regex in ldg-context.
2013-04-06 23:13:49 -07:00
Craig Earls
f80fb99039 Code cleanup of align postings 2013-04-06 07:34:27 -07:00
Craig Earls
5165b19d07 Rewrote align-postings again to improve handling of long account-names. It now leaves exactly 2 space between the commodity and the account if the amount would have stomped on the account. 2013-04-05 23:18:24 -07:00
Craig Earls
2547894586 Fix next-account so that status markers can be manually entered into a buffer when auto alignment is on. 2013-04-04 12:34:16 -07:00
Craig Earls
1a52899673 Fix copy-at-point and more regex consolidation and cleanup 2013-04-03 16:30:36 -07:00
Craig Earls
519e57ca1f Consolidated all major regexes into ldg-regex. Only major exception are the regex in ledger context at point. 2013-04-02 23:13:23 -07:00
Craig Earls
86d0fd87c4 Fixes bug 904, failure to highly pending postings. Adds two new faces for pending and cleared posting. 2013-04-02 14:20:29 -07:00
Craig Earls
024697c4fc Fix Bug 941, ensure two spaces are left between account and amount 2013-04-01 16:32:45 -07:00
Craig Earls
7fea9d21fb Align post speed improvements after adding the long account name handling. 2013-03-27 20:02:11 -07:00
Craig Earls
4ca0e8916b Fix bug 935, very long account names can get stomped on.
This works, but hammers performance
2013-03-27 15:37:52 -07:00
Craig Earls
5418e77c63 Better end testing for align-postings 2013-03-26 23:50:14 -04:00
Craig Earls
5b1778b3ca More speed improvements for align-postings. 2013-03-26 19:34:37 -04:00
Craig Earls
f1882d0a56 Major speed improvements to ledger-post-align-postings
Got rid of markers.  Use inhibit-modification-hook to suppress any other buffer stuff happening.

Got giant-buffer down to around 3.5 seconds with full modifications.
2013-03-26 02:33:05 -04:00
Craig Earls
b947bae1a8 Fix align-postings to deal with being at end of buffer 2013-03-25 23:50:26 -04:00
Craig Earls
bc7a885eb7 Speed improvement to align-postings.
In some cases align-posting was getting called twice
2013-03-25 21:19:17 -04:00
Craig Earls
48266d1107 Fix bug 928 Refix slow indent-region behavior.
Need to bing ledger-post-align-postings to indent-region-function, not indent-line-function, others it tries to align the entire region once for every line in the region.
2013-03-25 18:48:28 -04:00
Craig Earls
d3fe4c666f Lots of code cleanup. (if () (progn …) ==> (when () …) all over the place 2013-03-25 01:21:19 -04:00
Craig Earls
15efb41aba Make complete play nice with auto alignment 2013-03-24 23:26:23 -04:00
Craig Earls
9079ae8a69 Clean up ldg-post.el 2013-03-24 15:58:21 -04:00
Craig Earls
5797623fd7 Second rewrite of ledger-post-align-postings. Will probably perfect with the NEXT rewrite. 2013-03-24 13:57:03 -04:00
Craig Earls
53778317cb More armor plating on ledger-post-align-postings 2013-03-23 21:51:27 -07:00
Craig Earls
99973d0c0c Rewrote ledger-post-align-postings to address bugs 923 924 925 926 927 and 928. 2013-03-23 19:54:40 -07:00
Craig Earls
0d9250dbe4 Fix bug 916 along amount in region 2013-03-22 20:56:19 -07:00
Craig Earls
5df242424a Bug 916: Added back in old ledger-post-align-amount code for Thierry. 2013-03-18 15:05:54 -07:00
Craig Earls
720a73dec3 Finally got rid of ledger-post-deafult-account-indent string. 2013-03-16 21:52:54 -07:00
Craig Earls
be4a212ff2 Fixed bug where reconcile bombed if you tried to start from a comment 2013-03-09 15:04:07 -07:00
Craig Earls
cdd7f0675c refactored the auto-adjust to make it default 2013-03-07 16:52:51 -05:00
Craig Earls
b475e569c4 Made account formatting and auto complete compatible. 2013-03-07 15:28:09 -05:00
Craig Earls
27d27ecb6c Account auto formatting now works with tab completion 2013-03-06 21:13:06 -05:00
Craig Earls
63653f50d5 Correct bug is edit amount.
Edit-amount was still looking for decimal-comma
2013-03-06 15:23:46 -05:00
Craig Earls
efce6c8936 Add acct under point to reconcile prompt. Fix reconcile balance display of empty accounts 2013-03-04 09:36:34 -07:00
Craig Earls
4810da9398 Remove auto account alignment as it interfered with account completion. 2013-03-02 20:20:58 -07:00
Craig Earls
9a86fe022c Add ability to posting the account in a posting using the iedger-default-acct-transaction-indent 2013-03-02 13:33:12 -07:00
Craig Earls
42911df9f5 Restructured customization groups. Completed initial draft of ledger-mode documentation 2013-02-27 17:27:52 -07:00
Craig Earls
2c69aa1ff5 A better try to deal with decimal-comma from ledger 2013-02-17 19:47:16 -07:00
Craig Earls
d8f0b0fa83 Code commenting cleanup. 2013-02-14 15:37:13 -07:00
Craig Earls
a13bcd4109 Bug 882 Calc mode doesn't play nice with decimal comma
Added a few lines to transform the amount to decimal period format before pushing it to calc.
2013-02-12 16:47:43 -07:00
Craig Earls
5eb322c0a2 Comment and code cleanup 2013-02-12 16:04:02 -07:00
Craig Earls
e3b37ac19e Lisp code cleanup.
Mostly went through and clarified variable names.  Rather than "entry" for everything, use "transaction" and "posting" as appropriate to improve readability.
2013-02-12 10:35:27 -07:00
John Wiegley
995aa43778 Merge pull request #146 from vanicat/t/other-currency
Add € and £ to currency one could use in new ledger mode
2013-02-08 03:15:10 -08:00
Rémi Vanicat
ca554f6b5b Add € and £ to currency one could use in new ledger mode 2013-02-08 10:45:47 +01:00
Craig Earls
4d7c492939 Lisp code cleanup
Most of the files have been touched several times and the indentation structure
was wrong.  I ran all the files through the emacs indent region function to get back to
a baseline
2013-02-05 12:33:42 -07:00
Craig Earls
c4c088b55b Fixed ledger-post-edit-amount so that it can be called from the and of an account with a null amount.
It automagically determines if the account has two spaces after and if not inserts them.
2013-02-04 10:08:34 -07:00
Craig Earls
7c618e541d Added menu and keybinding for ledger-post-edit-amount
editing the amount with calc is too cool for school.  I can't believe I didn't see it before.
It is in the docs now as well.
2013-02-01 22:34:28 -07:00
Craig Earls
eff1472337 Added GPL licensing information to lisp files 2013-01-29 13:57:22 -07:00