From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 90F6F431FD0 for ; Tue, 24 May 2011 14:54:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] 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 URR2jFhbSF6c for ; Tue, 24 May 2011 14:54:48 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id 0A0C1431FB6 for ; Tue, 24 May 2011 14:54:48 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B151329A058; Tue, 24 May 2011 14:54:46 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id A1F2425417E; Tue, 24 May 2011 14:54:46 -0700 (PDT) From: Carl Worth To: Stewart Smith , notmuch Subject: Re: Multiple sender identities (composing) In-Reply-To: <87vcxb0za4.fsf@flamingspork.com> References: <87vcxb0za4.fsf@flamingspork.com> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Tue, 24 May 2011 14:54:37 -0700 Message-ID: <87wrhfvk6a.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: Tue, 24 May 2011 21:54:48 -0000 --=-=-= On Mon, 16 May 2011 19:29:07 +1000, Stewart Smith wrote: > Thought I'd share this bit of my .emacs snippet that may be useful to go > on the emacs tips page. Hi Stewart, Thanks for sharing this functionality. I've wanted something like this, but I'm extremely reluctant to put fancy things like this in my .emacs file. The problem I have is that I don't want to restrict nice features to the people who manage to configure their emacs "just so". I'd much rather have this functionality inside notmuch itself, and without requiring any configuration (by default). I'll reply with a patch I just wrote attempting to implement that. By default, it generates the list of addresses by looking in your notmuch configuration file. It also provides a customizable list of addresses that the user can provide (notmuch-identities). The patch doesn't make all new composition buffers prompt for the address. Instead, the original 'm' key does no prompting as its always done. And a new 'M' key prompts. I did use ido-completing-read rather than completing-read. I did that because otherwise it's a pain to complete addresses. For example, imagine I have the following: Carl Worth Carl Worth Carl Worth To select my intel address hit "C [TAB]", "a [TAB]", "i [TAB]" which is random enough that I can't memorize it but have to instead slowly watch. With ido I can just type "intel [ENTER]" which is nice and quick (and I can get trained to type less if sufficient. One thing I don't like about ido is that the input area is extremely cluttered from the beginning with all the possible inputs. I wish it instead waiting for some explicit keypress (such as pressing ENTER while the input is still ambiguous) before displaying possible matches. I don't know what trouble you had with ido on Ubuntu, but hopefully you can work that out. I did implement support for completion history. I did not implement support for doing completion when forwarding. A nice addition would be an easy keybinding for doing the same completion to change the From header while composing a message. Anyway, I'm throwing this out for feedback, testing, and suggestions. Please let me know if you try and out and if you think we should push this code. -Carl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3cKR0ACgkQ6JDdNq8qSWi8nQCghqIt1htz+Ov89oZ2yO++Gkf0 HYkAniMEN3UsTmpDMy56BywpDWfW5Pzx =3r6E -----END PGP SIGNATURE----- --=-=-=--