diff options
author | Craig Earls <enderw88@gmail.com> | 2013-09-20 07:26:44 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2013-09-20 07:26:44 -0700 |
commit | bee6605e084777261f1536e4e65f76bb94eca06c (patch) | |
tree | 678bddcb8dc8bfd87d352084c3dece144a0974ed /lisp | |
parent | 9f3afc26f5e7863ed8beac3a411dab8becc7bff9 (diff) | |
parent | d30c3fb869b8c4f7740eefec573fadedbe21b7d1 (diff) | |
download | fork-ledger-bee6605e084777261f1536e4e65f76bb94eca06c.tar.gz fork-ledger-bee6605e084777261f1536e4e65f76bb94eca06c.tar.bz2 fork-ledger-bee6605e084777261f1536e4e65f76bb94eca06c.zip |
Merge branch 'master' into ledger-mode-automatic-transactions
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/CMakeLists.txt | 38 | ||||
-rw-r--r-- | lisp/ledger-xact.el | 4 |
2 files changed, 21 insertions, 21 deletions
diff --git a/lisp/CMakeLists.txt b/lisp/CMakeLists.txt index 2258fd5d..33fe6f14 100644 --- a/lisp/CMakeLists.txt +++ b/lisp/CMakeLists.txt @@ -1,23 +1,21 @@ set(EMACS_LISP_SOURCES - ldg-commodities.el - ldg-complete.el - ldg-exec.el - ldg-fonts.el - ldg-init.el - ldg-mode.el - ldg-new.el - ldg-occur.el - ldg-post.el - ldg-reconcile.el - ldg-regex.el - ldg-report.el - ldg-sort.el - ldg-state.el - ldg-test.el - ldg-texi.el - ldg-xact.el - ldg-context.el - ldg-schedule.el) + ledger-commodities.el + ledger-complete.el + ledger-exec.el + ledger-fonts.el + ledger-init.el + ledger-mode.el + ledger-occur.el + ledger-post.el + ledger-reconcile.el + ledger-regex.el + ledger-report.el + ledger-schedule.el + ledger-sort.el + ledger-state.el + ledger-test.el + ledger-texi.el + ledger-xact.el) # find emacs and complain if not found find_program(EMACS_EXECUTABLE emacs) @@ -30,7 +28,7 @@ macro(add_emacs_lisp_target el) OUTPUT ${el}c COMMAND ${EMACS_EXECUTABLE} -L ${CMAKE_CURRENT_BINARY_DIR} - -l ${CMAKE_CURRENT_BINARY_DIR}/ldg-regex.el + -l ${CMAKE_CURRENT_BINARY_DIR}/ledger-regex.el -batch -f batch-byte-compile ${CMAKE_CURRENT_BINARY_DIR}/${el} DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${el} diff --git a/lisp/ledger-xact.el b/lisp/ledger-xact.el index fac040e6..7f2200a4 100644 --- a/lisp/ledger-xact.el +++ b/lisp/ledger-xact.el @@ -150,7 +150,9 @@ MOMENT is an encoded date" (backward-paragraph 2) (re-search-forward ledger-iso-date-regexp) (replace-match date) - (ledger-next-amount))) + (ledger-next-amount) + (if (re-search-forward "[-0-9]") + (goto-char (match-beginning 0))))) (defun ledger-delete-current-transaction (pos) "Delete the transaction surrounging point." |