summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Indent & untabifythdox2014-05-1718-1167/+1167
| | | | | | | M-x mark-whole-buffer M-x indent-region M-x mark-whole-buffer M-x untabify
* Fix bug 1030 improperly placing the stays mark if the Payee starts with a digit.Craig Earls2014-05-111-2/+4
|
* Merge commit 'dbfbf2bc893de3c44dcc08c33811bc274f647672'Craig Earls2014-05-091-28/+13
|\
| * Refactor macros in ledger-context.el to byte compile cleanlySteve Purcell2014-05-091-28/+13
| |
* | Merge commit '62bdb2f13a31449ca6f439ee121162647c39855e'Craig Earls2014-04-242-9/+17
|\|
| * fix ledger-iso-date-regex, abusing its name slightlyChristophe Rhodes2014-04-231-2/+2
| | | | | | | | | | | | | | the year field in dates is sort-of optional, given "year" or "Y" directives. Make the date regex understand this. (This has been lightly tested with C-c C-a, but the rest of the uses of ledger-iso-date-regex have only been eyeballed, not properly audited or tested)
| * add "year" handling to ledger-iterate-regexChristophe Rhodes2014-04-231-1/+1
| |
| * improve C-c C-a (ledger-xact-insert-transaction) behaviourChristophe Rhodes2014-04-231-6/+14
| | | | | | | | | | | | | | When the right place to add a transaction is after all existing transactions, add it just after the last transaction rather than at the end of the buffer. (Otherwise the transactions get added after Local Variables blocks and any other endmatter.)
* | Merge commit 'b9078dc93ffdb526efd0a859a73cc3076108f6b2'Craig Earls2014-03-2518-38/+40
|\|
| * Update old FSF addressJamie Nguyen2014-03-2318-36/+36
| |
| * lisp: use more legible colors on dark backgroundsVincent Bernat2014-03-231-2/+4
| | | | | | | | | | | | On dark backgrounds, the color for the current transaction makes the text quite unreadable. Let's use a darker color in this case. Maybe some other colors could be adjusted.
* | Make reconcile window refresh xact locations after a delete operationCraig Earls2014-02-241-14/+17
|/
* Add option ledger-complete-ignore-caseMarcin Borkowski2014-02-031-36/+42
| | | | and change ledger-pcomplete accordingly
* Bump copyright information to 2014Alexis Hildebrandt2014-02-0217-17/+17
|
* Merge pull request #229 from EvilBit/masterJohann Klähn2014-01-251-2/+12
|\ | | | | Fixed emacs lisp compilation
| * Move emacs lisp installation destination to subdirectoryOskar Kohout2014-01-041-1/+1
| |
| * Fix emacs lisp build chainOskar Kohout2014-01-041-1/+11
| |
* | Fixed some formatting problems and fixed bug 1007 aligning decimal comma ↵Craig Earls2014-01-132-63/+63
| | | | | | | | amounts with period thousand separators.
* | Fix issue in ledger-fully-complete-xact to deal with possible trailing ↵Craig Earls2014-01-131-8/+13
| | | | | | | | spaces after a payee
* | ledger-mode: only modify completion-at-point-functions locallySteve Purcell2014-01-071-1/+1
| | | | | | | | | | | | | | Without this patch, the addition of pcomplete-completions-at-point leaks into the global value of completion-at-point-functions. See #227
* | Backed out recent changes that broke the complete cycling behavior.Craig Earls2014-01-073-72/+32
|/
* Use `ledger-read-date' where applicable.Moritz Ulrich2014-01-021-3/+4
|
* `ledger-read-date': Use `ledger-minibuffer-history'.Moritz Ulrich2014-01-021-1/+2
|
* ledger-reconcile: Add option to insert an effective date when clearing ↵Moritz Ulrich2014-01-021-1/+9
| | | | transactions.
* `ledger-insert-effective-date': use `ledger-read-date'.Moritz Ulrich2014-01-021-9/+8
| | | | | | | Running `ledger-insert-effective-date' will now prompt for a date with a pre-filled value of the `(ledger-year-and-month)' ("2014/01/"). Just pressing RET without inserting the 'day'-portion will insert the date of today.
* Add `ledger-read-date' - Read date & default to today.Moritz Ulrich2014-01-021-0/+11
|
* Fix for pcomplete Metadata rule.4ourbit2014-01-011-0/+2
|
* Plugging ledger pcomplete into completion-at-point.4ourbit2014-01-011-0/+1
| | | | Added documentation on how to use pcomplete transparently via completion-at-point.
* Context-aware pcomplete rules.4ourbit2013-12-313-34/+76
| | | | | | | | | Provide completions based on information retrieved with 'ledger-context-at-point'. To support step-by-step completion of transactions some more patterns were added to 'ledger-line-config'. The actual completion rules mostly reuse some of the convenient input commands that are buried in ledger-mode. Using the standard pcomplete termination string (" ") to allow a "context switch" at the end of each completion step.
* ledger-mode: Introduce `ledger-default-date-format'.Moritz Ulrich2013-12-304-9/+16
| | | | | | Some elisp functions depend on a date-format supplied in ~/.ledgerrc. Change these by introducing a default ("%Y/%m/%d"). Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
* Improve `ledger-insert-effective-date'.Moritz Ulrich2013-12-301-10/+27
| | | | | | | | | The function now replaces already existing effective dates in the same line. With a prefix (C-u C-c C-t), remove the current effective date. Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
* ledger-mode: Add `ledger-remove-effective-date'.Moritz Ulrich2013-12-301-0/+23
| | | | Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
* emacs-mode: Prefix every function/variable/macro with ledger-.Moritz Ulrich2013-12-292-32/+33
| | | | | | | | This is the common convention in Emacs Lisp. Not following it might cause problems with other packages as functions/variables/macros are always visible to other modules. Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
* Fix `ledger-string-to-number' for decimal-commaMoritz Ulrich2013-12-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | --=-=-= Content-Type: text/plain Hi John, Small bug, caused by ill-formatted elisp. This is a small patch, so i think making a fork & opening a Pull Request is a bit too much. I'll go this route if I make bigger contributions in the future. From de1fb19ded5300a227d58e3d3094928b211db09b Mon Sep 17 00:00:00 2001 From: Moritz Ulrich <moritz@tarn-vedra.de> Date: Sat, 28 Dec 2013 22:37:54 +0100 Subject: [PATCH] ledger-string-to-number: Fix nil return value with decimal-comma. Unfavorable formatting hid this bug pretty well. In case of true-ish `decimal-comma' or "decimal-comma' in `ledger-environment-alist', the ill-formatted `if' (and the whole function) returns nil. Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
* fix for unexpected point movement4ourbit2013-12-231-1/+1
| | | bug fixed: point moves to previous char when called at whitespace-only line
* ledger-schedule-upcoming take argument.Rémi Vanicat2013-12-121-5/+19
| | | | | | | One can forget to run ledger-schedule-upcoming for some time. Then there is the risk that ledger-schedule-look-backward is too short. This will open the possibility to use a different file, or to change the period backward or forward for this kind of case.
* Pop the new schedule buffersRémi Vanicat2013-12-121-1/+2
|
* ledger-mode: Also bind g to ledger-report-redo, as is standard elsewhereSteve Purcell2013-12-111-0/+1
|
* ledger-mode: Fix a number of byte-compilation warningsSteve Purcell2013-12-114-10/+10
|
* ledger-mode: Add missing argument to ledger-delete-current-transactionSteve Purcell2013-12-111-1/+1
|
* ledger-mode: Remove duplication in ledger-set-{year,month}Steve Purcell2013-12-111-6/+8
|
* ledger-mode: Add namespace prefix to highlight-overlaySteve Purcell2013-12-112-5/+5
| | | | | make-variable-buffer-local is a top-level form: this commit moves that call from ledger-mode to next to the variable's declaration.
* ledger-mode: Use easymenu to remove boilerplateSteve Purcell2013-12-113-85/+90
| | | | | Among other benefits, this lets us define the menu entries from top to bottom, rather than in reverse.
* ledger-mode: declare keymaps at the top levelSteve Purcell2013-12-093-76/+81
|
* ledger-mode: define and use a syntax table so that comments are handled properlySteve Purcell2013-12-091-0/+9
| | | | | | | | 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.
* Reload init when calling ledger-init-load-init-file again.Rémi Vanicat2013-11-261-1/+2
| | | | | | 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.
* Merge branch 'ledger-mode-automatic-transactions'Craig Earls2013-11-1212-615/+600
|\ | | | | | | | | Conflicts: lisp/ledger-post.el
| * Merge branch 'master' into ledger-mode-automatic-transactionsCraig Earls2013-11-061-1/+1
| |\
| * \ Merge branch 'master' into ledger-mode-automatic-transactionsCraig Earls2013-09-202-21/+21
| |\ \
| * \ \ Merge branch 'master' into ledger-mode-automatic-transactionsCraig Earls2013-08-201-2/+7
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: lisp/ledger-reconcile.el