From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64656: 29.0.91; Doc of minibuffer histories and completing-read - automatic addition of completions to DEFAULT list Date: Thu, 09 Nov 2023 21:31:43 +0200 Message-ID: <838r76zpsw.fsf@gnu.org> References: <83y1jga0nr.fsf@gnu.org> <83o7kb9a40.fsf@gnu.org> <86bkg84de3.fsf@mail.linkov.net> <86jzrhlrub.fsf_-_@mail.linkov.net> <867cmw83zb.fsf@mail.linkov.net> <867cmvcpco.fsf@mail.linkov.net> <86a5rmanrn.fsf@mail.linkov.net> <83edgyzxcx.fsf@gnu.org> <86jzqqj1u2.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64656@debbugs.gnu.org, drew.adams@oracle.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 09 20:33:50 2023 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 1r1Ami-0008hD-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Nov 2023 20:33:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1AmA-0004K2-0b; Thu, 09 Nov 2023 14:33:15 -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 1r1AlL-0004A1-8t for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 14:32:24 -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 1r1AlK-00062f-Ua for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 14:32:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r1Aly-0006Hl-5n for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 14:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Nov 2023 19:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64656 X-GNU-PR-Package: emacs Original-Received: via spool by 64656-submit@debbugs.gnu.org id=B64656.169955836924141 (code B ref 64656); Thu, 09 Nov 2023 19:33:02 +0000 Original-Received: (at 64656) by debbugs.gnu.org; 9 Nov 2023 19:32:49 +0000 Original-Received: from localhost ([127.0.0.1]:48776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r1Alk-0006HI-Bo for submit@debbugs.gnu.org; Thu, 09 Nov 2023 14:32:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r1AlZ-0006Gu-0b for 64656@debbugs.gnu.org; Thu, 09 Nov 2023 14:32:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1Akp-0005yS-IO; Thu, 09 Nov 2023 14:31:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LvYH/qFUcit6c3reruU8dniMB6c9vlJFifKWhu2G8/k=; b=rxFyPrEC/VE6 ix1rDgyfhQ/tN/wD9eiS9N7PVrQR4rR/we7FEd9AuXTQi8FuhxGUe7lufGKL1JshF0SohYTZL41PA XlqhO8czsB/LoiNfKAYeCWPRIX8heZP8n6goCQYGu60d+MLCErPluixHxHdLtAOuUdFxSn403lMxy ofTSaHw01SQ8B7gCZXa6R+cYCdzvBffbEx3d2suMxnUgQsFl1n2CLFWPI4zddzNVJVveUpllCAOX1 vwhaLfKS39XP72t6QgpEMCy/U6S3SJHhTt6vuJNIV0KJUKy0m2DVjy14bkQOjsCIELXCOFBLQwrE2 e6evHPEbgLouObmXnpEfQw==; In-Reply-To: <86jzqqj1u2.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 09 Nov 2023 19:03:49 +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:274070 Archived-At: > From: Juri Linkov > Cc: drew.adams@oracle.com, 64656@debbugs.gnu.org > Date: Thu, 09 Nov 2023 19:03:49 +0200 > > >> I guess not many users customize 'completions-sort' to nil. > >> Otherwise someone may notice that the order of unsorted files > >> is reversed from the output of `ls -U`. This could be fixed by: > > > > The order is not reverse here, AFAICT, so please show a reproducible > > recipe to make sure we are on the same page regarding this change. > > A recipe is to customize `completions-sort' to nil ("No sorting"), > then first call `M-& ls -U RET' and afterwards `C-x C-f TAB TAB' > and compare the contents of two buffers *Async Shell Command* > and *Completions*. The order of files is reversed. OK, I see it now, thanks. But IMO this raises several issues: . completions-sort affects all completions, not just completions of file names, right? So why the change only for file names? . who said that the order we get file names from readdir is the "unsorted order", and not its reverse? . in any case, I think we should reverse only when completions-sort is nil, because otherwise we could adversely affect the sorting performed on the results