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: Question about the initials completion-style Date: Fri, 23 Jul 2010 00:44:41 +0200 Message-ID: References: <201007151800.48336.tassilo@member.fsf.org> <201007221710.00706.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279840980 24642 80.91.229.12 (22 Jul 2010 23:23:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 23:23:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 23 01:22:59 2010 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.69) (envelope-from ) id 1Oc56Q-00009O-PS for ged-emacs-devel@m.gmane.org; Fri, 23 Jul 2010 01:22:59 +0200 Original-Received: from localhost ([127.0.0.1]:58705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc56P-0004BI-UQ for ged-emacs-devel@m.gmane.org; Thu, 22 Jul 2010 19:22:58 -0400 Original-Received: from [140.186.70.92] (port=32784 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc4jg-0000hQ-TR for emacs-devel@gnu.org; Thu, 22 Jul 2010 18:59:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oc4VS-0004Bf-DI for emacs-devel@gnu.org; Thu, 22 Jul 2010 18:44:50 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:53642) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc4VS-0004AX-Ah for emacs-devel@gnu.org; Thu, 22 Jul 2010 18:44:46 -0400 Original-Received: from ceviche.home (vpn-132-204-232-69.acd.umontreal.ca [132.204.232.69]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o6MMigjG008786; Thu, 22 Jul 2010 18:44:43 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5A1D0660D2; Fri, 23 Jul 2010 00:44:41 +0200 (CEST) In-Reply-To: <201007221710.00706.tassilo@member.fsf.org> (Tassilo Horn's message of "Thu, 22 Jul 2010 17:10:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3584=0 X-detected-operating-system: by eggs.gnu.org: GNU/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:127665 Archived-At: > It looks to me that I could copy the `completion-pcm-all-completions' > function and add a FILTER for deleting the entries consisting of too > many words to the call to `completion-pcm--find-all-completions'. I'll > try that as soon as I find some time... IIRC there's some dependency between partial-completion and initials, so doing it right may require more work. > A related question: Is the canonical way to use different completion > styles depending on what to complete advising the relevant functions? There is no such canonical way to do it, and it's one of the facilities that we need to add, indeed. The read-buffer case is once such glaring example (where we should change the default to (basic substring), actually). If someone has an idea for what such a canonical way should look like (and no, using `advice' is not the answer: it's only "the canonical way to do it for lack of anything better"), I'm all ears. Stefan