From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68214: Completion sorting customization by category Date: Mon, 06 Jan 2025 15:22:35 -0500 Message-ID: References: <86a5pnzst1.fsf@mail.linkov.net> <871pxfviho.fsf@mail.linkov.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24791"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68214@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 06 21:23:26 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUtdG-0006LH-8I for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Jan 2025 21:23:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUtcv-0003if-A7; Mon, 06 Jan 2025 15:23:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUtct-0003hz-FT for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 15:23:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUtcs-0005Zc-Hl for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 15:23:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=cKfxZTOUra9hL/lpW4AIKWRgr2zwdXAdrIrZbZQtTxE=; b=YFZJK2PJps1eiNhAz82v7HVsECtrCT8mSWUig+GOo5FiCY3Xn+TCFMzrK6XYoYo22SA3paxI79uCR/rQ9xTjjZMQSupraQrRlL4g6nmAuANo4/CT/+sIHt6ZIv61w1JfLZ1L7p7vdxn3v/rZlGig33jOTB8TRkrTjBiyF/i3fXOYMkk4ycfYBdU3nlYH94+VJ/LtJfsJDc1AXS6Hc5CskODCz0nRWsVyieqX7Cq1kcuUay6Od3WcrkcKJXjuAXfZgFlT0vIvdJzbqL0FbNQxYx+i5XcZCHqJNwYF1H8Jjtm5N57gjgGeUsUFY793W0IzytfrQ8EWx72fhvF5AoS4eA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUtcs-0000uN-Co for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 15:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jan 2025 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68214 X-GNU-PR-Package: emacs Original-Received: via spool by 68214-submit@debbugs.gnu.org id=B68214.17361949713461 (code B ref 68214); Mon, 06 Jan 2025 20:23:02 +0000 Original-Received: (at 68214) by debbugs.gnu.org; 6 Jan 2025 20:22:51 +0000 Original-Received: from localhost ([127.0.0.1]:40253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUtcf-0000ti-FS for submit@debbugs.gnu.org; Mon, 06 Jan 2025 15:22:51 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:3379) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUtcd-0000tT-Jm for 68214@debbugs.gnu.org; Mon, 06 Jan 2025 15:22:47 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DDE80100043; Mon, 6 Jan 2025 15:22:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1736194957; bh=ZUcYI+FMBkIH4451HfNZ+DH2zC5+ewPSHvTs2Cs7dGU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fOIpiyZA4ZDPnT4a6gRR/Vb2e1Ds2ZyVEHCwbAiNQn2hB3mTywzHZHOd6Hs354jLY TgtUGh0DcY7vAXGuYLB+xhPXOUbJ4WueoSiL4cJVabDQM14JjwvQGfI6UAS714Z/PX hEGwDjtSHsbnupE/qwmCw2nnpj1HsDxIPc1PfxCPEmKdAZ7Rg5i3GmEMiWuKj85Ppb CATO0hhxOg86NFmoddNRErRYMWp3o1z/fVQU4zQvGGDgU+Gt3UDoip5KkyJDVf0nTZ tpBVMxCxMTB8rMXX+9mBLCkKiq4uPp9/lf8z2gyVxcVOd837gh6mfocmCogiaYB3Q/ IehXcEsVTu1rQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 20112100035; Mon, 6 Jan 2025 15:22:37 -0500 (EST) Original-Received: from pastel (69-165-162-104.dsl.teksavvy.com [69.165.162.104]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F008F120755; Mon, 6 Jan 2025 15:22:36 -0500 (EST) In-Reply-To: <871pxfviho.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 06 Jan 2025 21:40:19 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298697 Archived-At: >>> (setopt completion-category-overrides >>> '((calendar-month >>> (display-sort-function . identity)))) >> Why should the users need to customize their Emacs to get the "natural" order? > This was already added to completion-category-defaults, > so it's enabled by default. So let me state it some other way: why should it be customizable? When/why would a user prefer some other ordering? IMO `(display-sort-function . identity)` should be in the metadata of the completion table, like we do in several other completion tables. Stefan