From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Herbert Euler Newsgroups: gmane.emacs.devel Subject: RE: Two problems of completion Date: Sat, 24 May 2008 00:12:59 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1211559265 30455 80.91.229.12 (23 May 2008 16:14:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 16:14:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 18:15:04 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 1JzZuq-0001FZ-Ol for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 18:14:49 +0200 Original-Received: from localhost ([127.0.0.1]:45321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzZu6-0001oG-16 for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 12:14:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzZt9-0001Ev-2F for emacs-devel@gnu.org; Fri, 23 May 2008 12:13:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzZt7-0001Dp-7p for emacs-devel@gnu.org; Fri, 23 May 2008 12:13:02 -0400 Original-Received: from [199.232.76.173] (port=48415 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzZt7-0001Dj-2Z for emacs-devel@gnu.org; Fri, 23 May 2008 12:13:01 -0400 Original-Received: from bay0-omc3-s25.bay0.hotmail.com ([65.54.246.225]:30953) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzZt6-00065J-Tf for emacs-devel@gnu.org; Fri, 23 May 2008 12:13:01 -0400 Original-Received: from BAY143-W18 ([65.55.154.53]) by bay0-omc3-s25.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 23 May 2008 09:12:59 -0700 X-Originating-IP: [221.223.213.204] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 23 May 2008 16:12:59.0511 (UTC) FILETIME=[DE6F7070:01C8BCEF] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:97598 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. Thank you. I should have replied this thread, but I wanted to read minibuffer.el in order to say something constructive. Sadly I still don't finish reading it, so I did not reply it. Sorry for the delay. I've tried it, which works perfectly. Regards, Guanpeng Xu _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE