GNU bug report logs - #28714
Shouldn't minibuffer-complete add a space after sole completions?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; merged with #51650; dated Thu, 5 Oct 2017 17:43:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 28714 <at> debbugs.gnu.org:


Received: (at 28714) by debbugs.gnu.org; 30 Nov 2021 20:42:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 30 15:42:43 2021
Received: from localhost ([127.0.0.1]:42641 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ms9xb-000468-BC
	for submit <at> debbugs.gnu.org; Tue, 30 Nov 2021 15:42:43 -0500
Received: from eastern.birch.relay.mailchannels.net ([23.83.209.55]:44537)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1ms9xZ-00045u-17
 for 28714 <at> debbugs.gnu.org; Tue, 30 Nov 2021 15:42:42 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 78079E154C;
 Tue, 30 Nov 2021 20:42:39 +0000 (UTC)
Received: from pdx1-sub0-mail-a238.dreamhost.com (unknown [127.0.0.6])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id F17FEE0CCF;
 Tue, 30 Nov 2021 20:42:38 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a238.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
 by 100.127.242.146 (trex/6.4.3); Tue, 30 Nov 2021 20:42:39 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Illegal-Chemical: 1ca2dc917c4f3895_1638304959280_752602737
X-MC-Loop-Signature: 1638304959280:3619100666
X-MC-Ingress-Time: 1638304959279
Received: from jidanni.org (114-41-25-173.dynamic-ip.hinet.net [114.41.25.173])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a238.dreamhost.com (Postfix) with ESMTPSA id 4J3Z0Z4KJ1z1QX; 
 Tue, 30 Nov 2021 12:42:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=jidanni.org;
 s=jidanni.org; t=1638304958; bh=cKJBgyTaeTQeTyd5JwQ8l/+89CY=;
 h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding;
 b=ZsreyUzD+Ru/iV5HHDuu4WSBagVryUkjkszKYoaurZN49k6FEZ2EMH9vCQ1avDTvB
 eECwNknzddzZxzzgXuAzJqGu3jVvpqN0D0qEXrrfh3JqzfVrxNjbAibeTZogx9djY3
 m8hkrLrofd/GKwAgEV1NDFELWlymo00FkUTUwnvM=
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#28714: Shouldn't minibuffer-complete add a space after sole
 completions?
References: <87a815jzw0.fsf@HIDDEN> <87y3ooymaj.fsf@HIDDEN>
 <87pmqhd6u6.fsf@HIDDEN>
Date: Wed, 01 Dec 2021 04:42:34 +0800
Message-ID: <87ee6xnznp.5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 28714
Cc: 28714 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> "LI" == Lars Ingebrigtsen <larsi@HIDDEN> writes:
LI> 積丹尼 Dan Jacobson <jidanni@HIDDEN> writes:

>> $ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
>> Find file or URL:
>> / [self-insert-command]
>> t [self-insert-command]
>> m [self-insert-command]
>> p [self-insert-command]
>> / [self-insert-command]
>> a [self-insert-command]
>> b [self-insert-command]
>> <tab> [minibuffer-complete]
>> <tab> [minibuffer-complete]
>> b b [self-insert-command]
>> <tab> [minibuffer-complete]
>> <tab> [minibuffer-complete]
>> 
>> Now try the same thing in bash outside of emacs.

LI> So you basically want it to say "Sole completion" (or something) after
LI> the next-to-last TAB?  I guess that would make sense (as an option), and
LI> is basically the same thing that's requested in bug#51650 (but there
LI> it's about things that do have several completions).

Yeah. Currently it takes two tabs for it to finally cough up "Sole
completion". What sense is that? It should do that with just one tab.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.
Forcibly Merged 28714 51650. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 28714 <at> debbugs.gnu.org:


Received: (at 28714) by debbugs.gnu.org; 30 Nov 2021 15:03:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 30 10:03:10 2021
Received: from localhost ([127.0.0.1]:42117 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ms4f0-0004rr-0x
	for submit <at> debbugs.gnu.org; Tue, 30 Nov 2021 10:03:10 -0500
Received: from quimby.gnus.org ([95.216.78.240]:42576)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ms4ey-0004ra-9z
 for 28714 <at> debbugs.gnu.org; Tue, 30 Nov 2021 10:03:08 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=how74jH9fx/0g5SIaI+Ttvhis66SKCNsV4mw5vGnq7U=; b=bTGnsy87UApO2cMv1QUe7zO+7I
 VJ2hMkzs66x2x7DcIAxGGFsLhIhYO+lK5VDXWN3qIvQoyJxl2ky3CeRMlG2aFWcANjby28Cq/Ir/z
 fSF9zbzvCpJ5rucElrcCVJEwZXQ/IryRaFQQDHpxchu08ynYZ/zoS13rCzZpk81/DyLY=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ms4eo-0007BM-6P; Tue, 30 Nov 2021 16:03:00 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#28714: Shouldn't minibuffer-complete add a space after sole
 completions?
References: <87a815jzw0.fsf@HIDDEN> <87y3ooymaj.fsf@HIDDEN>
X-Now-Playing: Normil Hawaiians's _More Wealth Than Money_: "Other Ways Of
 Knowing"
Date: Tue, 30 Nov 2021 16:02:57 +0100
In-Reply-To: <87y3ooymaj.fsf@HIDDEN> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan
 Jacobson"'s message of "Sat, 07 Oct 2017 05:54:44 +0800")
Message-ID: <87pmqhd6u6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  積丹尼 Dan Jacobson <jidanni@HIDDEN> writes: > $ touch
    /tmp/abbbbb /tmp/abbbbbbbbbbbbbb > Find file or URL: > / [self-insert-command]
    > t [self-insert-command] > m [self-insert-command] > p [self-insert-command]
    > / [self-insert-command] > a [se [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 28714
Cc: 28714 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson <jidanni@HIDDEN> writes:

> $ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
> Find file or URL:
>  / [self-insert-command]
>  t [self-insert-command]
>  m [self-insert-command]
>  p [self-insert-command]
>  / [self-insert-command]
>  a [self-insert-command]
>  b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
>  b b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
>
> Now try the same thing in bash outside of emacs.

So you basically want it to say "Sole completion" (or something) after
the next-to-last TAB?  I guess that would make sense (as an option), and
is basically the same thing that's requested in bug#51650 (but there
it's about things that do have several completions).

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.

Message received at 28714 <at> debbugs.gnu.org:


Received: (at 28714) by debbugs.gnu.org; 8 Oct 2017 00:50:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 07 20:50:53 2017
Received: from localhost ([127.0.0.1]:55233 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0znw-0006F7-UD
	for submit <at> debbugs.gnu.org; Sat, 07 Oct 2017 20:50:53 -0400
Received: from homie.mail.dreamhost.com ([208.97.132.208]:52261
 helo=homiemail-a37.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1e0znu-0006Ex-TQ
 for 28714 <at> debbugs.gnu.org; Sat, 07 Oct 2017 20:50:51 -0400
Received: from homiemail-a37.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a37.g.dreamhost.com (Postfix) with ESMTP id F3263208069;
 Sat,  7 Oct 2017 17:50:49 -0700 (PDT)
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=9l5I0ef0XjULUhqIHIp2nTDYCFU=; b=AnwJcYKssqXDC
 fllTSNZj8VcUFjnIqIwCYgwtZEGkIZAVcq2U0+SceQ1yjuYLaqxKsHJFWuKZY77n
 LZCuIA9V8zhdSr9gh29Ft3Dnty0EiNlJXaJSv0neTaoVYCRUK9eg4aeZfBHHMyWm
 VYnXbPf7op4mQgX10K+FordL3UNtkg=
Received: from jidanni.org (114-46-59-132.dynamic-ip.hinet.net [114.46.59.132])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a37.g.dreamhost.com (Postfix) with ESMTPSA id 7191C208063;
 Sat,  7 Oct 2017 17:50:33 -0700 (PDT)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#28714: Shouldn't minibuffer-complete add a space after sole
 completions?
References: <87a815jzw0.fsf@HIDDEN>
Date: Sun, 08 Oct 2017 08:49:22 +0800
Message-ID: <874lracvl9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 28714
Cc: 28714 <at> debbugs.gnu.org, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

>>>>> "EZ" == Eli Zaretskii <eliz@HIDDEN> writes:

EZ> "M-x icomplete-mode RET", then repeat your experiment.  Which is
EZ> better now, Emacs or Bash?

Waaa... icomplete-mode is way too chatty.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.

Message received at 28714 <at> debbugs.gnu.org:


Received: (at 28714) by debbugs.gnu.org; 7 Oct 2017 15:12:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 07 11:12:10 2017
Received: from localhost ([127.0.0.1]:54852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0qlu-00037M-Ez
	for submit <at> debbugs.gnu.org; Sat, 07 Oct 2017 11:12:10 -0400
Received: from pmta11.teksavvy.com ([76.10.157.34]:52017)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1e0qlr-00036t-I7
 for 28714 <at> debbugs.gnu.org; Sat, 07 Oct 2017 11:12:08 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2E0HgAJ7thZ/5+ESC1cHAEBBAEBCgEBg?=
 =?us-ascii?q?12BUokuhHmQB4F2gzCVEQqFOwKEIEMUAQIBAQEBAQEBA2gohRkBBAF5BQsLDSc?=
 =?us-ascii?q?SFBgxijsIqGsiAosMAQEBBwImgy2BMVGGEVOKeAEEoTOWYAGJUCiHFpVZgTk2I?=
 =?us-ascii?q?oEOMiEIMogCJIlzAQEB?=
X-IPAS-Result: =?us-ascii?q?A2E0HgAJ7thZ/5+ESC1cHAEBBAEBCgEBg12BUokuhHmQB4F?=
 =?us-ascii?q?2gzCVEQqFOwKEIEMUAQIBAQEBAQEBA2gohRkBBAF5BQsLDScSFBgxijsIqGsiA?=
 =?us-ascii?q?osMAQEBBwImgy2BMVGGEVOKeAEEoTOWYAGJUCiHFpVZgTk2IoEOMiEIMogCJIl?=
 =?us-ascii?q?zAQEB?=
X-IronPort-AV: E=Sophos;i="5.42,489,1500955200"; 
   d="scan'208";a="5942852"
Received: from unknown (HELO ceviche.home) ([45.72.132.159])
 by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 07 Oct 2017 11:11:56 -0400
Received: by ceviche.home (Postfix, from userid 20848)
 id 6CC4366246; Sat,  7 Oct 2017 11:11:56 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#28714: Shouldn't minibuffer-complete add a space after sole
 completions?
Message-ID: <jwv7ew7dmjj.fsf-monnier+emacsbugs@HIDDEN>
References: <87a815jzw0.fsf@HIDDEN> <87y3ooymaj.fsf@HIDDEN>
Date: Sat, 07 Oct 2017 11:11:56 -0400
In-Reply-To: <87y3ooymaj.fsf@HIDDEN> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan
 Jacobson"'s message of "Sat, 07 Oct 2017 05:54:44 +0800")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 28714
Cc: 28714 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Another idea might be not requiring a second TAB before telling the user
> [Sole completion] etc. but that would seem too chatty.

I'd welcome a patch which adds that to minibuffer.el (optionnally, as
usual in Emacs).


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.

Message received at 28714 <at> debbugs.gnu.org:


Received: (at 28714) by debbugs.gnu.org; 7 Oct 2017 07:28:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 07 03:28:29 2017
Received: from localhost ([127.0.0.1]:53705 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0jXA-0005vN-Pd
	for submit <at> debbugs.gnu.org; Sat, 07 Oct 2017 03:28:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41682)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1e0jX9-0005v9-AD
 for 28714 <at> debbugs.gnu.org; Sat, 07 Oct 2017 03:28:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1e0jX0-0006VP-RA
 for 28714 <at> debbugs.gnu.org; Sat, 07 Oct 2017 03:28:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43807)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1e0jX0-0006VF-N7; Sat, 07 Oct 2017 03:28:18 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1934
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1e0jX0-0007Md-2m; Sat, 07 Oct 2017 03:28:18 -0400
Date: Sat, 07 Oct 2017 10:28:11 +0300
Message-Id: <838tgnv2lw.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
In-reply-to: <87y3ooymaj.fsf@HIDDEN>
Subject: Re: bug#28714: Shouldn't minibuffer-complete add a space after sole
 completions?
References: <87a815jzw0.fsf@HIDDEN> <87y3ooymaj.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 28714
Cc: 28714 <at> debbugs.gnu.org, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: 積丹尼 Dan Jacobson
> 	<jidanni@HIDDEN>
> Date: Sat, 07 Oct 2017 05:54:44 +0800
> Cc: 28714 <at> debbugs.gnu.org
> 
> $ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
> Find file or URL:
>  / [self-insert-command]
>  t [self-insert-command]
>  m [self-insert-command]
>  p [self-insert-command]
>  / [self-insert-command]
>  a [self-insert-command]
>  b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
>  b b [self-insert-command]
>  <tab> [minibuffer-complete]
>  <tab> [minibuffer-complete]
> 
> Now try the same thing in bash outside of emacs.
> 
> The user at every moment is aware how many completions there are, and it
> only takes a total of two tabs vs. four in emacs.

"M-x icomplete-mode RET", then repeat your experiment.  Which is
better now, Emacs or Bash?

And if icomplete is still not good enough, there's a plethora of
fancier completion packages out there, both bundled and unbundled.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.

Message received at 28714 <at> debbugs.gnu.org:


Received: (at 28714) by debbugs.gnu.org; 6 Oct 2017 21:54:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 06 17:54:53 2017
Received: from localhost ([127.0.0.1]:53644 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0aa5-0007g2-47
	for submit <at> debbugs.gnu.org; Fri, 06 Oct 2017 17:54:53 -0400
Received: from homie.mail.dreamhost.com ([208.97.132.208]:45159
 helo=homiemail-a38.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1e0aa3-0007fs-9c
 for 28714 <at> debbugs.gnu.org; Fri, 06 Oct 2017 17:54:51 -0400
Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 46EF610AFBD;
 Fri,  6 Oct 2017 14:54:49 -0700 (PDT)
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=O/7AA1R7En9nownQKMPQYFG/XRM=; b=iry05prHShNa7
 TYLuHlSD1wOJGCmiq2Uqogz22teBh8R/NgY8Z2+rN4fT1/X4pS5MlS2no0VgTp53
 6deOkuoKf0+ppY57dZiLl4poDDJZCieWCDL6gpDq7UjaQ1pVjSOPyjTMsOZl0pzQ
 ItF2wjeqz0hSj/yNRrRUd7sbgo9d5o=
Received: from jidanni.org (220-140-5-248.dynamic-ip.hinet.net [220.140.5.248])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id BEEE510AFB8;
 Fri,  6 Oct 2017 14:54:48 -0700 (PDT)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#28714: Shouldn't minibuffer-complete add a space after sole
 completions?
References: <87a815jzw0.fsf@HIDDEN>
Date: Sat, 07 Oct 2017 05:54:44 +0800
Message-ID: <87y3ooymaj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 28714
Cc: 28714 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

$ touch /tmp/abbbbb /tmp/abbbbbbbbbbbbbb
Find file or URL:
 / [self-insert-command]
 t [self-insert-command]
 m [self-insert-command]
 p [self-insert-command]
 / [self-insert-command]
 a [self-insert-command]
 b [self-insert-command]
 <tab> [minibuffer-complete]
 <tab> [minibuffer-complete]
 b b [self-insert-command]
 <tab> [minibuffer-complete]
 <tab> [minibuffer-complete]

Now try the same thing in bash outside of emacs.

The user at every moment is aware how many completions there are, and it
only takes a total of two tabs vs. four in emacs.

>>>>> "SM" == Stefan Monnier <monnier@HIDDEN> writes:

SM> Depends in which context: for example when completing for `M-x` or `C-x
SM> C-f`, adding a space at the end would be an error since with the space
SM> it would not correspond to an existing command or file name any more.

How about perhaps just adding the space for the user's visual pleasure,
but not using it when processing the command / filename?

Another idea might be not requiring a second TAB before telling the user
[Sole completion] etc. but that would seem too chatty.

Anyway if he really wants a space he could use "\ ".




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.

Message received at 28714 <at> debbugs.gnu.org:


Received: (at 28714) by debbugs.gnu.org; 6 Oct 2017 11:53:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 06 07:53:36 2017
Received: from localhost ([127.0.0.1]:52238 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0RCA-0006M5-LT
	for submit <at> debbugs.gnu.org; Fri, 06 Oct 2017 07:53:35 -0400
Received: from pmta31.teksavvy.com ([76.10.157.38]:13961)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1e0RC8-0006Lq-FR
 for 28714 <at> debbugs.gnu.org; Fri, 06 Oct 2017 07:53:33 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GuRwA0btdZ/5+ESC1bGwEBAQMBAQEJA?=
 =?us-ascii?q?QEBg12BUokuhHmQAIF2gzCVEYU7CgKEIEMUAQIBAQEBAQEBA2gohRkBBAF5BQs?=
 =?us-ascii?q?LDScSFBgxijsIqAoiAosFAQEBBwImgy2BMVGGEVOKeAEEkUCPc5ZgAYlQKIcWl?=
 =?us-ascii?q?xI2IoEOMiEIMogCJIlwAQEB?=
X-IPAS-Result: =?us-ascii?q?A2GuRwA0btdZ/5+ESC1bGwEBAQMBAQEJAQEBg12BUokuhHm?=
 =?us-ascii?q?QAIF2gzCVEYU7CgKEIEMUAQIBAQEBAQEBA2gohRkBBAF5BQsLDScSFBgxijsIq?=
 =?us-ascii?q?AoiAosFAQEBBwImgy2BMVGGEVOKeAEEkUCPc5ZgAYlQKIcWlxI2IoEOMiEIMog?=
 =?us-ascii?q?CJIlwAQEB?=
X-IronPort-AV: E=Sophos;i="5.42,483,1500955200"; 
   d="scan'208";a="5581418"
Received: from unknown (HELO pastel.home) ([45.72.132.159])
 by smtp.teksavvy.com with ESMTP; 06 Oct 2017 07:53:26 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 62B2462DB0; Fri,  6 Oct 2017 07:53:26 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#28714: Shouldn't minibuffer-complete add a space after sole
 completions?
Message-ID: <jwvk2081oor.fsf-monnier+emacsbugs@HIDDEN>
References: <87a815jzw0.fsf@HIDDEN>
Date: Fri, 06 Oct 2017 07:53:26 -0400
In-Reply-To: <87a815jzw0.fsf@HIDDEN> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan
 Jacobson"'s message of "Fri, 06 Oct 2017 00:57:51 +0800")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 28714
Cc: 28714 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Shouldn't minibuffer-complete add a space after sole completions?

Depends in which context: for example when completing for `M-x` or `C-x
C-f`, adding a space at the end would be an error since with the space
it would not correspond to an existing command or file name any more.

> That is how bash does it.

So does Emacs too during completion of shell commands, AFAIK.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Oct 2017 17:42:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 05 13:42:11 2017
Received: from localhost ([127.0.0.1]:51750 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0A9z-00005a-Lw
	for submit <at> debbugs.gnu.org; Thu, 05 Oct 2017 13:42:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56414)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1e0A9x-00005N-Sf
 for submit <at> debbugs.gnu.org; Thu, 05 Oct 2017 13:42:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1e0A9s-0005QW-0L
 for submit <at> debbugs.gnu.org; Thu, 05 Oct 2017 13:42:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_SORBS_SPAM, 
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60929)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1e0A9r-0005QQ-Ta
 for submit <at> debbugs.gnu.org; Thu, 05 Oct 2017 13:42:03 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47379)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1e0A9q-000696-Tf
 for bug-gnu-emacs@HIDDEN; Thu, 05 Oct 2017 13:42:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1e0A9n-0005Jc-Qx
 for bug-gnu-emacs@HIDDEN; Thu, 05 Oct 2017 13:42:02 -0400
Received: from hapkido.dreamhost.com ([66.33.216.122]:55531)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1e0A9n-0005IX-KL
 for bug-gnu-emacs@HIDDEN; Thu, 05 Oct 2017 13:41:59 -0400
Received: from homiemail-a37.g.dreamhost.com (homie.mail.dreamhost.com
 [208.97.132.208])
 by hapkido.dreamhost.com (Postfix) with ESMTP id 6FD199B620
 for <bug-gnu-emacs@HIDDEN>; Thu,  5 Oct 2017 10:41:54 -0700 (PDT)
Received: from homiemail-a37.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a37.g.dreamhost.com (Postfix) with ESMTP id AD6E520806C
 for <bug-gnu-emacs@HIDDEN>; Thu,  5 Oct 2017 10:41:51 -0700 (PDT)
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=BdZy1kLCaoV0mNZBkXiu2fvdjII=; b=OmfgX7emvu4ShVgM
 PM4uYu5oaJJS6tUsK/uVyhL75MO9QZXx3CavM773UkRLSsAlMSd0dGXKPQmhvmGu
 PrJ310EFGoPWch3x8ihtvUJPAhN7QE9c9d60MmEi/R6Y6/qsxtuNZdCYReK+M2lo
 nR4lkk9N9kfwbc5a2w8QgO6A/ks=
Received: from jidanni.org (114-41-0-72.dynamic-ip.hinet.net [114.41.0.72])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a37.g.dreamhost.com (Postfix) with ESMTPSA id 76573208069
 for <bug-gnu-emacs@HIDDEN>; Thu,  5 Oct 2017 10:41:51 -0700 (PDT)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Shouldn't minibuffer-complete add a space after sole completions?
Date: Fri, 06 Oct 2017 00:57:51 +0800
Message-ID: <87a815jzw0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.5 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.5 (----)

X-Debbugs-Cc: monnier@HIDDEN

Shouldn't minibuffer-complete add a space after sole completions?

That is how bash does it.

Then the user wouldn't be worrying that there is more than one
completion and need to press TAB again to finally see "[Sole completion]".




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@HIDDEN>:
New bug report received and forwarded. Copy sent to monnier@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to monnier@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#28714; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 30 Nov 2021 20:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.