From: Carl Worth Date: Sat, 24 Apr 2010 00:49:38 +0000 (+1700) Subject: Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13d00cbf4d74fa5f607ec52433039bd4cff3821e;hp=35dfbf0638203830dfb351b11eab9e0d90a7478b;p=notmuch-archives.git Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch --- diff --git a/0c/a03e294b1893fb9301b9e49be1a06728de8c08 b/0c/a03e294b1893fb9301b9e49be1a06728de8c08 new file mode 100644 index 000000000..8348885ea --- /dev/null +++ b/0c/a03e294b1893fb9301b9e49be1a06728de8c08 @@ -0,0 +1,93 @@ +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 133984196F4 + for ; Fri, 23 Apr 2010 17:49:40 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.89 +X-Spam-Level: +X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 + tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] + autolearn=ham +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 uQgFHSe1fAGM; Fri, 23 Apr 2010 17:49:39 -0700 (PDT) +Received: from yoom.home.cworth.org (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id F41994196F3; + Fri, 23 Apr 2010 17:49:38 -0700 (PDT) +Received: by yoom.home.cworth.org (Postfix, from userid 1000) + id A4751568DEC; Fri, 23 Apr 2010 17:49:38 -0700 (PDT) +From: Carl Worth +To: David Edmondson , notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: Add notmuch-address.el for address completion + using notmuch +In-Reply-To: <1271927023-10103-1-git-send-email-dme@dme.org> +References: <1271927023-10103-1-git-send-email-dme@dme.org> +User-Agent: Notmuch/0.2-173-gbae184f (http://notmuchmail.org) Emacs/23.1.1 + (i486-pc-linux-gnu) +Date: Fri, 23 Apr 2010 17:49:38 -0700 +Message-ID: <87633hoesd.fsf@yoom.home.cworth.org> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha1; protocol="application/pgp-signature" +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: Sat, 24 Apr 2010 00:49:40 -0000 + +--=-=-= + +On Thu, 22 Apr 2010 10:03:43 +0100, David Edmondson wrote: +> A tool `notmuch-addresses' is required to produce addresses which +> match a query string. An example of a suitable script can be found in +> the git repository at +> http://jkr.acm.jhu.edu/git/notmuch_addresses.git +> There are no doubt others. + +I applied this, but I've had some difficulty figuring out how to use it +given just the above instructions. + +I did install the above-referenced python script[*] as notmuch-addresses +on my path. And I tested it at the command line and it seemed to act +reasonably. + +But hitting TAB in message-mode continued to frobnicate BBDB instead. + +I finally hit on doing (require 'notmuch-address) in .emacs. As noted +previously, can we please make (require 'notmuch) pull in all notmuch +functionality rather than having it separated like this? + +Finally, though, I haven't figured out how to get more than a single +match from this. If the first match isn't what I want, how do I see and +choose later matches? + +In the meantime, I've pushed this already. + +-Carl + +[*] Which also made me figure out how to install our python bindings. I +found "sudo python ./setup.py install" eventually, but it would be quite +nice if "sudo make install" took care of that. + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.10 (GNU/Linux) + +iD8DBQFL0kAi6JDdNq8qSWgRAtqIAJ9Wrio/ItzhrrhucceJLBc/ivYvGgCeJROR +DzfMg+eQtXNxDF0awkBmCd8= +=iR/p +-----END PGP SIGNATURE----- +--=-=-=--