branch: externals/vertico
commit f104ac4e2ae890555f6a77b1e741fc9b75914f43
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Use fboundp check to avoid package-lint warning
---
 vertico.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vertico.el b/vertico.el
index 428b68ada3..cc9c2a9f42 100644
--- a/vertico.el
+++ b/vertico.el
@@ -479,7 +479,7 @@ The value should lie between 0 and vertico-count/2."
   "Protect FUN such that errors are caught.
 If an error occurs, the FUN is retried with `debug-on-error' enabled and
 the stack trace is shown in the *Messages* buffer."
-  (static-if (>= emacs-major-version 30)
+  (static-if (fboundp 'handler-bind) ;; Available on Emacs 30
       (ignore-errors
         (handler-bind ((error #'vertico--debug))
           (funcall fun)))

Reply via email to