From unknown Tue Sep 09 21:33:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34622 <34622@debbugs.gnu.org> To: bug#34622 <34622@debbugs.gnu.org> Subject: Status: Find file prompt should indicate sole completion by appending a blank Reply-To: bug#34622 <34622@debbugs.gnu.org> Date: Wed, 10 Sep 2025 04:33:26 +0000 retitle 34622 Find file prompt should indicate sole completion by appending= a blank reassign 34622 emacs submitter 34622 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 34622 wishlist tag 34622 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 22 16:40:27 2019 Received: (at submit) by debbugs.gnu.org; 22 Feb 2019 21:40:27 +0000 Received: from localhost ([127.0.0.1]:48623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxIYV-0007pF-7l for submit@debbugs.gnu.org; Fri, 22 Feb 2019 16:40:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxIYS-0007p1-Pp for submit@debbugs.gnu.org; Fri, 22 Feb 2019 16:40:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:47389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gxIYN-000822-J5 for submit@debbugs.gnu.org; Fri, 22 Feb 2019 16:40:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxIYM-00071u-Ho for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 16:40:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxIYL-0007tY-Hh for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 16:40:18 -0500 Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:4920) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gxIYL-0007lf-18 for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 16:40:17 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7AA9812416B for ; Fri, 22 Feb 2019 21:40:11 +0000 (UTC) Received: from pdx1-sub0-mail-a30.g.dreamhost.com (unknown [100.96.35.41]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 349D0125330 for ; Fri, 22 Feb 2019 21:40:11 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a30.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Fri, 22 Feb 2019 21:40:11 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Obese-Hysterical: 46845eec1bb60adc_1550871611317_2064569388 X-MC-Loop-Signature: 1550871611317:298851408 X-MC-Ingress-Time: 1550871611316 Received: from pdx1-sub0-mail-a30.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a30.g.dreamhost.com (Postfix) with ESMTP id CABDF80B9A for ; Fri, 22 Feb 2019 13:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=DxK2Uw70LXOydHCx0QfCZXeniYI=; b=dCExbSJP5k94jgzJ 66Y+eumvi3MulpI0e3m4i312zdkEPeSDqXvL0aQyxqeRK/FV/GkTmAhHrmTYkKNF fKJWdvBhwzekVo5FA0poysIMsVrwKqItirvA0w3gJXoYDR84YB5X/c3r85fGj+ZJ KrbVzOto5meuA7j7bEI7gOIw6pM= Received: from jidanni.org (220-140-9-124.dynamic-ip.hinet.net [220.140.9.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a30.g.dreamhost.com (Postfix) with ESMTPSA id 2175080BB0 for ; Fri, 22 Feb 2019 13:40:09 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a30 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Find file prompt should indicate sole completion by appending a blank Date: Sat, 23 Feb 2019 05:40:07 +0800 Message-ID: <87k1hrijt4.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddruddtgdduheefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucffohhmrghinhepghhnuhdrohhrghenucfkphepvddvtddrudegtddrledruddvgeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedvvddtrddugedtrdelrdduvdegpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.38 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) With emacs, one can never be sure if the expansion Find file or URL: ~/bin/wwzz is the sole completion or not, without needing a second TAB press to get "[Sole completion]" shown. With bash, there is always a space added at end, "$ wc ~/bin/wwzz " so we know right away. I propose that emacs do the same: "Find file or URL: ~/bin/wwzz " and if they really want to enter a file with a " " at the end, well they could use C-q (quoted-insert). See also https://www.gnu.org/software/emacs/manual/html_node/elisp/Minibuffer-Completion.html but I am specifically talking about C-x C-f (find-file) and C-x d (dired). Sorry we did discuss this before... From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 23 02:36:24 2019 Received: (at 34622) by debbugs.gnu.org; 23 Feb 2019 07:36:24 +0000 Received: from localhost ([127.0.0.1]:48770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxRrE-0007EK-0M for submit@debbugs.gnu.org; Sat, 23 Feb 2019 02:36:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxRrC-0007E3-Ap; Sat, 23 Feb 2019 02:36:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxRr3-0000VM-6Q; Sat, 23 Feb 2019 02:36:13 -0500 Received: from [176.228.60.248] (port=2411 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gxRr2-0007dU-QV; Sat, 23 Feb 2019 02:36:13 -0500 Date: Sat, 23 Feb 2019 09:36:16 +0200 Message-Id: <83bm33q7m7.fsf@gnu.org> From: Eli Zaretskii To: =?shift_jis?B?kM+ST5Py?= Dan Jacobson In-reply-to: <87k1hrijt4.fsf@jidanni.org> Subject: Re: bug#34622: Find file prompt should indicate sole completion by appending a blank References: <87k1hrijt4.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34622 Cc: 34622@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 34622 notabug thanks > From: ϒO Dan Jacobson > > Date: Sat, 23 Feb 2019 05:40:07 +0800 > > With emacs, one can never be sure if the expansion > Find file or URL: ~/bin/wwzz > is the sole completion or not, without needing a second TAB press to get > "[Sole completion]" shown. Which command did that? "C-x C-f" shows just the directory, so there's no question of completions with the initial prompt. The situation you describe is thus not entirely clear. But in general, this default behavior is on purpose (there are add-on packages which give you immediate feedback about candidates). File-name completion is special, by design. > With bash, there is always a space added at end, > "$ wc ~/bin/wwzz " > so we know right away. Bash is not an editor, so the considerations are different. For example, Bash doesn't need to consider the possibility that the user would like to create a new file. > I propose that emacs do the same: > "Find file or URL: ~/bin/wwzz " > and if they really want to enter a file with a " " at the end, well they > could use C-q (quoted-insert). Asking users to use C-q for whitespace embedded in a file name is a non-starter. We did the opposite change several Emacs versions ago. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 23 23:37:08 2019 Received: (at 34622) by debbugs.gnu.org; 24 Feb 2019 04:37:08 +0000 Received: from localhost ([127.0.0.1]:49739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxlXI-0001Jd-DW for submit@debbugs.gnu.org; Sat, 23 Feb 2019 23:37:08 -0500 Received: from palegreen.birch.relay.mailchannels.net ([23.83.209.140]:15170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxlXF-0001JT-H0 for 34622@debbugs.gnu.org; Sat, 23 Feb 2019 23:37:07 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A56C728328F; Sun, 24 Feb 2019 04:36:59 +0000 (UTC) Received: from pdx1-sub0-mail-a59.g.dreamhost.com (unknown [100.96.28.213]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 69D96283265; Sun, 24 Feb 2019 04:36:59 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a59.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Sun, 24 Feb 2019 04:36:59 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Illustrious-Fumbling: 2c8321dd144433b0_1550983019527_3727662405 X-MC-Loop-Signature: 1550983019526:372593934 X-MC-Ingress-Time: 1550983019525 Received: from pdx1-sub0-mail-a59.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTP id 25261819B0; Sat, 23 Feb 2019 20:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=MqcCIKDCA7AKBz9xuZ54dDU+X6I=; b=BlmSDfUgjGVGL iczdpJC9BFflb/ntawaZBhQKC79Ia40m6tPTybSdpIynWHgDok0adtJY8XD45l9u eg437Cgi3EC6e4C1B55ZmH0xXsgOIfZ7te+/7HJVJgc71c71Fqp43rcxJKcfyYQP EWnpHF9SrVL3rJfPUOSuWcJ2Xcx7O0= Received: from jidanni.org (111-246-87-104.dynamic-ip.hinet.net [111.246.87.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTPSA id 8841181999; Sat, 23 Feb 2019 20:36:58 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a59 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Eli Zaretskii Subject: Re: bug#34622: Find file prompt should indicate sole completion by appending a blank References: <87k1hrijt4.fsf@jidanni.org> <83bm33q7m7.fsf@gnu.org> Date: Sun, 24 Feb 2019 12:36:54 +0800 Message-ID: <87ef7x7qft.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrudefgdeijecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduuddurddvgeeirdekjedruddtgeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduuddurddvgeeirdekjedruddtgedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefgeeivddvseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 34622 Cc: 34622@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) >>>>> "EZ" == Eli Zaretskii writes: EZ> Which command did that? "C-x C-f" shows just the directory, so EZ> there's no question of completions with the initial prompt. The EZ> situation you describe is thus not entirely clear. $ touch /tmp/zzz #new plain file C-x C-f /tmp/zzz EZ> Asking users to use C-q for whitespace embedded in a file name is a EZ> non-starter. We did the opposite change several Emacs versions ago. I'm only talking about trailing whitespace... In fact it could expand that too. OK never mind. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 11:05:47 2019 Received: (at 34622) by debbugs.gnu.org; 24 Feb 2019 16:05:47 +0000 Received: from localhost ([127.0.0.1]:50349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxwHi-0002t4-Ug for submit@debbugs.gnu.org; Sun, 24 Feb 2019 11:05:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxwHe-0002sl-E7 for 34622@debbugs.gnu.org; Sun, 24 Feb 2019 11:05:45 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxwHS-0004zp-Q7; Sun, 24 Feb 2019 11:05:32 -0500 Received: from [176.228.60.248] (port=3935 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gxwHO-0000Ql-KN; Sun, 24 Feb 2019 11:05:30 -0500 Date: Sun, 24 Feb 2019 18:05:33 +0200 Message-Id: <835zt9p3xu.fsf@gnu.org> From: Eli Zaretskii To: =?shift_jis?B?kM+ST5Py?= Dan Jacobson In-reply-to: <87ef7x7qft.fsf@jidanni.org> (message from =?shift_jis?B?kM8=?= =?shift_jis?B?kk+T8g==?= Dan Jacobson on Sun, 24 Feb 2019 12:36:54 +0800) Subject: Re: bug#34622: Find file prompt should indicate sole completion by appending a blank References: <87k1hrijt4.fsf@jidanni.org> <83bm33q7m7.fsf@gnu.org> <87ef7x7qft.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34622 Cc: 34622@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: ϒO Dan Jacobson > Cc: 34622@debbugs.gnu.org > Date: Sun, 24 Feb 2019 12:36:54 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > EZ> Which command did that? "C-x C-f" shows just the directory, so > EZ> there's no question of completions with the initial prompt. The > EZ> situation you describe is thus not entirely clear. > > $ touch /tmp/zzz #new plain file > C-x C-f /tmp/zzz But in this case, the first TAB already says "Sole completion", as you wanted... From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 27 00:20:40 2019 Received: (at 34622) by debbugs.gnu.org; 27 Feb 2019 05:20:40 +0000 Received: from localhost ([127.0.0.1]:53457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyre4-00014F-I9 for submit@debbugs.gnu.org; Wed, 27 Feb 2019 00:20:40 -0500 Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:27022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyre1-000145-74 for 34622@debbugs.gnu.org; Wed, 27 Feb 2019 00:20:38 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 06B982844F8; Wed, 27 Feb 2019 05:20:35 +0000 (UTC) Received: from pdx1-sub0-mail-a37.g.dreamhost.com (unknown [100.96.29.216]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id AE6D7284491; Wed, 27 Feb 2019 05:20:34 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a37.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Wed, 27 Feb 2019 05:20:34 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Soft-Towering: 7ac7f753796307bb_1551244834892_1140323609 X-MC-Loop-Signature: 1551244834891:881867582 X-MC-Ingress-Time: 1551244834890 Received: from pdx1-sub0-mail-a37.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTP id 5E3A5807C8; Tue, 26 Feb 2019 21:20:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=oviXZMsKhSsV0ePbp2NbIf1RzCE=; b=KBwIAcSdtwD4u zuP9y9EegykyinjUG4/5i/SufmWoTmwcMnnHmcXYycplOFsd37b5fEFRLb6fBOaR gXgeYW6AJIQvax63BSorEyzKdWYK831gGzkSmE1ulG/5WCuLwOD5zoAW7M4YihrV bEewH6BCQrBYIDUpeMz6WvYBCzJMWI= Received: from jidanni.org (114-41-10-170.dynamic-ip.hinet.net [114.41.10.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTPSA id AF6D8807D0; Tue, 26 Feb 2019 21:20:33 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a37 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Eli Zaretskii Subject: Re: bug#34622: Find file prompt should indicate sole completion by appending a blank References: <87k1hrijt4.fsf@jidanni.org> <83bm33q7m7.fsf@gnu.org> <87ef7x7qft.fsf@jidanni.org> <835zt9p3xu.fsf@gnu.org> Date: Wed, 27 Feb 2019 13:20:30 +0800 Message-ID: <87a7ihajtt.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrvddtgdekudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddruddtrddujedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddutddrudejtddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefgeeivddvseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 34622 Cc: 34622@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) EZ> Which command did that? "C-x C-f" shows just the directory, so EZ> there's no question of completions with the initial prompt. The EZ> situation you describe is thus not entirely clear. >> >> $ touch /tmp/zzz #new plain file >> C-x C-f /tmp/zzz EZ> But in this case, the first TAB already says "Sole completion", as you EZ> wanted... Nope: See, needed two tabs!: C-x C-f [find-file] / [self-insert-command] t [self-insert-command] m [self-insert-command] [minibuffer-complete] z [self-insert-command] z [self-insert-command] [minibuffer-complete] [minibuffer-complete] C-h l [view-lossage] From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 27 10:49:58 2019 Received: (at 34622) by debbugs.gnu.org; 27 Feb 2019 15:49:58 +0000 Received: from localhost ([127.0.0.1]:54166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gz1T3-0001HB-MW for submit@debbugs.gnu.org; Wed, 27 Feb 2019 10:49:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gz1T2-0001Gz-MX for 34622@debbugs.gnu.org; Wed, 27 Feb 2019 10:49:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz1Sv-00029X-3k; Wed, 27 Feb 2019 10:49:49 -0500 Received: from [176.228.60.248] (port=3479 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gz1Su-0004Mk-3T; Wed, 27 Feb 2019 10:49:48 -0500 Date: Wed, 27 Feb 2019 17:50:03 +0200 Message-Id: <83k1hlkz84.fsf@gnu.org> From: Eli Zaretskii To: =?shift_jis?B?kM+ST5Py?= Dan Jacobson In-reply-to: <87a7ihajtt.fsf@jidanni.org> (message from =?shift_jis?B?kM8=?= =?shift_jis?B?kk+T8g==?= Dan Jacobson on Wed, 27 Feb 2019 13:20:30 +0800) Subject: Re: bug#34622: Find file prompt should indicate sole completion by appending a blank References: <87k1hrijt4.fsf@jidanni.org> <83bm33q7m7.fsf@gnu.org> <87ef7x7qft.fsf@jidanni.org> <835zt9p3xu.fsf@gnu.org> <87a7ihajtt.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34622 Cc: 34622@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: ϒO Dan Jacobson > Cc: 34622@debbugs.gnu.org > Date: Wed, 27 Feb 2019 13:20:30 +0800 > > >> $ touch /tmp/zzz #new plain file > >> C-x C-f /tmp/zzz > > EZ> But in this case, the first TAB already says "Sole completion", as you > EZ> wanted... > > Nope: See, needed two tabs!: > > C-x C-f [find-file] > / [self-insert-command] > t [self-insert-command] > m [self-insert-command] > [minibuffer-complete] > z [self-insert-command] > z [self-insert-command] > [minibuffer-complete] > [minibuffer-complete] > C-h l [view-lossage] In the original example you typed 3 z's, not 2. In that case, a single TAB is enough. Anyway, like I said: Emacs being an editor has different design decisions in these cases. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 15 23:14:02 2019 Received: (at 34622-done) by debbugs.gnu.org; 16 Sep 2019 03:14:02 +0000 Received: from localhost ([127.0.0.1]:48990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9hSk-00075l-9V for submit@debbugs.gnu.org; Sun, 15 Sep 2019 23:14:02 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9hSi-000753-IW for 34622-done@debbugs.gnu.org; Sun, 15 Sep 2019 23:14:01 -0400 Received: by mail-pf1-f196.google.com with SMTP id x127so22033202pfb.7 for <34622-done@debbugs.gnu.org>; Sun, 15 Sep 2019 20:14:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=v2RjsyEc1cqsE9kO2foED0g6wg4bty1zHpZX8mgI6+E=; b=uGpTzyx2yfPN54oPI8ZBYuAbMKVb8DRJoIpbBhYAuA6s1w4cUnrOn/g+gfv+iXqqpa 6aVIApjaTtMQX3usmq5CdbqVJDXADAmWvM1o95Ye1PzQNuZT7mblgGypDAuDOMci4D/U lmqh5aB5B0YGF1jMiLYmgNL2JcywfTxfKDxOhmFGqisU4uZ/NOaVIg3jHaUyV9TycmDE UaLQWju91qtDQRPqkdfyZG3gUf7f6ulnWJ/84TYHm9tyvv87TQgFdn6lwb2y+ZzMoMNZ wJ70ZK9l6vp1z5FptGxSpkG/6SY8+9WDKZQDgQy6G7aK06c2+HmzUCfI7vI4QlADV7iK vKMg== X-Gm-Message-State: APjAAAVivph8g2g8qMzIrRzuzGF4m4f9qxoZGuVUPMUZN/Z3Xv72AJE7 bRko3Szfqnmho01xfHgCgNPRhno488wCg0XXhVE= X-Google-Smtp-Source: APXvYqxl/HAexwazCP0w261PwFFSWNiCc9ZXPmEjKu9HWQohUtTPkO9KZEf6huHKRAgYwIS9WR5h1WcPM4lWjXKoqYg= X-Received: by 2002:a17:90a:8d0c:: with SMTP id c12mr18406882pjo.119.1568603634733; Sun, 15 Sep 2019 20:13:54 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Mon, 16 Sep 2019 05:13:43 +0200 Message-ID: Subject: Re: bug#34622: Find file prompt should indicate sole completion by appending a blank To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 34622-done Cc: 34622-done@debbugs.gnu.org, =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Eli Zaretskii writes: > tags 34622 notabug > thanks > >> From: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson >> >> Date: Sat, 23 Feb 2019 05:40:07 +0800 >> >> With emacs, one can never be sure if the expansion >> Find file or URL: ~/bin/wwzz >> is the sole completion or not, without needing a second TAB press to get >> "[Sole completion]" shown. > > Which command did that? "C-x C-f" shows just the directory, so > there's no question of completions with the initial prompt. The > situation you describe is thus not entirely clear. > > But in general, this default behavior is on purpose (there are add-on > packages which give you immediate feedback about candidates). > File-name completion is special, by design. > >> With bash, there is always a space added at end, >> "$ wc ~/bin/wwzz " >> so we know right away. > > Bash is not an editor, so the considerations are different. For > example, Bash doesn't need to consider the possibility that the user > would like to create a new file. > >> I propose that emacs do the same: >> "Find file or URL: ~/bin/wwzz " >> and if they really want to enter a file with a " " at the end, well they >> could use C-q (quoted-insert). > > Asking users to use C-q for whitespace embedded in a file name is a > non-starter. We did the opposite change several Emacs versions ago. Since this is notabug, I'm also closing it now. Best regards, Stefan Kangas From unknown Tue Sep 09 21:33:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 Oct 2019 11:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator