--- /dev/null
+Return-Path: <m.walters@qmul.ac.uk>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 2D2B0416372\r
+ for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 15:34:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.098\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
+ tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
+ NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id TK2lRSMiuQ0v for <notmuch@notmuchmail.org>;\r
+ Fri, 24 Feb 2012 15:34:48 -0800 (PST)\r
+Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 2CC29415E5E\r
+ for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 15:34:48 -0800 (PST)\r
+Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
+ by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
+ (envelope-from <m.walters@qmul.ac.uk>)\r
+ id 1S14ex-00006a-Kl; Fri, 24 Feb 2012 23:34:44 +0000\r
+Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
+ helo=localhost)\r
+ by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
+ (envelope-from <m.walters@qmul.ac.uk>)\r
+ id 1S14ex-0003DS-7Y; Fri, 24 Feb 2012 23:34:43 +0000\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [RFC PATCH 1/3] emacs: selection-menu.el\r
+In-Reply-To: <1330009817-24148-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1330009817-24148-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.11.1+229~g7cd7c51 (http://notmuchmail.org) Emacs/23.2.1\r
+ (i486-pc-linux-gnu)\r
+Date: Fri, 24 Feb 2012 23:36:23 +0000\r
+Message-ID: <874nufx0qw.fsf@qmul.ac.uk>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Sender-Host-Address: 94.192.233.223\r
+X-QM-SPAM-Info: Sender has good ham record. :)\r
+X-QM-Body-MD5: 254baf6701727128a9dc47f10bc6b86b (of first 20000 bytes)\r
+X-SpamAssassin-Score: -1.8\r
+X-SpamAssassin-SpamBar: -\r
+X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
+ determine if it is\r
+ spam. We require at least 5.0 points to mark a message as spam.\r
+ This message scored -1.8 points.\r
+ Summary of the scoring: \r
+ * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
+ * medium trust\r
+ * [138.37.6.40 listed in list.dnswl.org]\r
+ * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
+ provider * (markwalters1009[at]gmail.com)\r
+ * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
+ * domain\r
+ * 0.5 AWL AWL: From: address is in the auto white-list\r
+X-QM-Scan-Virus: ClamAV says the message is clean\r
+Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 24 Feb 2012 23:34:49 -0000\r
+\r
+On Thu, 23 Feb 2012 17:10:15 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+> RFC/Idea for "improving" some selections made (in notmuch or elsewhere)\r
+> In the hope that this will be useful, and to get some improvement advice.\r
+> \r
+> I've found it somewhat difficult to use completing-read (i also tried ido-)\r
+> to complete email addresses for mail recipients (not only due to the\r
+> large selection of choises provided by nottoomuch-addresses.sh ;)\r
+> and have tried to find alternatives.\r
+> \r
+> The buffer selection systems (electric-buffer-list, bs-show, etc) have been\r
+> pretty useful but I haven't found anything general.\r
+> \r
+> After some 3 iterations I've come up with something like those but for\r
+> arbitraty strings and so-far named that tool 'selection-menu'\r
+> \r
+> This works by popping up buffer with all the choices shown in separate\r
+> lines. arrow keys (and c-p/c-n) can be used to choose string and\r
+> RET/SPC to select that. Any other key will abort the selection (ESC\r
+> mentioned spesifically as it never "unreads" any events).\r
+> \r
+> If requested user not choosing anything but pressing some key that\r
+> key is "unread" so that the parent buffer will get it. I did that\r
+> as in first tests I wanted to continue writing If I did not choose\r
+> anything... More tests will show If really didn't want to loose that\r
+> event).\r
+\r
+Hi \r
+\r
+I have played with this and I like the feel of it: it is much more\r
+informative than completing-read and much less cluttered than\r
+ido-completing-read. \r
+\r
+I have some queries though:\r
+\r
+In some uses the user might want to choose something that is not offered\r
+(not relevant for this particular use, but maybe relevant for other\r
+notmuch uses like selecting a from address). Is this a design choice?\r
+\r
+I think I would like to be able to type in the buffer it shows,\r
+e.g. page down to page through lots of addresses, maybe ctrl-s for\r
+searching. Another possibility would be for the selection to narrow as\r
+extra characters are typed. Though in fact maybe your choice of leaving\r
+the character is exactly right: then the caller can take the extra\r
+character and call selection-menu again. (I had something which almost\r
+worked and it seemed quite nice).\r
+\r
+Finally, does this solution mean there is no "history" available?\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r