summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-03-23 14:15:46 -0700
committerCraig Earls <enderw88@gmail.com>2013-03-23 14:15:46 -0700
commit1366e04f11a0cf99bfd5c8d09c11262b52f3633b (patch)
tree5a40162a40c9e945ba047c4b08f28cfb47b25de0 /lisp
parent9284600a54c8b4d37b63d25dd9e16dba664badbe (diff)
parentb73e650e5f9dd2f3b2c90f445b878258f1e994d0 (diff)
downloadfork-ledger-1366e04f11a0cf99bfd5c8d09c11262b52f3633b.tar.gz
fork-ledger-1366e04f11a0cf99bfd5c8d09c11262b52f3633b.tar.bz2
fork-ledger-1366e04f11a0cf99bfd5c8d09c11262b52f3633b.zip
Merge pull request #168 from vanicat/t/clean-no-fail
Don't fail cleaning after reconcile when some buffer have been killed
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ldg-reconcile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ldg-reconcile.el b/lisp/ldg-reconcile.el
index 99958aaa..c33eef2e 100644
--- a/lisp/ldg-reconcile.el
+++ b/lisp/ldg-reconcile.el
@@ -257,7 +257,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