From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Question about the initials completion-style Date: Thu, 15 Jul 2010 18:00:48 +0200 Message-ID: <201007151800.48336.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279209886 20482 80.91.229.12 (15 Jul 2010 16:04:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 16:04:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 15 18:04:45 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 1OZQvR-0007ID-Cc for ged-emacs-devel@m.gmane.org; Thu, 15 Jul 2010 18:04:45 +0200 Original-Received: from localhost ([127.0.0.1]:33923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZQvN-00082W-Av for ged-emacs-devel@m.gmane.org; Thu, 15 Jul 2010 12:04:37 -0400 Original-Received: from [140.186.70.92] (port=53693 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZQrt-0006gO-7A for emacs-devel@gnu.org; Thu, 15 Jul 2010 12:01:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZQrj-00028Y-66 for emacs-devel@gnu.org; Thu, 15 Jul 2010 12:01:00 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:2919) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZQrj-00027u-1k for emacs-devel@gnu.org; Thu, 15 Jul 2010 12:00:51 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 92E0678A48DC for ; Thu, 15 Jul 2010 18:00:49 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19292-02 for ; Thu, 15 Jul 2010 18:00:49 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.localnet (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id F371C78A47F9 for ; Thu, 15 Jul 2010 18:00:48 +0200 (CEST) User-Agent: KMail/1.13.5 (Linux/2.6.35-rc4-git5; KDE/4.4.5; x86_64; ; ) X-Face: `TY6r/ws=N5uqO1E`M=Sups<}n%T[E^o_?MJj 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:127374 Archived-At: Hi all, I really like the idea of the `initials' completion style, but that doesn't work for me. When I do `M-x ss' I want to call `server-start' (or any other command with exactly 2 words separated by some non-word-char). I had an own mode for executing commands by giving only initials, but I'd like to drop that for the new `completion-styles' in recent emacsen. Using (setq completion-styles '(basic initials partial-completion)), `M-x ss' will complete to "s-s", but the completion list also contains entries with more subwords, like secrets-show-secrets. Those are added by the partial-completion style. If I use (setq completion-styles '(basic initials)), `M-x ss' will complete to "s-s", but then no matches are found anymore, cause this expansion requires partial-completion. So it would be good, if there was a variant of partial-completion that didn't consider symbols with more hyphens than are actually there. Or is there a way to do that right now (using a recent bzr checkout)? Bye, Tassilo