[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5a1785d: Sort Info index completions alphabetically
From: |
Stefan Kangas |
Subject: |
master 5a1785d: Sort Info index completions alphabetically |
Date: |
Wed, 26 Aug 2020 19:15:05 -0400 (EDT) |
branch: master
commit 5a1785d58ad807cb8e4af6903313b1c6b49cf572
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Sort Info index completions alphabetically
* lisp/info.el (Info-complete-menu-item): Sort the list of completions
alphabetically using 'nreverse'. This makes no difference for Emacs
but helps third-party completion frameworks such as Ivy. (Bug#38614)
Suggested by Howard Melman <hmelman@gmail.com>.
---
lisp/info.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/info.el b/lisp/info.el
index 8810bc7..fb47cb4 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -2775,6 +2775,8 @@ Because of ambiguities, this should be concatenated with
something like
;; Go back to the start node (for the next completion).
(unless (equal Info-current-node orignode)
(Info-goto-node orignode))
+ ;; Sort list alphabetically.
+ (setq completions (nreverse completions))
;; Update the cache.
(setq Info-complete-cache
(list Info-current-file Info-current-node
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 5a1785d: Sort Info index completions alphabetically,
Stefan Kangas <=