diff options
author | Craig Earls <enderw88@gmail.com> | 2015-04-05 09:37:45 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2015-04-05 09:37:45 -0700 |
commit | 86e11c14b6ee0d8ce831617c5b9c81113230ed81 (patch) | |
tree | a305aacf55b88e5f72a4565682e1117e67a443ca /lisp | |
parent | 4aab1078aea6c92cccbad2b54b10904b0f7b2531 (diff) | |
parent | f5ba76442c45a87f2eefe46c78a18ff291d85166 (diff) | |
download | fork-ledger-86e11c14b6ee0d8ce831617c5b9c81113230ed81.tar.gz fork-ledger-86e11c14b6ee0d8ce831617c5b9c81113230ed81.tar.bz2 fork-ledger-86e11c14b6ee0d8ce831617c5b9c81113230ed81.zip |
Merge pull request #411 from thdox/bug-1060
[emacs] Fix bug 1060.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ledger-reconcile.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ledger-reconcile.el b/lisp/ledger-reconcile.el index 2396748a..326266b7 100644 --- a/lisp/ledger-reconcile.el +++ b/lisp/ledger-reconcile.el @@ -118,6 +118,11 @@ Possible values are '(date)', '(amount)', '(payee)' or '(0)' for no sorting, i.e :type 'boolean :group 'ledger-reconcile) +(defcustom ledger-reconcile-finish-force-quit nil + "If t, will force closing reconcile window after \\[ledger-reconcile-finish]." + :type 'boolean + :group 'ledger-reconcile) + ;; s-functions below are copied from Magnars' s.el ;; prefix ledger-reconcile- is added to not conflict with s.el (defun ledger-reconcile-s-pad-left (len padding s) @@ -314,7 +319,7 @@ Return the number of uncleared xacts found." (defun ledger-reconcile-finish () "Mark all pending posting or transactions as cleared. Depends on ledger-reconcile-clear-whole-transactions, save the buffers -and exit reconcile mode" +and exit reconcile mode if `ledger-reconcile-finish-force-quit'" (interactive) (save-excursion (goto-char (point-min)) @@ -327,7 +332,8 @@ and exit reconcile mode" (ledger-toggle-current 'cleared)))) (forward-line 1))) (ledger-reconcile-save) - (ledger-reconcile-quit)) + (when ledger-reconcile-finish-force-quit + (ledger-reconcile-quit))) (defun ledger-reconcile-quit () |