emacs-devel
[Top][All Lists]
Advanced

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

RE: [External] : Re: Updating *Completions* as you type


From: Drew Adams
Subject: RE: [External] : Re: Updating *Completions* as you type
Date: Mon, 16 Oct 2023 03:19:30 +0000

> Maybe a new function should allow any sorting order?

FWIW:

Icicles lets a caller of a function such as
`completing-read' specify a set of sort functions
and the initial one to use.

And users can change among those sort functions
on the fly - by cycling them or inputting the name
(with completion of course).  Reverse the current
sort order with a numeric prefix arg.

User switching of sort order is _very_ useful, IMO.
(And yes, incremental updating of *Completions"
needs to automatically re-sort.)
___

https://www.emacswiki.org/emacs/Icicles_-_Sorting_Candidates

______________________________________________

FWIW2:

In library `sortie.el' I implemented the same thing, 
without Icicles, using only vanilla Emacs completion
metadata entries `display-sort-function' and
`cycle-sort-function'.

[I don't know of another library (besides Icicles)
that provides interactive changing of sort order -
but maybe there is one now.]
___

https://www.emacswiki.org/emacs/Sortie




reply via email to

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