From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17375: 24.4.50; minibuffer completion by SPC Date: Wed, 30 Apr 2014 21:53:30 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398909267 15275 80.91.229.3 (1 May 2014 01:54:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 01:54:27 +0000 (UTC) Cc: 17375@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 01 03:54:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WfgCX-0008GC-NW for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 May 2014 03:54:17 +0200 Original-Received: from localhost ([::1]:60030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfgCX-0002O1-Cw for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 21:54:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfgCO-0002Ns-9G for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 21:54:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfgCI-00008c-Bk for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 21:54:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfgCI-000082-99 for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 21:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WfgCH-0007X3-N4 for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 21:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 May 2014 01:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17375 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17375-submit@debbugs.gnu.org id=B17375.139890922528925 (code B ref 17375); Thu, 01 May 2014 01:54:01 +0000 Original-Received: (at 17375) by debbugs.gnu.org; 1 May 2014 01:53:45 +0000 Original-Received: from localhost ([127.0.0.1]:46924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfgC0-0007WS-NQ for submit@debbugs.gnu.org; Wed, 30 Apr 2014 21:53:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:46681) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfgBx-0007WF-Mq for 17375@debbugs.gnu.org; Wed, 30 Apr 2014 21:53:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVPO+K9B/2dsb2JhbABZgwY7gw/APYEXF3SCJgEBBFYjEAs0EhQYDSSIDNIZF456B4Q4BJoBizuDXYFqg0wh X-IPAS-Result: ArYGAIDvNVPO+K9B/2dsb2JhbABZgwY7gw/APYEXF3SCJgEBBFYjEAs0EhQYDSSIDNIZF456B4Q4BJoBizuDXYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="61139160" Original-Received: from 206-248-175-65.dsl.teksavvy.com (HELO pastel.home) ([206.248.175.65]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Apr 2014 21:53:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3FA1460505; Wed, 30 Apr 2014 21:53:30 -0400 (EDT) In-Reply-To: (Katsumi Yamaoka's message of "Thu, 01 May 2014 09:18:41 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88483 Archived-At: > (get-buffer-create "foo-bar") > That's all! > Could you try this on `emacs -Q'? And you will see that the first > SPC for `C-x b' doesn't insert a space (I'm not quite sure if it > happens on every platform, though). > Maybe a buffer-name containing a hyphen triggers this problem. Indeed, that's it. It's due to the fix for http://debbugs.gnu.org/15980. I.e. if we have buffer names " toto" and "foo-bar", then both " " and "-" have valid completions (remember: C-x b uses substring completion), so bug#15980 says that instead of choosing arbitrarily between " " and "-", we should just leave the input unchanged. I must say I dislike "word completion". Both because its behavior is largely ill-defined (e.g. what does it mean to "complete at most a single word" when the completion table completes "a-b-$FOO-a" to "a-b-c-a-d-a"?), and because I'd rather leave SPC as a self-insert key. So in this case, I'd tend to prefer reverting the fix for bug#15980, so that " " is preferred over "-" on the premise that it makes SPC behave a bit more like self-insert-command. Stefan