From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#5139: 23.1.50; feature request: completion-buffer-sort-function Date: Tue, 1 Oct 2019 09:53:49 -0700 (PDT) Message-ID: References: <87r5r779kv.fsf@regnitz.physics.niu.edu> <87r23w4inf.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="154357"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 5139@debbugs.gnu.org To: Lars Ingebrigtsen , Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 01 18:55:33 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFLQy-000e1G-Nd for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Oct 2019 18:55:32 +0200 Original-Received: from localhost ([::1]:45068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFLQw-0006V4-K4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Oct 2019 12:55:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58312) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFLQX-0006SQ-7F for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFLQU-00027F-Do for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:55:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFLQT-00026l-VB for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFLQT-0004AV-RD for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 12:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 16:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 5139-submit@debbugs.gnu.org id=B5139.156994889015999 (code B ref 5139); Tue, 01 Oct 2019 16:55:01 +0000 Original-Received: (at 5139) by debbugs.gnu.org; 1 Oct 2019 16:54:50 +0000 Original-Received: from localhost ([127.0.0.1]:34652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFLQI-00049y-DY for submit@debbugs.gnu.org; Tue, 01 Oct 2019 12:54:50 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:37726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFLQG-00049l-PC for 5139@debbugs.gnu.org; Tue, 01 Oct 2019 12:54:49 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x91GrpmV061937; Tue, 1 Oct 2019 16:54:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=o2SS/UmxNRherAacJiupP+4pKPIm6NRMxC8QSLTbzY4=; b=P9WUlWx9zYaNIRKBb4r4CH5mQ1XJkyN0RXjS23k4MqM2/KMKcMrX2HPlKKlp2GtIcVqI DIItHf+sOs+v4wq9WTZW02DP1waBe8WCMHkgi5sQBhoHgoIrtHuNmUve8TYGs8x5cjzW Z2Q4QLOxxPU17TD2J/9BkcYjBlmIk/GzloJWPzNmd9LlTVMQNeuGpY3PckRj4+Vj1YoP 8Js8M5vUaI3+ibiKG/Ii1Uhau99vV+Hzn6OLwDykSUNB6r+HjV6sjUekfMWwCU7EHY34 Px/qkGxzh04AZIYMY10ZZgexUsCrkGx515kW1d4wLchGZ2rj3HdH/B0YfmmJgkt35J7y fQ== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2v9xxuqfmg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 01 Oct 2019 16:54:42 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x91Gro16025144; Tue, 1 Oct 2019 16:54:42 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2vc9dhmq83-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 01 Oct 2019 16:54:36 +0000 Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x91Grok7010266; Tue, 1 Oct 2019 16:53:52 GMT In-Reply-To: <87r23w4inf.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4900.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9397 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910010142 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9397 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910010142 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168050 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. >=20 > 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. >=20 > 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