[Top][All Lists]

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

master 9ab479b: Make gnus-check-backend-function mode `debug-on-signal'

From: Lars Ingebrigtsen
Subject: master 9ab479b: Make gnus-check-backend-function mode `debug-on-signal' friendly
Date: Sun, 5 Dec 2021 22:29:53 -0500 (EST)

branch: master
commit 9ab479b639c3efc56c7275b662fd0d5501cbfee2
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make gnus-check-backend-function mode `debug-on-signal' friendly
    * lisp/gnus/gnus.el (gnus-check-backend-function): Allow running
    with `debug-on-signal'.
 lisp/gnus/gnus.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 56934df..afe07ee 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -3150,9 +3150,9 @@ g -- Group name."
   "Check whether GROUP supports function FUNC.
 GROUP can either be a string (a group name) or a select method."
-    (let ((method (if (stringp group)
-                     (car (gnus-find-method-for-group group))
-                   group)))
+    (when-let ((method (if (stringp group)
+                          (car (gnus-find-method-for-group group))
+                        group)))
       (unless (featurep method)
        (require method))
       (fboundp (intern (format "%s-%s" method func))))))

reply via email to

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