emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gc-buffers 7ac5ba1a89 10/11: Ignore errors in gc-buffers-f


From: ELPA Syncer
Subject: [nongnu] elpa/gc-buffers 7ac5ba1a89 10/11: Ignore errors in gc-buffers-functions
Date: Sun, 27 Nov 2022 15:59:54 -0500 (EST)

branch: elpa/gc-buffers
commit 7ac5ba1a89697d79f6665ec0b97f957669e926d7
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]