1 Return-Path: <markwalters1009@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 7C31F429E25
\r
6 for <notmuch@notmuchmail.org>; Thu, 12 Jul 2012 10:54:21 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id Z6V32W+TwCd2 for <notmuch@notmuchmail.org>;
\r
18 Thu, 12 Jul 2012 10:54:19 -0700 (PDT)
\r
19 Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com
\r
20 [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id A7F01431FAF
\r
23 for <notmuch@notmuchmail.org>; Thu, 12 Jul 2012 10:54:19 -0700 (PDT)
\r
24 Received: by wibhq4 with SMTP id hq4so1938653wib.2
\r
25 for <notmuch@notmuchmail.org>; Thu, 12 Jul 2012 10:54:17 -0700 (PDT)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer;
\r
28 bh=KJgEDuOLPuXo4EZ+K0wOu0p24mPbFa5tYRgS0yRZVDM=;
\r
29 b=afiVCte6bvp/HVGCOBfWvGsanX9pF5CXmFSkeW1O20Iyr/nfe/vIpClSPbQUrN31Rf
\r
30 a8hI1uxKEv3WMVBIm83EAi3IgYpOEnyYfF84VlnAJyRVl96y7t80I3a6M2q/IQuVdc3R
\r
31 p0DUY3F3wTAQWviTocZ6NRAOO/Z1w2Ag5FgldB9IZ3AGQk546RyrCo8uafcf9lWKKPEN
\r
32 t3gWW4dmppGdpumCXwrOb4b/WA1WgBXz3Zik0H70+beqK1vuueOgZGqhMgC+Ih2rFVNj
\r
33 DaC1uXEfZiXI9cpQZXKz6j7Y7uQszkpjTISzlrUbhc9UDTZ7dpGcsGJtz2N8jM7B9/3e
\r
35 Received: by 10.216.136.72 with SMTP id v50mr4437563wei.203.1342115657041;
\r
36 Thu, 12 Jul 2012 10:54:17 -0700 (PDT)
\r
37 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.
\r
38 [94.192.233.223]) by mx.google.com with ESMTPS id
\r
39 t8sm18233wiy.3.2012.07.12.10.54.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu,
\r
40 12 Jul 2012 10:54:15 -0700 (PDT)
\r
41 From: Mark Walters <markwalters1009@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [RFC] emacs: use ido completing read for address completion in
\r
45 Date: Thu, 12 Jul 2012 18:54:07 +0100
\r
46 Message-Id: <1342115648-12147-1-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.9.1
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Thu, 12 Jul 2012 17:54:21 -0000
\r
62 This patch uses ido-completing-read for address completion in message
\r
63 mode. Although ido-completing-read is nominally a drop-in replacement
\r
64 for completing-read `initial` and `default` behave rather differently
\r
65 and it makes sense to use `default` rather than `initial` in the ido
\r
69 There was some interest on irc for using ido-completing-read for
\r
70 address completion in message-mode so here is a trivial patch.
\r
72 I am not sure I like the ido-completing-read behaviour as typing in
\r
73 the minibuffer matches anywhere in the address not just at the start
\r
74 of the address. I think there is a difference between this and setting
\r
75 the users from address where it is likely that many of their addresses
\r
78 But it might be a starting point for experiments.
\r
85 emacs/notmuch-address.el | 6 +++---
\r
86 1 files changed, 3 insertions(+), 3 deletions(-)
\r
88 diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
\r
89 index 2bf762b..08e0e38 100644
\r
90 --- a/emacs/notmuch-address.el
\r
91 +++ b/emacs/notmuch-address.el
\r
92 @@ -61,9 +61,9 @@ line."
\r
96 - (completing-read (format "Address (%s matches): " num-options)
\r
97 - (cdr options) nil nil (car options)
\r
98 - 'notmuch-address-history)))))
\r
99 + (ido-completing-read (format "Address (%s matches): " num-options)
\r
100 + (cdr options) nil nil nil
\r
101 + 'notmuch-address-history (car options))))))
\r
104 (push chosen notmuch-address-history)
\r