mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-11 09:20:51 +00:00
Fix prefix sorting
This commit is contained in:
parent
465d2fb2e4
commit
e42d946cd9
@ -189,7 +189,7 @@
|
||||
("A" . "Z")
|
||||
("b" . "y")
|
||||
("B" . "Y")
|
||||
("p" . "Prefix")
|
||||
("p" . "prefix")
|
||||
("SPC" . "x")
|
||||
("C-a" . "w"))))
|
||||
(let ((which-key-sort-uppercase-first t))
|
||||
|
@ -1401,7 +1401,8 @@ Uses `string-lessp' after applying lowercase."
|
||||
(string-lessp (downcase (cdr acons)) (downcase (cdr bcons))))
|
||||
|
||||
(defsubst which-key--group-p (description)
|
||||
(keymapp (intern description)))
|
||||
(or (equal description "prefix")
|
||||
(keymapp (intern description))))
|
||||
|
||||
(defun which-key-prefix-then-key-order (acons bcons)
|
||||
"Order first by whether A and/or B is a prefix with no prefix
|
||||
|
Loading…
Reference in New Issue
Block a user