From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Two problems of completion Date: Fri, 23 May 2008 11:20:31 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211556070 18820 80.91.229.12 (23 May 2008 15:21:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 15:21:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Herbert Euler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 17:21:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JzZ5O-00039H-00 for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 17:21:38 +0200 Original-Received: from localhost ([127.0.0.1]:41195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzZ4d-0003N7-5m for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 11:20:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzZ4Y-0003Mm-Kx for emacs-devel@gnu.org; Fri, 23 May 2008 11:20:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzZ4V-0003MI-5o for emacs-devel@gnu.org; Fri, 23 May 2008 11:20:46 -0400 Original-Received: from [199.232.76.173] (port=57128 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzZ4V-0003MF-0D for emacs-devel@gnu.org; Fri, 23 May 2008 11:20:43 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:41118) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzZ4U-0004Bq-Go for emacs-devel@gnu.org; Fri, 23 May 2008 11:20:42 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id CE60D2CFBB9; Fri, 23 May 2008 11:20:41 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 9D5DD3FE1; Fri, 23 May 2008 11:20:31 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 8B8D041BEC; Fri, 23 May 2008 11:20:31 -0400 (EDT) In-Reply-To: (Herbert Euler's message of "Wed, 30 Apr 2008 10:57:29 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97595 Archived-At: > 1. Special case: the string before completion is the empty string "". > In this case, completion--try-word-completion will see a completion > available, i.e. ("" . 0), and then try firstly completing with " " ("" > + " ") and then "-" ("" + "-"). Partial completion often (e.g. in a > command execution context, i.e. typing M-x then typing SPC) returns a > result of ("-" . 0), make a completion available. > I think when the user press SPC directly in such a case, it means that > the user wants to see a list of available completions, instead of > wanting a partially completed word. So this case might need special > handling. I've installed a workaround for this situation: if the minibuffer is empty, and SPC tries to add a " " or a "-", it turns off partial-completion while doing it. Stefan