Commit graph

5675 commits

Author SHA1 Message Date
Alexis Hildebrandt
15e5e3cb0d Ignore vim swap files
[ci skip]
2014-12-24 10:00:31 +01:00
Alexis Hildebrandt
ac5fd3afd3 Set CMake policy CMP0042
to remove the warning below when running cmake.
In the long run changing the CMake rules to set MACOSX_RPATH
might be the better option.

  CMake Warning (dev):
    Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
    --help-policy CMP0042" for policy details.  Use the cmake_policy
    command to set the policy and suppress this warning.
    MACOSX_RPATH is not specified for the following targets:

     libledger

  This warning is for project developers.  Use -Wno-dev to suppress it.
2014-12-24 09:30:17 +01:00
Alexis Hildebrandt
f1478851ee Fix crash when using --trace 10 or above
uint8_t is typedef'd to char, thus boost::lexical_cast treats it
as such instead of a number.
2014-12-23 23:45:39 +01:00
John Wiegley
ca9eb815af Merge pull request #342 from afh/pull/readme
Add ledger formula to OS X install instructions
2014-12-22 19:04:35 -06:00
Martin Michlmayr
5b42031ec1 Merge pull request #344 from thdox/fix-doc
Fix doc
2014-12-22 08:44:56 -05:00
thdox
77b5d0aee0 Indented with Emacs: M-x fill-paragraph 2014-12-22 10:01:57 +01:00
thdox
9b76c22f44 Document that buffer names should use @file{} keyword 2014-12-22 10:01:57 +01:00
thdox
66265e76d5 M-x delete-trailing-whitespace 2014-12-22 10:01:57 +01:00
thdox
8ac3665cb9 Fixes:
- typo fixes
- @keywords consistency fixes
- add some @kindex and @cindex
- buffer names highlighted as @file{}
- menu item highlighted as @samp{}
2014-12-22 10:01:57 +01:00
thdox
c0a8ff7160 Fixes for consistency 2014-12-22 10:01:57 +01:00
thdox
0af31f6d6a pxref already contains "see" 2014-12-22 10:01:57 +01:00
thdox
20471cf74b query is a command 2014-12-22 10:01:57 +01:00
thdox
9651f78c37 Minor fix: double spaces 2014-12-22 10:01:57 +01:00
thdox
81ac9b27fd fix minor typo 2014-12-22 10:01:47 +01:00
Steve Purcell
b81a0d6b5e Merge pull request #343 from afh/pull/git-hook
Add git hook to skip continous integration
2014-12-21 19:59:13 +00:00
Alexis Hildebrandt
1b7bef8404 Add ledger formula to OS X install instructions
[ci skip]
2014-12-21 20:55:58 +01:00
Alexis Hildebrandt
1522a382e0 Add git hook to skip continous integration
if the commit is not related to code under test.
[ci skip]
2014-12-21 20:54:01 +01:00
Steve Purcell
5fea9c9b02 Merge pull request #341 from zt9/master
Added simple instructions for how to use brew to install ledger in OS X
2014-12-21 14:21:00 +00:00
zt
7d6d4e980c cleaning up formatting on instructions 2014-12-21 09:04:07 -05:00
zt
c2fef000ce added simple instructions for how to use brew to install brew 2014-12-21 09:03:12 -05:00
Steve Purcell
833f66d30e [emacs] Don't define unprefixed "string-empty-p" function 2014-12-18 12:56:31 +00:00
Craig Earls
b6cef4bc50 Merge branch 'master' of https://github.com/ledger/ledger 2014-12-16 20:30:12 -07:00
Craig Earls
af8767c9ab [emacs] Correct header in ledger-occur. No functional change. 2014-12-16 20:28:35 -07:00
John Wiegley
acec078200 Merge pull request #340 from afh/pull/730
Fix crash when using -M with empty result
2014-12-16 13:08:33 -06:00
Alexis Hildebrandt
0a0f2f0d69 Fix crash when using -M with empty result
ledger -f /dev/null reg -M test causes a segmentation fault,
see bug 730 and duplicates 1080 and 1084 for details.

Kudos to Ikke for helping with debugging.
2014-12-16 19:37:37 +01:00
Steve Purcell
5717a03e3b [emacs] Make ledger-occur-mode auto-disable when restored by desktop.el
The minor mode gets restored by desktop.el, and this has long caused
errors. While the ideal would be to restore the mode along with the
current narrowing regexp, this interim fix instead ensures that
ledger-occur-mode will disable itself if it finds no regexp set.
2014-12-16 08:41:53 +00:00
Steve Purcell
9ecf0cbadb Fix typo in docs 2014-12-15 18:43:32 +00:00
Craig Earls
c1a7281594 Fix ledger-schedule-upcoming so that is honor input file names. 2014-12-14 09:28:24 -07:00
Steve Purcell
d0e09f1d93 [emacs] Add a menu entry for turning off ledger-occur-mode 2014-12-13 20:31:51 +00:00
Steve Purcell
b810862bf1 [emacs] define-derived-mode calls set-syntax-table automatically 2014-12-13 17:20:52 +00:00
Steve Purcell
b0ab334ddf [emacs] Add syntax table so that ";" comments are handled
This allows things like goto-address-prog-mode to correctly
highlight URLs inside comments.
2014-12-13 17:15:44 +00:00
Martin Michlmayr
ad7c5ea764 Add test case for off by one error in textual.cc fixed in a013a73b 2014-12-11 16:41:20 -06:00
Martin Michlmayr
8fb7ea47f4 Merge pull request #339 from adrianlang/patch-1
Fix off by one error in textual.cc
2014-12-11 16:36:19 -06:00
Adrian Lang
a013a73b26 Fix off by one error in textual.cc
This fixes parsing of transactions with single-character payees and comments.
2014-12-11 21:57:25 +01:00
Steve Purcell
b960eec520 [emacs] Restore toggle behaviour of ledger-occur command, for menu users 2014-12-10 16:28:53 +00:00
Steve Purcell
78a2bb0823 Document changes to the narrowing functionality in ledger-occur 2014-12-10 16:24:16 +00:00
Steve Purcell
e16e601435 [emacs] Turn ledger-occur-mode off via a separate command, and allow refreshing 2014-12-10 09:37:20 +00:00
Steve Purcell
637679c0cb [emacs] Fix more byte compilation and other layout issues 2014-12-10 09:17:32 +00:00
Steve Purcell
233ece62cd [emacs] Declare when we're using cl 2014-12-09 21:19:35 +00:00
Steve Purcell
68574f8f59 [emacs] Don't use setq-local, which only appeared in Emacs 24.4
/cc @enderw88
2014-12-09 21:13:57 +00:00
Steve Purcell
0fb064443d [emacs] Simplify and tidy up ledger-occur
Introducing a proper minor mode saves a lot of the hand-rolled fiddling
about, like managing the overlay lifecycle and the modeline.
2014-12-09 21:01:44 +00:00
Steve Purcell
233313fb17 [emacs] Fix byte compilation warnings 2014-12-09 19:38:00 +00:00
Steve Purcell
7579057bc0 [emacs] Set comment-start to ";" so that comment-dwim works 2014-12-09 16:29:45 +00:00
Steve Purcell
01c91130d7 [emacs] Parse transaction leading lines more robustly
This began with noticing that the code didn't support the (ugly, yet
valid) case of a tab between the date and txn description. I took the
opportunity to make the regexes more consistent along the way.
2014-12-09 16:26:51 +00:00
Steve Purcell
b623306591 [emacs] Use markers instead of raw positions to make cleaning work better
Sometimes cleaning a buffer would leave the end of the buffer uncleaned,
because the end position would be moved along the way. This commit makes
the corresponding code use markers instead, which track the changes in
the buffer, and therefore ensure that the entire buffer is acted upon.
2014-12-09 15:11:44 +00:00
Steve Purcell
c8dd5d4a0a [emacs] When the first line is a txn, include it in ledger-sort-buffer
Without this fix, ledger-sort-region tends to skip the first
transaction when sorting a region or the entire buffer.
2014-12-09 14:40:39 +00:00
Steve Purcell
7a0b004f9d Use font-lock-preprocessor-face as the basis for directive faces 2014-12-09 12:48:19 +00:00
Craig Earls
9a857fc4fb Merge pull request #338 from happyalu/patch-1
ledger-regex: Indian Rupee Symbol

Thank you!
2014-12-07 20:35:32 -07:00
Alok Parlikar
eeb120f5e4 ledger-regex: Indian Rupee Symbol
Added the ₹ symbol to ledger-amount-regex
2014-12-07 21:42:31 -05:00
Craig Earls
2f0dcec10e Make sure there is alive window to switch back to when quitting reconcile buffer 2014-12-07 12:15:15 -07:00