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

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

[elpa] externals/which-key 28f386c 25/32: Fix key sort order functions


From: ELPA Syncer
Subject: [elpa] externals/which-key 28f386c 25/32: Fix key sort order functions
Date: Wed, 30 Jun 2021 18:57:31 -0400 (EDT)

branch: externals/which-key
commit 28f386cc4af8c0fe21269bb587a5bb229ba3834e
Author: Justin Burkett <justin@burkett.cc>
Commit: Justin Burkett <justin@burkett.cc>

    Fix key sort order functions
    
    We now always get the full key description (prefix + binding)
---
 which-key.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/which-key.el b/which-key.el
index 13c440d..2d81d2e 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1343,7 +1343,9 @@ width) in lines and characters respectively."
   "Sorting function used for `which-key-key-order' and
 `which-key-key-order-alpha'."
   (save-match-data
-    (let* ((rngrgxp "^\\([^ ]+\\) \\.\\. [^ ]+")
+    (let* ((a (which-key--extract-key a))
+           (b (which-key--extract-key b))
+           (rngrgxp "^\\([^ ]+\\) \\.\\. [^ ]+")
            (a (if (string-match rngrgxp a) (match-string 1 a) a))
            (b (if (string-match rngrgxp b) (match-string 1 b) b))
            (aem? (string-equal a ""))



reply via email to

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