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: Two problems of completion Date: Wed, 30 Apr 2008 10:57:29 +0800 Message-ID: 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 1209524270 15567 80.91.229.12 (30 Apr 2008 02:57:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2008 02:57:50 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 30 04:58:25 2008 connect(): Connection refused 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 1Jr2WU-00012w-6f for ged-emacs-devel@m.gmane.org; Wed, 30 Apr 2008 04:58:22 +0200 Original-Received: from localhost ([127.0.0.1]:40114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jr2Vn-0001EB-5L for ged-emacs-devel@m.gmane.org; Tue, 29 Apr 2008 22:57:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jr2Vi-0001CP-EG for emacs-devel@gnu.org; Tue, 29 Apr 2008 22:57:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jr2Vg-0001CD-0o for emacs-devel@gnu.org; Tue, 29 Apr 2008 22:57:33 -0400 Original-Received: from [199.232.76.173] (port=40303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jr2Vf-0001CA-Ru for emacs-devel@gnu.org; Tue, 29 Apr 2008 22:57:31 -0400 Original-Received: from bay0-omc2-s35.bay0.hotmail.com ([65.54.246.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jr2Vf-0001om-FT for emacs-devel@gnu.org; Tue, 29 Apr 2008 22:57:31 -0400 Original-Received: from BAY143-W27 ([65.55.154.62]) by bay0-omc2-s35.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 29 Apr 2008 19:57:30 -0700 X-Originating-IP: [216.145.54.7] Importance: Normal X-OriginalArrivalTime: 30 Apr 2008 02:57:30.0147 (UTC) FILETIME=[EE043730:01C8AA6D] 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:96181 Archived-At: Currently SPC is bound to minibuffer-complete-word in minibuffer. With partial completion facilities implemented for minibuffer, I don't know whether it is still right to bind SPC to this command, but if so I find two problems. 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. 2. Minibuffer content rewriting. The current minibuffer content rewriting facility in completion--do-completion seems not for partial completion. Partial completion normally returns 0 as completion point, e.g. ("org--" . 0), so a rewriting may look like this (`|' means the position of cursor): M-x org-| (typing SPC) M-x |org-- (typing SPC again, a surprising result from an attempt of completing an empty string): M-x -org-|- Something is apparently wrong. Regards, Guanpeng Xu _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us