branch: elpa/helm
commit 4d1f38684c7bd770244704ff80f21f49e3891734
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Prevent using when-let (#2517)
    
    as I am not sure it is loaded intially in emacs-26 and lower.
---
 helm-global-bindings.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/helm-global-bindings.el b/helm-global-bindings.el
index ec617aed0a..f57557de1c 100644
--- a/helm-global-bindings.el
+++ b/helm-global-bindings.el
@@ -22,9 +22,8 @@
 ;;
 ;;
 (defcustom helm-command-prefix-key
-  (when-let ((binding
-              (car (where-is-internal 'Control-X-prefix (list global-map)))))
-    (concat binding [?c]))
+  (helm-aif (car (where-is-internal 'Control-X-prefix (list global-map)))
+      (concat it [?c]))
   "The key `helm-command-prefix' is bound to in the global map."
   :type '(choice (string :tag "Key") (const :tag "no binding"))
   :group 'helm-config

Reply via email to