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>.
This commit is contained in:
parent
1a167f5a7a
commit
5a1785d58a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue