]> 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)
committerEshel Yaron <me@eshelyaron.com>
Thu, 4 Jan 2024 21:20:15 +0000 (22:20 +0100)
commit76b43f3c56f37dc632a46a385971f249a6e61b50
tree02e3929b1b4a7ad99460a03b211fbb3e3574c630
parentaf11952ea698deb42cbf4b0b668b3cb3b6243f90
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'.

(cherry picked from commit dc99be8e633fa0d8594b72f41584a53590939fde)
doc/lispref/minibuf.texi
etc/NEWS
lisp/calendar/calendar.el
lisp/minibuffer.el