From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#28714: Shouldn't minibuffer-complete add a space after sole completions? Date: Sat, 07 Oct 2017 05:54:44 +0800 Message-ID: <87y3ooymaj.fsf@jidanni.org> References: <87a815jzw0.fsf@jidanni.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507327182 24633 195.159.176.226 (6 Oct 2017 21:59:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 21:59:42 +0000 (UTC) Cc: 28714@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 06 23:59:36 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0aeZ-00056e-7u for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Oct 2017 23:59:31 +0200 Original-Received: from localhost ([::1]:47280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0aeg-0000M2-NL for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Oct 2017 17:59:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0aaJ-0005Yp-RF for bug-gnu-emacs@gnu.org; Fri, 06 Oct 2017 17:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0aaE-0003Ca-Vl for bug-gnu-emacs@gnu.org; Fri, 06 Oct 2017 17:55:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0aaE-0003CS-Rs for bug-gnu-emacs@gnu.org; Fri, 06 Oct 2017 17:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0aaE-0007gV-IB for bug-gnu-emacs@gnu.org; Fri, 06 Oct 2017 17:55:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87a815jzw0.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Oct 2017 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28714 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28714-submit@debbugs.gnu.org id=B28714.150732689329518 (code B ref 28714); Fri, 06 Oct 2017 21:55:02 +0000 Original-Received: (at 28714) by debbugs.gnu.org; 6 Oct 2017 21:54:53 +0000 Original-Received: from localhost ([127.0.0.1]:53644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0aa5-0007g2-47 for submit@debbugs.gnu.org; Fri, 06 Oct 2017 17:54:53 -0400 Original-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 ) id 1e0aa3-0007fs-9c for 28714@debbugs.gnu.org; Fri, 06 Oct 2017 17:54:51 -0400 Original-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= Original-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@jidanni.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id BEEE510AFB8; Fri, 6 Oct 2017 14:54:48 -0700 (PDT) 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: 208.118.235.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:138024 Archived-At: $ 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] [minibuffer-complete] [minibuffer-complete] b b [self-insert-command] [minibuffer-complete] [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 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 "\ ".