Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / b0 / 7bdd1be676c4fbd6f13af4b1cf5a729661df1c
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 174FB431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 00:47:50 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \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 mWa3zlmXZu3i for <notmuch@notmuchmail.org>;\r
18         Wed, 22 Feb 2012 00:47:49 -0800 (PST)\r
19 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
20         [209.85.212.181]) (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 5C7A5431FAE\r
23         for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 00:47:49 -0800 (PST)\r
24 Received: by wibhi8 with SMTP id hi8so4863183wib.26\r
25         for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 00:47:48 -0800 (PST)\r
26 Received-SPF: pass (google.com: domain of markwalters1009@gmail.com designates\r
27         10.216.139.147 as permitted sender) client-ip=10.216.139.147; \r
28 Authentication-Results: mr.google.com; spf=pass (google.com: domain of\r
29         markwalters1009@gmail.com designates 10.216.139.147 as\r
30         permitted sender) smtp.mail=markwalters1009@gmail.com;\r
31         dkim=pass header.i=markwalters1009@gmail.com\r
32 Received: from mr.google.com ([10.216.139.147])\r
33         by 10.216.139.147 with SMTP id c19mr8700195wej.11.1329900468054\r
34         (num_hops = 1); Wed, 22 Feb 2012 00:47:48 -0800 (PST)\r
35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
36         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
37         bh=lwAHsnS6wOXMaLbCgs+BGP+Snl8mcyVBK/MB1Cc/zU4=;\r
38         b=niJTtOZaTy9uV4acg6WJn4ZdcGrpfmjvnTrv2QcMMR2oNRXqpj/It0TKcwWH3dJZq6\r
39         LCInFTKeu8N2dbEmWUugsqg36tjvgaUy9tcF8ELwStr9MR1uY7jUvNNuuoea0wO6aqtU\r
40         UGEHaxyXpohbRObjhrSFibPF6wbTmVoi71V/s=\r
41 Received: by 10.216.139.147 with SMTP id c19mr7215622wej.11.1329900468005;\r
42         Wed, 22 Feb 2012 00:47:48 -0800 (PST)\r
43 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
44  [94.192.233.223])      by mx.google.com with ESMTPS id\r
45  n5sm68141576wiw.7.2012.02.22.00.47.46  (version=TLSv1/SSLv3 cipher=OTHER);\r
46         Wed, 22 Feb 2012 00:47:47 -0800 (PST)\r
47 From: Mark Walters <markwalters1009@gmail.com>\r
48 To: notmuch@notmuchmail.org\r
49 Subject: [PATCH] emacs: initialize ido mode in notmuch-mua.el\r
50 Date: Wed, 22 Feb 2012 08:48:49 +0000\r
51 Message-Id: <1329900529-16295-1-git-send-email-markwalters1009@gmail.com>\r
52 X-Mailer: git-send-email 1.7.2.3\r
53 In-Reply-To: <87y5sipcjn.fsf@qmul.ac.uk>\r
54 References: <87y5sipcjn.fsf@qmul.ac.uk>\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Wed, 22 Feb 2012 08:47:50 -0000\r
68 \r
69 ido-completing-read is used in notmuch-mua.el without any\r
70 initialization.  This should work but a bug (emacs bug #3247) in some\r
71 emacs 23 versions (including 23.2.1 from Debian stable) causes emacs\r
72 to get stuck in the mini-buffer. This tests to see if ido-mode has\r
73 been initialized and if not calls it. This avoids the bug for these\r
74 older versions of emacs.\r
75 \r
76 This is the only place that ido-completing-read is used so an alternative \r
77 would be to replace ido-completing-read by completing-read but cworth \r
78 expressed a preference for the ido version in \r
79 id:"87wrhfvk6a.fsf@yoom.home.cworth.org"\r
80 \r
81 \r
82 ---\r
83  emacs/notmuch-mua.el |    2 ++\r
84  1 files changed, 2 insertions(+), 0 deletions(-)\r
85 \r
86 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
87 index 4be7c13..9fe75db 100644\r
88 --- a/emacs/notmuch-mua.el\r
89 +++ b/emacs/notmuch-mua.el\r
90 @@ -194,6 +194,8 @@ the From: header is already filled in by notmuch."\r
91             addresses     (cons (notmuch-user-primary-email) (notmuch-user-other-email))\r
92             one-name-only t))\r
93      ;; Now prompt the user, either for an email address only or for a full identity.\r
94 +    (unless ido-mode\r
95 +      (ido-mode t))\r
96      (if one-name-only\r
97         (let ((address\r
98                (ido-completing-read (concat "Sender address for " name ": ") addresses\r
99 -- \r
100 1.7.2.3\r
101 \r