diff options
author | Craig Earls <enderw88@gmail.com> | 2014-05-18 19:43:39 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-05-18 19:43:39 -0700 |
commit | b5908bf541082bea5a441c509d23967ebfc6e897 (patch) | |
tree | 18ed1d91c6b314b19f9456177eddb098b510336b /lisp | |
parent | 8e6cdcc1d13533252b1f6e6088dca966b64e4c88 (diff) | |
download | fork-ledger-b5908bf541082bea5a441c509d23967ebfc6e897.tar.gz fork-ledger-b5908bf541082bea5a441c509d23967ebfc6e897.tar.bz2 fork-ledger-b5908bf541082bea5a441c509d23967ebfc6e897.zip |
Fix bug 1040 Saving in reconcile buffer doesn't stay in reconcile buffer
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ledger-reconcile.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lisp/ledger-reconcile.el b/lisp/ledger-reconcile.el index 7f954336..c09a5b60 100644 --- a/lisp/ledger-reconcile.el +++ b/lisp/ledger-reconcile.el @@ -228,19 +228,18 @@ Return the number of uncleared xacts found." (if (and come-back cur-win) (select-window cur-win)))))) + (defun ledger-reconcile-save () "Save the ledger buffer." (interactive) - (let ((curpoint (point))) - (dolist (buf (cons ledger-buf ledger-bufs)) - (with-current-buffer buf - (save-buffer))) - (with-current-buffer (get-buffer ledger-recon-buffer-name) - (set-buffer-modified-p nil) - (ledger-display-balance) - (goto-char curpoint) - ;(ledger-reconcile-visit t) - ))) + (let ((cur-buf (current-buffer)) + (cur-point (point))) + (dolist (buf (cons ledger-buf ledger-bufs)) + (with-current-buffer buf + (basic-save-buffer))) + (switch-to-buffer-other-window cur-buf) + (goto-char cur-point))) + (defun ledger-reconcile-finish () "Mark all pending posting or transactions as cleared. |