branch: elpa/gc-buffers commit 7ac5ba1a89697d79f6665ec0b97f957669e926d7 Author: Akib Azmain Turja <a...@disroot.org> Commit: Akib Azmain Turja <a...@disroot.org>
Ignore errors in gc-buffers-functions --- gc-buffers.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gc-buffers.el b/gc-buffers.el index fbfdfad0de..0caafb2065 100644 --- a/gc-buffers.el +++ b/gc-buffers.el @@ -102,8 +102,9 @@ not have any side-effect." (dolist (buffer (buffer-list)) (when (not (run-hook-with-args-until-success 'gc-buffers-ignore-functions buffer)) - (let ((kill-fn (run-hook-with-args-until-success - 'gc-buffers-functions buffer))) + (let ((kill-fn (ignore-errors + (run-hook-with-args-until-success + 'gc-buffers-functions buffer)))) (when kill-fn (funcall (if (eq kill-fn t) #'kill-buffer