]> git.eshelyaron.com Git - emacs.git/commit
(minibuffer-completion-help): Add group sorting
authorDaniel Mendler <mail@daniel-mendler.de>
Tue, 11 May 2021 07:08:05 +0000 (09:08 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 20 May 2021 17:50:35 +0000 (20:50 +0300)
commitcb8b994217ed958ae6d5076ab1747ea6fb43a8dc
tree844bd373ab2ac46c1fd3b5ab8488364802d3ffba
parent836d69bc60b3be349c658e9cc78f60d7e7730fd9
(minibuffer-completion-help): Add group sorting

Sort the groups as returned by the `group-function` of the completion
table depending on the value of the customizable variable
`completions-group-sort`.  By default `completions-group-sort` is set
to nil.  The variable can be set to the symbol `alphabetical` in order
to configure alphabetical sorting.  Furthermore, a custom sorting
function can be used as value of `completions-group-sort`.

* lisp/minibuffer.el (completions-group-sort): New variable.
(minibuffer--group-by): Add SORT-FUN argument.
(minibuffer-completion-help): Pass `completions-group-sort` to
`minibuffer--group-by`.
lisp/minibuffer.el