[Top][All Lists]

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

Re: [PATCH] `completing-read`: Add `group-function` support to completio

From: Daniel Mendler
Subject: Re: [PATCH] `completing-read`: Add `group-function` support to completion metadata (REVISED PATCH VERSION 2)
Date: Tue, 11 May 2021 20:58:33 +0200

On 5/11/21 8:44 PM, Eli Zaretskii wrote:
> And this is supposed to be progress? to force users to customize
> sorting by providing their own functions?  IMO, it is a step backward,
> not forward: we are making Emacs harder to use for everyone who isn't
> a Lisp programmer.

What about providing a group sort function which sorts alphabetically as
Juri already proposed? Alphabetical sorting can be offered as choice for
in the defcustom.

(defcustom completions-group-sort-function #'identity
  "Sorting function for the groups.
The function takes and returns an alist of groups, where the each
element is a pair of a group title string and the candidate strings
belonging to the group."
  :type '(choice
          (const :tag "No sorting"
          (const :tag "Alphabetical sorting"
  :version "28.1")

> Btw, I don't see the variable you mention anywhere in the current
> master.  What am I missing?

The group function patch has not been merged yet.


reply via email to

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