From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#5139: 23.1.50; feature request: completion-buffer-sort-function Date: Sun, 06 Dec 2009 21:21:36 -0600 Message-ID: <87r5r779kv.fsf@regnitz.physics.niu.edu> Reply-To: Roland Winkler , 5139@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260157685 31488 80.91.229.12 (7 Dec 2009 03:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 03:48:05 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 07 04:47:58 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHUZj-0005H8-3F for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Dec 2009 04:47:51 +0100 Original-Received: from localhost ([127.0.0.1]:34239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHUZi-00031o-VM for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 22:47:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHUZS-0002rH-4a for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 22:47:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHUZN-0002nr-F2 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 22:47:33 -0500 Original-Received: from [199.232.76.173] (port=48569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHUZN-0002nf-7I for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 22:47:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53384) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHUZM-0006vz-IF for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 22:47:28 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB73lPsL032478; Sun, 6 Dec 2009 19:47:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB73U5Lg030449; Sun, 6 Dec 2009 19:30:05 -0800 Resent-Date: Sun, 6 Dec 2009 19:30:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Roland Winkler" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 07 Dec 2009 03:30:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 5139 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126015611929854 (code B ref -1); Mon, 07 Dec 2009 03:30:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 7 Dec 2009 03:21:59 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB73LvSG029851 for ; Sun, 6 Dec 2009 19:21:59 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:55923 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NHUAf-0005CY-58 for emacs-pretest-bug@gnu.org; Sun, 06 Dec 2009 22:21:57 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NHUAd-0005PD-SM for emacs-pretest-bug@gnu.org; Sun, 06 Dec 2009 22:21:56 -0500 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:24546) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHUAd-0005NU-JL for emacs-pretest-bug@gnu.org; Sun, 06 Dec 2009 22:21:55 -0500 Original-Received: from regnitz.physics.niu.edu (adsl-68-77-29-3.dsl.emhril.ameritech.net [68.77.29.3]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 7780C2145A for ; Mon, 7 Dec 2009 04:21:40 +0100 (CET) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 06 Dec 2009 22:47:33 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33344 gmane.emacs.pretest.bugs:25285 Archived-At: 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