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


View this message in rfc822 format

From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
To: emacs-pretest-bug <at> gnu.org
Subject: bug#5139: 23.1.50; feature request: completion-buffer-sort-function
Date: Sun, 06 Dec 2009 21:21:36 -0600
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.

Kind of related:

Such a function could do more than sorting the completions (or being
a sort predicate). It could also help formatting the *Completions*
buffer. Say, a *Completions* buffer can be hard to read when it
contains many entries. If it lists, for example, buffer names, it
could sort the buffer names by mode and put some kind of seperator
between groups of buffers with the same mode. Then this seperator
could be translated into something like an empty line in the
*Completions* buffer.

Roland



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.