emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/helm 4d1f38684c 2/2: Prevent using when-let (#2517)


From: ELPA Syncer
Subject: [nongnu] elpa/helm 4d1f38684c 2/2: Prevent using when-let (#2517)
Date: Tue, 31 May 2022 16:58:34 -0400 (EDT)

branch: elpa/helm
commit 4d1f38684c7bd770244704ff80f21f49e3891734
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    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

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