GNU bug report logs - #5139
23.1.50; feature request: completion-buffer-sort-function

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>

Date: Mon, 7 Dec 2009 03:30:04 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 5139 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Roland Winkler
 <Roland.Winkler <at> physik.uni-erlangen.de>
Cc: 5139 <at> debbugs.gnu.org
Subject: RE: bug#5139: 23.1.50; feature request:
 completion-buffer-sort-function
Date: Tue, 1 Oct 2019 09:53:49 -0700 (PDT)
> > When a *Completions* buffer is generated by minibuffer-completion-help
> > it will sort the possible completions using string-lessp. It would be
> > nice if the sorting order was not hard-coded but could be modified
> > according to context. That's why I want to suggest to replace the
> > call of string-lessp by something like
> >
> >  (funcall completion-buffer-sort-function)
> >
> > so that completion-buffer-sort-function can be bound by the caller
> > to something else according to context.
> 
> I think what the various packages that do completion (ido, helm,
> company, etc) do is replace the entire completion function, which seems
> more flexible.  And making all those respect such a variable I thing
> would be difficult.
> 
> So I'm closing this as a "wontfix".

FWIW, Icicles does not hard-code the sort function,
including not doing so in any particular command.

(So it does not "replace the entire completion
function" with another one that hard-codes a
different sort function.)

It lets user change the sort order on the fly
during completion.  And it lets users define and
control the available sort functions, in general
and per command.

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




This bug report was last modified 5 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.