branch: externals/corfu
commit 0d3fa4f4f8ab5f0b8324f1065629f30d4dbf6875
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

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

diff --git a/corfu.el b/corfu.el
index f1424ccd0e..4923647940 100644
--- a/corfu.el
+++ b/corfu.el
@@ -867,7 +867,7 @@ the last command must be listed in 
`corfu-continue-commands'."
   "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 #'corfu--debug))
           (funcall fun)))

Reply via email to