]> git.eshelyaron.com Git - emacs.git/commitdiff
Make gnus-check-backend-function mode `debug-on-signal' friendly
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Dec 2021 03:29:43 +0000 (04:29 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Dec 2021 03:29:43 +0000 (04:29 +0100)
* lisp/gnus/gnus.el (gnus-check-backend-function): Allow running
with `debug-on-signal'.

lisp/gnus/gnus.el

index 56934dfa15d0041f26bf9ca36750a9051813e984..afe07ee46f9232da0f12784e3fd3661cc86048b5 100644 (file)
@@ -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."
   (ignore-errors
-    (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))))))