Commit graph

386 commits

Author SHA1 Message Date
Steve Purcell
dcd9cc4b17 ledger-mode: Also bind g to ledger-report-redo, as is standard elsewhere 2013-12-11 19:08:56 +00:00
Steve Purcell
ccaaf7e235 ledger-mode: Fix a number of byte-compilation warnings 2013-12-11 08:36:22 +00:00
Steve Purcell
12816a77e3 ledger-mode: Add missing argument to ledger-delete-current-transaction 2013-12-11 08:36:22 +00:00
Steve Purcell
6eca277bbc ledger-mode: Remove duplication in ledger-set-{year,month} 2013-12-11 08:36:22 +00:00
Steve Purcell
75a2d9d31e ledger-mode: Add namespace prefix to highlight-overlay
make-variable-buffer-local is a top-level form: this commit moves that
call from ledger-mode to next to the variable's declaration.
2013-12-11 08:36:22 +00:00
Steve Purcell
aaf20ab07f ledger-mode: Use easymenu to remove boilerplate
Among other benefits, this lets us define the menu entries from top to
bottom, rather than in reverse.
2013-12-11 08:31:07 +00:00
Steve Purcell
c85643b04e ledger-mode: declare keymaps at the top level 2013-12-09 20:41:01 +00:00
Steve Purcell
a74053b010 ledger-mode: define and use a syntax table so that comments are handled properly
Specifically, functionality which uses syntax-ppss to detect comments
needs the syntax table to be aware of them. A prime example is
goto-address-prog-mode.

This commit adds a basic syntax table for this purpose.
2013-12-09 19:11:23 +00:00
Rémi Vanicat
5b4400b2d0 Reload init when calling ledger-init-load-init-file again.
When the ledger-init-load-init-file was called again, it used to parse ledger
init file, and to throw away the result. No you can use it to load this file
again when you have change something in it.
2013-11-26 13:19:38 +01:00
Craig Earls
fc716a5ca1 Merge branch 'ledger-mode-automatic-transactions'
Conflicts:
	lisp/ledger-post.el
2013-11-12 09:24:29 -07:00
Craig Earls
f34ad34b89 Fix values pushed to calc 2013-11-12 09:21:44 -07:00
Craig Earls
1db0b0892c Merge branch 'master' into ledger-mode-automatic-transactions 2013-11-06 08:48:54 -07:00
Steve Purcell
979b5b990a Fix provided feature to match file/package name
For `require` to work correctly, the provided feature name
must match the name of the file.
2013-11-03 21:34:55 +00:00
Craig Earls
bee6605e08 Merge branch 'master' into ledger-mode-automatic-transactions 2013-09-20 07:26:44 -07:00
Vinod Kurup
7704018968 Find first numeral or minus sign, instead of blind move 2013-09-08 13:57:09 -04:00
Vinod Kurup
816f4405b0 Move past the commodity sign 2013-09-07 06:56:22 -04:00
Simon Kaczor
3105f13a7b Update CMakeLists.txt
renamed files from ldg to ledger. Don't compile ledger-context.el because it has a macro.
2013-08-21 09:29:40 -04:00
Craig Earls
9f3afc26f5 Merge branch 'master' into ledger-mode-automatic-transactions
Conflicts:
	lisp/ledger-reconcile.el
2013-08-20 09:58:39 -07:00
Craig Earls
46bf142b2a Bug 986. Add file order to sorting options in the reconcile mode. 2013-08-20 09:51:11 -07:00
Craig Earls
8b84aff855 Merge branch 'master' into ledger-mode-automatic-transactions 2013-07-19 16:41:56 -07:00
Gergely Risko
515ae05d6b Change ledger-next-amount to be case-sensitive
Otherwise if there is an account that's name only has one part, the
regex can match it as a currency and as the beginning of an amount.
E.g. if we have the line "Expenses         45 USD", then the old
ledger-next-amount will jump to Expenses instead of to 45.
2013-07-12 01:17:40 +02:00
Gergely Risko
87da7ba3ab Fix comment string 2013-07-09 16:41:55 +02:00
Craig Earls
f16a83a66c Merge branch 'master' into ledger-mode-automatic-transactions 2013-07-03 14:07:54 -07:00
Craig Earls
64d6ec675d Add ledger-mode-should-check-version to disable startup checks.
This is for users who are not using the official Ledger, say maybe hedger…
2013-07-03 13:57:56 -07:00
Craig Earls
bb529381c7 Add Schedule Upcoming to Ledger menu 2013-07-03 13:56:44 -07:00
Craig Earls
0d4641acc2 Merge branch 'master' into ledger-mode-automatic-transactions
Conflicts:
	lisp/ledger-init.el
	lisp/ledger-mode.el
	lisp/ledger-reconcile.el
	lisp/ledger-schedule.el
2013-07-02 15:50:32 -07:00
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
b1edc38e42 Merge branch 'master' into ledger-mode-automatic-transactions 2013-07-02 14:51:02 -07:00
Craig Earls
5b8817c8e8 Remove leg-new and made leg-mode the entry point. 2013-07-02 14:45:06 -07:00
Craig Earls
d01b888384 Formatting cleanup 2013-07-02 13:18:18 -07:00
Craig Earls
cf2fa5c32b Formatting changes and initial inclusion of ledger-schedule 2013-07-02 13:16:28 -07:00
Craig Earls
a6cb179d8a Adjust subtraction to scale operands up, thereby avoiding the silly long results 2013-07-02 12:05:00 -07:00
Craig Earls
8da79a8967 Ensure target balance is actually parseable as a number 2013-07-01 11:01:47 -07:00
Craig Earls
52dd81ca9e Added buffer cleanup and tweaked the reconcile quit routines. 2013-06-27 21:36:22 -07:00
Craig Earls
9d64d14fd3 Add buffer cleanup function. 2013-06-06 12:53:01 -07:00
Craig Earls
7540647f01 Dramatic improvements to account completion speeds. 2013-06-05 16:41:11 -07:00
Craig Earls
e0b02afd60 Implemented different sorting function on the reconcile buffer.
C-c C-a for amount
C-c C-p for payee
C-c C-d for date
2013-06-03 17:14:19 -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
cb6f4b9890 Fix bug 967, Windows rearranging after reconcile save. 2013-06-03 15:31:10 -07:00
Craig Earls
30fe6afebf Completion improvements 2013-06-03 08:45:27 -07:00
Craig Earls
fda778f2c0 Fix bug 969, payee completing only works with plain alpha chars 2013-06-02 20:46:29 -07:00
Craig Earls
5c462273d9 Resolve bug 957 update reconcile buffer when saving ledger buffer 2013-05-23 21:05:34 -07:00
Albert Krewinkel
885bc6580c Add option if dates should be iso-8601 by default
Allow users to choose between the default YYYY/MM/DD format and the
iso-standardized format YYYY-MM-DD.
2013-05-22 21:17:55 +02:00
Craig Earls
d97048cf42 Correction to ldg-context xact regex. 2013-05-21 23:42:19 -07:00
Craig Earls
a22ae04136 Prevent failure if ledger sort buffer is called with point before the ledger start marker. 2013-05-14 16:23:00 -07:00
Craig Earls
47142e5846 Fix ledger-find-slot so that it doesn't require transaction codes 2013-05-14 09:49:27 -07:00
Craig Earls
a7097c9e41 Fix Bug 962 2013-05-11 19:14:51 -07:00
Craig Earls
bb181c494a Correct regex 2013-05-11 06:54:37 -07:00
Craig Earls
6539f1e1a9 Reverted changes to completion. Changes were "more correct" but performance on large buffer was too poor. 2013-05-10 13:25:24 -07:00
Craig Earls
60e606a651 Fix Bug 961, add ldg-context.el and ldg-schedule.el to CMakeLists.txt 2013-05-09 13:40:14 -07:00