emacs-devel
[Top][All Lists]
Advanced

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

Re: Updating *Completions* as you type


From: Juri Linkov
Subject: Re: Updating *Completions* as you type
Date: Fri, 20 Oct 2023 09:49:36 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> Also: it might be nice to switch between history-sorting and
> alphabetized-sorting during the course of completion, both for files and
> buffers.  Maybe we could do that by making a command which puts
> completion into a mode where it just ignores the display-sort-function
> specified by the completion metadata, and just always uses
> completions-sort.

To be able to implement switching between different sort orders
with a new key, first we need to implement revert-buffer-function
(bound to 'g') in the *Completions* buffer.

Then it will be possible just to toggle a new buffer-local variable
(initially set from 'completions-sort') and to revert the *Completions*
buffer with a new sort order.  Also will need to keep a previously
selected candidate that is implemented by your recent patch.



reply via email to

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