Commit graph

6007 commits

Author SHA1 Message Date
Craig Earls
1cf83c6f5f Merge commit '64426842a34f0517e43a47a404cd15c764f1c7f2' into next 2015-09-28 19:00:01 -07:00
Craig Earls
64426842a3 Merge pull request #434 from Fuco1/align-on-decimal
Align amounts on the decimal separator.

Thank you.
2015-09-28 17:37:21 -07:00
Matus Goljer
767ab3e39c Align amounts on the decimal separator.
That is:
  A   $10.00
  B    $5
  C  -$15.00

Before the numbers aligned at the end of the last digit.
2015-09-28 18:03:32 +02:00
Simon Michael
4dec0e3829 Merge pull request #433 from Fuco1/improve-align-dwim
Fill comment paragraph with ledger-post-align-dwim
2015-09-21 12:40:28 -07:00
Simon Michael
3d8fd6d3de Merge pull request #432 from Fuco1/fix-amount-regex
Fix amount-regex to properly capture integer part.
2015-09-21 12:40:20 -07:00
Matus Goljer
758a224131 Fix amount-regex to properly capture integer part.
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.
2015-09-21 21:21:31 +02:00
Matus Goljer
593a07364d Fill comment paragraph with ledger-post-align-dwim
In addition to re-aligning postings, if the point is in a comment, just
fill that comment as regular plaintext.
2015-09-21 20:45:51 +02:00
Craig Earls
5f2f8e50b3 Merge pull request #431 from Fuco1/add-dwim-align
Add dwim align  

Thank you.
2015-09-21 07:41:33 -07:00
Alexis Hildebrandt
fd6fabbedc Merge pull request #430 from thdox/documentation
Documentation

[ci skip]
2015-09-19 20:38:56 +02:00
Matus Goljer
1995a7e0ac Bind M-q to ledger-post-align-dwim.
There is very little reason to have M-q bound to fill-paragraph in
ledger, so let's use it for aligning instead.
2015-09-19 13:58:16 +02:00
Matus Goljer
e6a2579f34 Add a function to "dwim" align.
If no region is active, align the current transaction.  If a region is
active, align all postings in the region.
2015-09-19 13:57:13 +02:00
thdox
075ac7d4d0 Restoring @code as this is an keyword external to ledger itself. 2015-09-18 22:27:22 +02:00
thdox
3e605f677f For consistency with description of --subtotal that is line 7067. 2015-09-18 20:43:00 +02:00
thdox
76379c4886 Bring back UNDOCUMENTED tag as the CODE has not yet been documented. 2015-09-18 20:34:59 +02:00
Craig Earls
5905c21ded Merge commit '88ad616d18b69eb03bc14eaa9ce6b32be90867a6' into next 2015-09-18 06:53:23 -07:00
Craig Earls
1b3dfe93c5 Merge commit '38315cfba2a4677ed3d7df81e3f4a5d28f1f4a1b' into next
Conflicts:
	lisp/ledger-xact.el
2015-09-18 06:53:03 -07:00
Craig Earls
88ad616d18 Merge pull request #429 from paulbdavis/fontify-recurring
Wow!  Thank you.  I didn't know anyone was using this feature besides myself.
2015-09-18 06:51:18 -07:00
paulbdavis
92aead05ff fontify recurring transaction in ledger-mode [ci skip] 2015-09-18 09:31:04 -04:00
Alexis Hildebrandt
36de186879 [doc] Add documentation from manpage to manual 2015-09-17 20:01:33 +02:00
Alexis Hildebrandt
912b5936c2 [doc] Whitespace edit
The end of a sentence should be followed by two spaces

[ci skip]
2015-09-17 20:01:21 +02:00
Alexis Hildebrandt
bc73bf559c [doc] Minor typographical edits
[ci skip]
2015-09-17 20:00:50 +02:00
Alexis Hildebrandt
d07a50752b Merge pull request #427 from paulbdavis/documentation
doc for get_at function

[ci skip]
2015-09-17 10:48:13 +02:00
paulbdavis
357eb615a2 doc for get_at function 2015-09-17 01:24:05 -04:00
Alexis Hildebrandt
43112565d0 Bump version number to 3.1.1 2015-09-15 17:00:32 +02:00
Alexis Hildebrandt
af53512554 [acprep] Remove obsoleted command submodule
from help
2015-09-15 16:59:24 +02:00
Alexis Hildebrandt
cea0ba4d52 [travis] Bump boost version to 1.59.0 2015-09-15 16:39:29 +02:00
Alexis Hildebrandt
49a0601c14 Add workaround for Boost.Python compile errors
when using version 1.59.0
2015-09-15 16:39:10 +02:00
Alexis Hildebrandt
32eca73479 [tests] Remove compiler warnings for unit tests
warning: equality comparison result unused [-Wunused-comparison]
  BOOST_CHECK_THROW(v8 == v10, value_error);
                    ~~~^~~~~~
2015-09-15 16:34:59 +02:00
Craig Earls
38315cfba2 Merge pull request #426 from andschwa/fix-find-eobp
Fix xact-find-slot at end of buffer
2015-08-22 18:48:48 -07:00
Craig Earls
2fe6663fdb Insert an extra newline if EOBP is not on its own line when you add an act. 2015-08-22 18:47:05 -07:00
Andrew Schwartzmeyer
6fe913aa87
Fix xact-find-slot at end of buffer
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]
2015-08-22 15:27:00 -07:00
Craig Earls
f310341bf5 Merge commit '9627e2a97b56826e723eee0b8410a3e12bde4bb9' into next 2015-08-22 07:56:57 -07:00
Craig Earls
9627e2a97b Merge pull request #425 from thdox/documentation
Thanks Thierry
2015-08-08 06:37:52 -07:00
thdox
7852881038 Improve documentation for .ledgerrc
See Github pull request #414
2015-08-08 11:59:29 +02:00
thdox
b91b74fc43 Rename feat-fixated-prices_2.test to dir-fixed.test
For consistency as this is a directive.
2015-08-08 11:59:28 +02:00
thdox
47070b16ef Use @table instead of @multitable
In texinfo documentation, @table is for two-columns, @multitable for
more. Also, the @table produces nicer PDF output.
2015-08-08 11:59:28 +02:00
thdox
7b27eab7db dir- is for directive, feat- for journal feature 2015-08-08 11:59:28 +02:00
thdox
ee284912a9 Add link to Period expressions. 2015-08-08 11:59:28 +02:00
Alexis Hildebrandt
64b285d583 [tests] Fix MathTest failures on Mac OS X
due to timezone settings.
2015-08-08 00:55:19 +02:00
Alexis Hildebrandt
fe410fa239 [tests] Set timezone for running tests
so that the tests run with a consistent environment.
2015-08-07 19:42:23 +02:00
Craig Earls
0e82bd0d63 Merge commit '3c2d228ddc74b75122b07a87bbd06263092a9661' into next 2015-08-06 19:38:39 -07:00
John Wiegley
3c2d228ddc Merge pull request #413 from thdox/command-directives-to-index
Add command directives to concepts and commands indexes.
2015-08-06 13:48:30 -07:00
Alexis Hildebrandt
b213372d9c [travis] Enable verbose failures 2015-08-05 09:49:28 +02:00
John Wiegley
1019f92a82 Merge pull request #424 from thdox/bug-1057
Add regression test file for bug #1057
2015-08-04 16:20:54 -07:00
Alexis Hildebrandt
eff53dbf9d [travis] Rename coverity scan branch
Fix typo
2015-08-05 00:20:52 +02:00
Alexis Hildebrandt
80fa6e402a [travis] Configure coverity scan 2015-08-05 00:13:32 +02:00
Alexis Hildebrandt
8d351d1b4c [tests] Ignore --revalued-total in baseline tests 2015-08-05 00:09:01 +02:00
John Wiegley
81b14e471a Merge remote-tracking branch 'origin/master' into next 2015-08-04 14:55:41 -07:00
John Wiegley
977e33d39e Merge pull request #423 from ledger/revert-216-master
Revert "--depth for register"
2015-08-04 14:54:13 -07:00
John Wiegley
69de980aeb Revert "--depth for register" 2015-08-04 14:54:06 -07:00