diff options
author | Rémi Vanicat <vanicat@debian.org> | 2013-03-21 23:28:14 +0100 |
---|---|---|
committer | Rémi Vanicat <vanicat@debian.org> | 2013-03-21 23:28:14 +0100 |
commit | b73e650e5f9dd2f3b2c90f445b878258f1e994d0 (patch) | |
tree | 083c1e75d83b076140a0b3f06db18007762ff50d /lisp | |
parent | 75ba85ff8efc8226261203d7af063c9be3d0c034 (diff) | |
download | fork-ledger-b73e650e5f9dd2f3b2c90f445b878258f1e994d0.tar.gz fork-ledger-b73e650e5f9dd2f3b2c90f445b878258f1e994d0.tar.bz2 fork-ledger-b73e650e5f9dd2f3b2c90f445b878258f1e994d0.zip |
Don't fail cleaning after reconcile when some buffer have been killed
If buffer in leger-buf has been killed, ledger-reconcile-quit-cleanup
will fail with an error. Better to do nothing.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ldg-reconcile.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ldg-reconcile.el b/lisp/ldg-reconcile.el index 511f8f70..662ef6c1 100644 --- a/lisp/ldg-reconcile.el +++ b/lisp/ldg-reconcile.el @@ -252,7 +252,7 @@ and exit reconcile mode" "Cleanup all hooks established by reconcile mode." (interactive) (let ((buf ledger-buf)) - (if buf + (if (buffer-live-p buf) (with-current-buffer buf (remove-hook 'after-save-hook 'ledger-reconcile-refresh-after-save t) (if ledger-fold-on-reconcile |