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: partial-completion-mode Date: Fri, 28 Nov 2008 21:48:10 -0500 Message-ID: References: <1227274391.618443.2559.nullmailer@null> <1227353165.501338.3377.nullmailer@null> <1227525891.411379.2411.nullmailer@null> <1227549147.531139.3851.nullmailer@null> <87ljv3isxi.fsf@elegiac.orebokech.com> <87ej0vij0o.fsf_-_@elegiac.orebokech.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227926914 13372 80.91.229.12 (29 Nov 2008 02:48:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 02:48:34 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Romain Francoise Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 03:49:37 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 1L6Fto-00040D-Gx for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2008 03:49:36 +0100 Original-Received: from localhost ([127.0.0.1]:44834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6Fse-00085r-NB for ged-emacs-devel@m.gmane.org; Fri, 28 Nov 2008 21:48:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6Fsa-00085c-1t for emacs-devel@gnu.org; Fri, 28 Nov 2008 21:48:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6FsX-00085Q-Kw for emacs-devel@gnu.org; Fri, 28 Nov 2008 21:48:18 -0500 Original-Received: from [199.232.76.173] (port=55859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6FsX-00085N-EZ for emacs-devel@gnu.org; Fri, 28 Nov 2008 21:48:17 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:36111 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L6FsW-0006f2-PR for emacs-devel@gnu.org; Fri, 28 Nov 2008 21:48:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEALk7MEnO+Jkl/2dsb2JhbACBbc1Dgn2BJA X-IronPort-AV: E=Sophos;i="4.33,685,1220241600"; d="scan'208";a="30424050" Original-Received: from 206-248-153-37.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.37]) by ironport2-out.teksavvy.com with ESMTP; 28 Nov 2008 21:48:10 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6D52284C0; Fri, 28 Nov 2008 21:48:10 -0500 (EST) In-Reply-To: <87ej0vij0o.fsf_-_@elegiac.orebokech.com> (Romain Francoise's message of "Fri, 28 Nov 2008 23:27:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106281 Archived-At: >> BTW, while partial-completion-mode is not explicitly marked as >> obsolete yet, I do consider it as obsolete. If there's some >> particular reason why you use it, I'd like to hear about it. > The reason is that I've always used it, and I'm not aware of > built-in replacements for its features. :) > For example, it binds SPC in the minibuffer to a command which makes > completion *go forward* instead of just completing the current word, > which enables e.g. M-x f SPC lib RET to run find-library, M-x isp > SPC c SPC d for ispell-change-dictionary, etc. I never use TAB for > completion in the minibuffer, SPC is much more convenient to type > (I use ido for buffer/file completion). I just fixed a bug in minibuffer.el. Now if you (setq completion-styles '(partial-completion)), your M-x f SPC lib RET works just fine. M-x isp SPC c SPC d won't quite work: you need an extra SPC before the `c'. Funnily enough, this example only works with partial-completion-mode thanks to a bug introduced in Emacs-21 (which causes some internal test to use the whole minibuffer, including the prompt, to decide whether completion is done). BTW, using `-' (that's what I use) instead of SPC should work as well if not better, with less magic. But it's a bit more difficult to type, admittedly. > I also use the partial completion itself (I often use M-x kg RET for > kill-grep), but admittedly I think I could live without it. How do you get M-x kg RET to complete to kill-grep? Doesn't work for me. Stefan