Reconcile code cleanup

This commit is contained in:
Craig Earls 2013-03-14 11:37:12 -07:00
parent b608ed23e4
commit f89665ba44

View file

@ -148,13 +148,11 @@ And calculate the target-delta of the account being reconciled."
"Force the reconciliation window to refresh. "Force the reconciliation window to refresh.
Return the number of uncleared xacts found." Return the number of uncleared xacts found."
(interactive) (interactive)
(let ((inhibit-read-only t) (let ((inhibit-read-only t))
(line (count-lines (point-min) (point))))
(erase-buffer) (erase-buffer)
(prog1 (ledger-do-reconcile) (prog1 (ledger-do-reconcile)
(set-buffer-modified-p t) (set-buffer-modified-p t)
(goto-char (point-min)) (goto-char (point-min)))))
(forward-line line))))
(defun ledger-reconcile-refresh-after-save () (defun ledger-reconcile-refresh-after-save ()
"Refresh the recon-window after the ledger buffer is saved." "Refresh the recon-window after the ledger buffer is saved."