Commit graph

54 commits

Author SHA1 Message Date
Craig Earls
063b027fbb Fixed bug that caused ledger-mode interfere with other mode that used indent-region 2013-04-04 12:22:27 -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
ad07d28427 Bug 936 Fixes ledger-add-transaction.
Symptom was no empty line after xact, real problem was not putting ledger output into the temp buffer.
2013-03-27 16:35:43 -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
15efb41aba Make complete play nice with auto alignment 2013-03-24 23:26:23 -04:00
Craig Earls
e8a2ebb699 Insert Effective Date to xact 2013-03-24 18:12:44 -04:00
Craig Earls
59e8967d06 Fix bug 923 2013-03-24 14:06:41 -04:00
Craig Earls
6ff330911d Fixed Align Region menu entry 2013-03-24 04:46:35 -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
4cf6ca6e79 Bug 931 Menu consistency Delete Transaction 2013-03-23 14:30:29 -07:00
Craig Earls
059b86b30e Fixed Bug 930 Toggle transaction menu entry incorrect 2013-03-23 14:28:10 -07:00
Craig Earls
8a1d990809 Fix Bug 929 consistent naming of buffer narrowing. 2013-03-23 14:22:47 -07:00
Craig Earls
0d9250dbe4 Fix bug 916 along amount in region 2013-03-22 20:56:19 -07:00
David Keegan
13b4c5adc0 Fixed bug 913 ledger mode C-c C-a and ISO dates. 2013-03-09 18:39:30 +00:00
Craig Earls
0744a0ac8f Added menu entries to help set sort region 2013-03-06 14:35:34 -05: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
5e0e7e0a97 Add reconcile menu entry and correct bug in report that failed on automatically generated xacts 2013-02-26 15:08:52 -07:00
Craig Earls
4cb2779464 ledger-mode now automatically loads and parses the init file.
Currently only pays attention to decimal-comma
2013-02-23 17:53:55 -07:00
Craig Earls
8116ef4781 Oops. This adds missing parenthesis to the last commit. 2013-02-15 08:07:41 -07:00
Craig Earls
7f0693bcdc Improved error reporting 2013-02-15 06:14:33 -07:00
Craig Earls
d8f0b0fa83 Code commenting cleanup. 2013-02-14 15:37:13 -07:00
Craig Earls
6eb97a7c38 Added a copy transaction function to ledger-mode 2013-02-14 13:20:16 -07:00
Craig Earls
c031fa4943 Added menu entry for complete entry.
Refactored leg-complete to get rid of some side effect usage
2013-02-13 20:45:22 -07:00
Craig Earls
5eb322c0a2 Comment and code cleanup 2013-02-12 16:04:02 -07:00
Craig Earls
28659c58c3 Bug 892 re-enable pending mode and reconcile-finish
This should do it, and it should work across multiple files.
2013-02-12 15:11:36 -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
Craig Earls
e615d8c615 Bug 883 overlays left in buffer if file reverted. 2013-02-11 11:05:43 -07:00
Craig Earls
30c95ea9bb Changes keybinding for edit amount to C-c C-b
Thierry rightly pointed out that C-c C-v was a much older emacs command and I shouldn't stomp on it.
2013-02-10 10:11:15 -07:00
Craig Earls
6fce572806 ledger-mode now highlights the xact under point.
This can be configured with ledger-highlight-xact-under-point and ledger-font-highlight-face
2013-02-09 21:03:58 -07:00
Craig Earls
2b55ef7dab Added menu entry to customize ledger mode 2013-02-09 17:45:31 -07:00
Craig Earls
7fe1506ea1 code cleanup 2013-02-08 17:20:56 -07:00
Craig Earls
29f409ce72 Added ability to add xact with date only.
ledger-add-entry now checks to see if more than the date was given at the prompt. If there is only a date it inserts the dat at the correct place in the ledger and puts the point at the end of the line for entering transaction details
2013-02-07 22:40:57 -07: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
71de1e6cdc Enh 246 add code folding to ledger mode
Based on loccur.  Hides everything but the xacts that match a regex.  Linked to reconcile mode so that when you reconcile an account on xacts with that account are shown.  Documentation updated
2013-02-05 11:07:36 -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
c875de881a Fixed key-binges
The fancy lambdas detecting whether or not the command could be run weren't passing interactive
arguments
2013-02-01 21:59:51 -07:00
Craig Earls
36e77bd357 Check for ledger executable and version
Altered menu creation so that menu functions are disable if there is no ledger executable available
command keys will also warn if ledger isn't working

remove a debug message from leg-sort
2013-02-01 16:15:51 -07:00
Craig Earls
0675208a63 Add regional sort facility to ledger mode
C-c C-s now bound to ledger-sort-region.  ledger-sort-region is smart and
find the beginning of the first xact within the region and the beginning of
the first xact AFTER the region so that it can keep posing structure intact
2013-02-01 10:19:47 -07:00
Craig Earls
844b614af7 Merge branch 'next' into ledger-mode-sort-region 2013-02-01 09:03:48 -07:00
Craig Earls
7cb3b09986 Customizable font-locking
Moved font code into separate file.  created faces that can be customized in
using the emacs customizations menu group ledger-faces
2013-01-31 22:15:10 -07:00
Craig Earls
5c91124955 WIP. ledger-sort-region still drops the first transaction in the region. 2013-01-31 15:13:00 -07:00
Craig Earls
97550db9bd Removed call to ledger-reports-patch-reports
This function was never defined and appeared to nothing.  I caused errors
on some system by not existing.
2013-01-30 13:27:51 -07:00
Craig Earls
eff1472337 Added GPL licensing information to lisp files 2013-01-29 13:57:22 -07:00
Craig Earls
619b6abd5c Fixes the set-year and set-month functions
Also adds current year and month to the entry prompt.
2013-01-29 12:47:27 -07:00
Craig Earls
0bbff75f43 fixes the reconcile mode, adds menus for all modes
thanks to dk for the is-std defun.
2013-01-29 08:50:50 -07:00
Craig Earls
855432c4cd Fixed ledger-add-entry
copied ledger-iterate-entries, ledger-set-year and ledger-set-month
from the old ledger.el.  Changed ledger-add-entry to use
ledger-exec-ledger vice the old ledger-run-ledger.
2013-01-16 11:44:13 -08:00
John Wiegley
e716995311 Patch reports with markers to allow xact shifting 2012-08-08 00:34:07 -05:00
John Wiegley
4da56023d0 Added ldg-test.el, to assist writing regression tests 2012-03-16 01:00:20 -05:00
Dan Peterson
8834fc0c15 Highlight account names with spaces. 2011-08-28 12:31:42 -03:00