summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Makes links in ledger-report "register" commands optional.Atheriel2016-07-161-1/+8
| | | | | | | | | | | | | | | | | | This commit adds a new custom `ledger-report-links-in-register' flag that controls whether `ledger-report' will attempt to link transactions in the report buffer to the entries in the original file. Essentially, it controls whether `ledger-report' will silently pass the "--prepend-format" flag to the binary. The primary motivation for this is that not all implementations of ledger support the "--prepend-format" flag, and thus all "register" commands run by `ledger-report' (and usually _only_ "register" commands) will always fail, because they are treated as a special case in `ledger-do-report'. At present, the user has no ability to prevent the "--prepend-format" flag from being silently passed to the binary. This commit provides that feature. [ci skip]
* Adds a "binary" format specifier to ledger-report.Atheriel2016-07-141-4/+5
| | | | | | | | | | | | This makes the current `ledger-binary-path' accessible to ledger reports by using the %(binary) format specifier. It is intended to aid users who may have different `ledger-binary-path' values on different machines. It also means that the default `ledger-reports' will work out of the box even if their ledger executable is not named "ledger" --- for example, if they are using "hledger", and have otherwise set their binary path appropriately. [ci skip]
* Consider ISO dates in `ledger-read-date'.Sebastian Christ2016-05-042-1/+5
| | | | When `ledger-use-iso-dates' is non-nil use ISO date format instead of `ledger-default-date-format'.
* Globally changed set-text-properties to use 'font-lock-face vice 'face. ↵Craig Earls2016-02-287-14/+14
| | | | This was a compatibility problem with spacemacs.
* Merge branch 'fix-warnings' of https://github.com/ecraven/ledger into ↵Craig Earls2016-01-1112-23/+71
|\ | | | | | | | | | | | | | | | | | | ecraven-fix-warning # Conflicts: # lisp/ledger-occur.el # lisp/ledger-report.el # lisp/ledger-schedule.el # lisp/ledger-sort.el
| * cleaning up elisp byte compiler warnings [emacs] [ci skip]Peter Feigl2015-02-051-0/+1
| |
| * cleaning up elisp byte compiler warningsPeter Feigl2015-02-052-11/+8
| |
| * cleaning up elisp byte compiler warningsPeter Feigl2015-02-052-1/+18
| |
| * cleaning up elisp byte compiler warningsPeter Feigl2015-02-055-11/+27
| |
| * cleaning up elisp byte compiler warningsPeter Feigl2015-02-059-3/+22
| |
* | Merge commit 'b5b70625d59305d0f3af3a9baad3931aba43df47' into nextCraig Earls2016-01-1117-29/+34
|\ \
| * | Fix highlight of the transaction under pointDaniele Nicolodi2016-01-081-4/+6
| | | | | | | | | | | | | | | | | | When a transaction is being added the previous one is highlighted. Solve the problem checking that the highlighted region contains the point.
| * | Fix highlight of the transaction under pointDaniele Nicolodi2016-01-081-12/+15
| | | | | | | | | | | | | | | Extend the highlighting of the last line in the transaction to the right margin of the buffer. Do not highlight empty lines.
| * | [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-0217-17/+17
| | | | | | | | | | | | [ci skip]
* | | Initial "Ledger Check" capabilityCraig Earls2015-12-054-2/+142
| | |
* | | Merge commit 'd38f8d3bff66e89cc79b1791566fdf9eca62a8e9' into nextCraig Earls2015-11-044-7/+36
|\| |
| * | Merge pull request #436 from Fuco1/fix-context-amount-regexpJohn Wiegley2015-10-261-2/+2
| |\ \ | | | | | | | | Fix amount regexp in context computation.
| | * | Fix separator and amount regexp in context computation.Matus Goljer2015-10-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before the fix the amount required decimal point even when the decimal digits were optional. Now both are optional. The separator regexp didn't have capture group so all the further fields shifted one field back (amount went into separator, commodity into amount etc.)
| * | | Add an option to change amount-alignment mode.Matus Goljer2015-10-141-1/+15
| |/ / | | | | | | | | | | | | | | | | | | Make the default alignment behaviour the same as before 767ab3e, that is, align on the last digit by default. A new option `ledger-post-amount-alignment-at' now exists to adjust alignment preference.
| * | Make balance-at-point able to convert commodity.Matus Goljer2015-10-011-4/+9
| | | | | | | | | | | | | | | The function `ledger-display-balance-at-point' called with the prefix argument will now ask for the target commodity.
| * | Add function to read commodity from the user.Matus Goljer2015-10-011-0/+10
| | | | | | | | | | | | | | | The function provides completing read with all available commodities as gathered by "ledger commodities".
* | | Merge commit '64426842a34f0517e43a47a404cd15c764f1c7f2' into nextCraig Earls2015-09-283-4/+23
|\| |
| * | Align amounts on the decimal separator.Matus Goljer2015-09-282-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | That is: A $10.00 B $5 C -$15.00 Before the numbers aligned at the end of the last digit.
| * | Merge pull request #433 from Fuco1/improve-align-dwimSimon Michael2015-09-211-4/+10
| |\ \ | | | | | | | | Fill comment paragraph with ledger-post-align-dwim
| | * | Fill comment paragraph with ledger-post-align-dwimMatus Goljer2015-09-211-4/+10
| | | | | | | | | | | | | | | | | | | | In addition to re-aligning postings, if the point is in a comment, just fill that comment as regular plaintext.
| * | | Fix amount-regex to properly capture integer part.Matus Goljer2015-09-211-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the integer part was 2 digits, because the integer part was non-greedy, it only captured as much as necessary, namely one digit. The other digit was captured by the 5th group's [:word:] not 4th because that one is also optional. This results in incorrect reporting of amount length and broken aligning. Also move the decimal dot matching from 3rd group to 4th, and quote the dot.
| * | Bind M-q to ledger-post-align-dwim.Matus Goljer2015-09-191-0/+1
| | | | | | | | | | | | | | | There is very little reason to have M-q bound to fill-paragraph in ledger, so let's use it for aligning instead.
| * | Add a function to "dwim" align.Matus Goljer2015-09-191-0/+7
| | | | | | | | | | | | | | | If no region is active, align the current transaction. If a region is active, align all postings in the region.
* | | Merge commit '88ad616d18b69eb03bc14eaa9ce6b32be90867a6' into nextCraig Earls2015-09-183-2/+19
|\| |
| * | fontify recurring transaction in ledger-mode [ci skip]paulbdavis2015-09-183-2/+19
| | |
* | | Merge commit '38315cfba2a4677ed3d7df81e3f4a5d28f1f4a1b' into nextCraig Earls2015-09-181-4/+2
|\| | | | | | | | | | | | | | Conflicts: lisp/ledger-xact.el
| * | Fix xact-find-slot at end of bufferAndrew Schwartzmeyer2015-08-221-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using `ledger-add-transaction` to add a transaction with a date that places it at the end of the buffer will "forget" to insert the newline between it and the previous transaction. This error occurs in `ledger-xact-find-slot` where the `(when (and (eobp) last-xact-start)` is entered, but subsequently the `(if (eobp))` is false because the point has been moved to the end of the prior exact, which is not the end of the buffer. The `if` expression is superfluous because the `when` expression has already been entered, and it is broken becase the point gets moved. Removing it fixes the behavior for transactions added at the end of the buffer, and does not break the behavior for transactions added elsewhere. This was observed with Emacs 24.5.50.1 and Ledger 3.1.0-20141005. [ci skip]
* | | Insert an extra newline if EOBP is not on its own line when you add an act.Craig Earls2015-08-221-1/+2
| | |
* | | Make advanced day descriptor automatically wildcard year and month.Craig Earls2015-07-221-15/+19
| | |
* | | Removed debugging code left in by accident that was preventing advanced ↵Craig Earls2015-07-111-6/+4
| | | | | | | | | | | | month and year scheduling.
* | | Merge commit 'a8eb9cb64c0c275f00eac0a895b2e015356c4699' into nextCraig Earls2015-06-281-1/+1
|\| |
| * | Fix ledger-magic-tab: Wrong number of argumentsKan-Ru Chen2015-06-281-1/+1
| | | | | | | | | ledger-post-align-postings expects (beg end) not to be optional
* | | Merge commit '45e74103607a77c5945615692c3a35f9ce6aadde' into nextCraig Earls2015-06-281-11/+3
|\| |
| * | Use (interactive "r") in ledger-post-align-postingsErik Hetzner2015-05-311-11/+3
| | | | | | | | | | | | | | | Use standard method (interactive "r") to get the current active region for use in ledger-post-align-postings.
* | | Merge commit 'dd6185a12091045831fc3e0a0c36217e44762333' into nextCraig Earls2015-04-052-4/+10
|\| |
| * | Merge pull request #411 from thdox/bug-1060Craig Earls2015-04-051-2/+8
| |\ \ | | | | | | | | [emacs] Fix bug 1060.
| | * | [emacs] Fix bug 1060.thdox2015-04-051-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set as an option to kill (or not) the reconcile buffer after ledger-reconcile-finish. The default is set to *not* kill the buffer. This is justified as the facts that: 1. In old ledger mode (the one from Ledger 2.6), the default is to *not* kill the buffer. Also for the ones who will migrate from 2.6 to 3 when package will be available in their linux distribution, this will be the path of least surprise. 2. The current documentation does state that the buffer is to be killed with 'q' after 'C-c C-c'. This has been made configurable, as killing buffer may already be part of the workflow of some persons. [ci skip]
| * | | [emacs] Fix bug 1108, enabling correct account context.thdox2015-03-231-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | The old way of working was keeping spaces before and after the account. Now the space before is associated to the "status" and "separator" is enlarged to not be maxed to 2 chars [ci skip]
* | | Merge commit 'af0da737fc4ef8f9ccebd3d43519610b8a8fcaa1' into nextCraig Earls2015-02-2516-496/+496
|\| | | | | | | | | | | | | | Conflicts: lisp/ledger-reconcile.el
| * | [emacs] C-x h M-x untabify RETthdox2015-02-1016-497/+497
| |/ | | | | | | | | | | C-x h M-x indent-region RET [ci skip]
| * Add prefix ledger-reconcile- to s-functions to not conflict withthdox2015-01-211-6/+7
| | | | | | | | original s.el
| * Add documentation for bugzilla #1105, and align documentation betweenthdox2015-01-211-12/+12
| | | | | | | | ledger-reconcile.el and ledger-mode.texi.
| * Fix for bugzilla #1105.thdox2015-01-211-9/+61
| | | | | | | | | | You can now maximize the number of characters displayed for payee name and account name in the reconcile buffer.
* | no messageCraig Earls2015-01-211-21/+74
| |
* | [emacs] Fix bug 1104 handle no ledger-reconcile-buffer-headerCraig Earls2015-01-191-2/+3
|/