summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-03-17 20:43:43 -0700
committerCraig Earls <enderw88@gmail.com>2013-03-17 20:43:43 -0700
commit43ef1df6ab4e9f3c718cb6093c8acc517a888351 (patch)
tree3a42d61edb2b7fa6a21cd0f8772c04c1ff8cde2d
parentc2999a70f237cbdf8f666d80c4468898d94fd6ec (diff)
parent431d7e5b25f7e2997494ace7a0be78492c5d688b (diff)
downloadfork-ledger-43ef1df6ab4e9f3c718cb6093c8acc517a888351.tar.gz
fork-ledger-43ef1df6ab4e9f3c718cb6093c8acc517a888351.tar.bz2
fork-ledger-43ef1df6ab4e9f3c718cb6093c8acc517a888351.zip
Merge branch 'next' into ledger-mode-automatic-transactions
-rw-r--r--lisp/ldg-reconcile.el16
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ldg-reconcile.el b/lisp/ldg-reconcile.el
index c5e20c64..40795ca2 100644
--- a/lisp/ldg-reconcile.el
+++ b/lisp/ldg-reconcile.el
@@ -205,11 +205,13 @@ Return the number of uncleared xacts found."
(defun ledger-reconcile-save ()
"Save the ledger buffer."
(interactive)
- (dolist (buf (cons ledger-buf ledger-bufs))
- (with-current-buffer buf
- (save-buffer)))
- (set-buffer-modified-p nil)
- (ledger-display-balance))
+ (let ((curpoint (point)))
+ (dolist (buf (cons ledger-buf ledger-bufs))
+ (with-current-buffer buf
+ (save-buffer)))
+ (set-buffer-modified-p nil)
+ (ledger-display-balance)
+ (goto-char curpoint)))
(defun ledger-reconcile-finish ()
"Mark all pending posting or transactions as cleared.
@@ -344,7 +346,9 @@ moved and recentered. If they aren't strange things happen."
(if (member this-command (list 'next-line
'previous-line
'mouse-set-point
- 'ledger-reconcile-toggle))
+ 'ledger-reconcile-toggle
+ 'end-of-buffer
+ 'beginning-of-buffer))
(if ledger-buffer-tracks-reconcile-buffer
(save-excursion
(ledger-reconcile-visit t)))))