]> git.eshelyaron.com Git - emacs.git/commit
Support display-sort-function in completion-category-overrides (bug#68214)
authorJuri Linkov <juri@linkov.net>
Thu, 4 Jan 2024 17:20:30 +0000 (19:20 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 4 Jan 2024 17:20:30 +0000 (19:20 +0200)
commitdc99be8e633fa0d8594b72f41584a53590939fde
tree54f1df1e061ac30a01c50c83e8041bb46234359c
parentd69fb6dab28e55447516341cf28f1b6d06937ad6
Support display-sort-function in completion-category-overrides (bug#68214)

* doc/lispref/minibuf.texi (Completion Variables):
Add 'display-sort-function' to the table of
'completion-category-overrides'.

* lisp/calendar/calendar.el (calendar-read-date): Add metadata
category 'calendar-month' for completing-read reading a month name.

* lisp/minibuffer.el (completion-category-defaults):
Add 'display-sort-function' with identity for the category 'calendar-month'.
(completion-category-overrides): Add customization for completion sorting
with 'display-sort-function' and a choice like in 'completions-sort'.
(completion-metadata-override-get): New function.
(minibuffer-completion-help): Use 'completion-metadata-override-get'
instead of 'completion-metadata-get' to get sort-fun from
'display-sort-function'.
doc/lispref/minibuf.texi
etc/NEWS
lisp/calendar/calendar.el
lisp/minibuffer.el