Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 58B0E431FD0 for ; Mon, 14 Mar 2011 02:40:12 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9WaqySKAR3WT for ; Mon, 14 Mar 2011 02:40:11 -0700 (PDT) X-Greylist: delayed 574 seconds by postgrey-1.32 at olra; Mon, 14 Mar 2011 02:40:11 PDT Received: from gateway12.websitewelcome.com (gateway12.websitewelcome.com [69.56.148.16]) by olra.theworths.org (Postfix) with SMTP id 3973A431FB5 for ; Mon, 14 Mar 2011 02:40:11 -0700 (PDT) Received: (qmail 21423 invoked from network); 14 Mar 2011 09:29:05 -0000 Received: from terminator.websitewelcome.com (74.53.228.194) by gateway12.websitewelcome.com with SMTP; 14 Mar 2011 09:29:05 -0000 Received: from [77.12.22.172] (port=62971 helo=work) by terminator.websitewelcome.com with esmtpa (Exim 4.69) (envelope-from ) id 1Pz46k-0004b9-DK; Mon, 14 Mar 2011 04:30:35 -0500 From: Kristoffer =?utf-8?Q?Str=C3=B6m?= To: servilio , notmuch Subject: Re: [RFC] Enhancements to address completion In-Reply-To: References: User-Agent: Notmuch/0.5-61-g21e97c5 (http://notmuchmail.org) Emacs/23.2.1 (i686-pc-linux-gnu) Date: Mon, 14 Mar 2011 10:26:20 +0100 Message-ID: <86ipvmqchv.fsf@meetrics.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - terminator.websitewelcome.com X-AntiAbuse: Original Domain - notmuchmail.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - meetrics.de X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 09:40:12 -0000 On Mon, 14 Mar 2011 02:29:14 -0400, servilio wrote: > I have been working in some enhancements to the emacs UI address > completion, and this weekend I was able to find a way to finish the > implementation to an acceptable (to me) state. > > The gist of it is allowing the completion in Emacs to match against > any part of the addresses returned by the notmuch-addrlookup command. > I could not find a way to have completing-read behave that way, the > strategy of matching anchored to the beginning of strings is > in-grained in its design for what I've seen. > > The current implementation uses Ido, included with Emacs at least in > version 23, and is available at: > > git://git.latertulia.org/servilio/notmuch.git > > In the branch complete-name-and-address-v2. There is a web interface > if you prefer to see the changes, just use "http" as the protocol in > your web browser. > > The first few changes in the branch are fixes and small enhancements I > found while working on this, and I have sent them as separate patches > for acceptance as they are independent of this work. All of this has > been in use (in the form of the branch without "-v2") for almost a > year. I started a message in August but somehow successfully forgot > completely about it. > > Regards, > > Servilio Have you looked at 'ido-completing-read that comes with ido-mode? I use it for completing through a modified version of eudc-select. It allows for fuzzy matching on any part of the name.