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.
This commit is contained in:
parent
75ba85ff8e
commit
b73e650e5f
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ and exit reconcile mode"
|
||||||
"Cleanup all hooks established by reconcile mode."
|
"Cleanup all hooks established by reconcile mode."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((buf ledger-buf))
|
(let ((buf ledger-buf))
|
||||||
(if buf
|
(if (buffer-live-p buf)
|
||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
(remove-hook 'after-save-hook 'ledger-reconcile-refresh-after-save t)
|
(remove-hook 'after-save-hook 'ledger-reconcile-refresh-after-save t)
|
||||||
(if ledger-fold-on-reconcile
|
(if ledger-fold-on-reconcile
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue