"snoozing" with notmuch?
[notmuch-archives.git] / 1e / 38f8fb3cb8f73655857f966cdf314052524b6e
1 Return-Path: <david@tethera.net>\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 3482B431FBD\r
6         for <notmuch@notmuchmail.org>; Sat, 25 Jan 2014 17:20:41 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id QqjlILesnT9T for <notmuch@notmuchmail.org>;\r
16         Sat, 25 Jan 2014 17:20:35 -0800 (PST)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id B6E15431FBC\r
21         for <notmuch@notmuchmail.org>; Sat, 25 Jan 2014 17:20:35 -0800 (PST)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <david@tethera.net>)\r
24         id 1W7EOk-0005Lw-0J; Sat, 25 Jan 2014 21:20:30 -0400\r
25 Received: (nullmailer pid 29273 invoked by uid 1000); Sun, 26 Jan 2014\r
26         01:20:26 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: Tomi Ollila <tomi.ollila@iki.fi>, Mark Walters\r
29         <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
30 Subject: Re: [PATCH] emacs: initialize ido mode in notmuch-mua.el\r
31 In-Reply-To: <m2a9ejkb05.fsf@guru.guru-group.fi>\r
32 References: <87y5sipcjn.fsf@qmul.ac.uk>\r
33         <1329900529-16295-1-git-send-email-markwalters1009@gmail.com>\r
34         <87bnyzoqq9.fsf@zancas.localnet> <m2a9ejkb05.fsf@guru.guru-group.fi>\r
35 User-Agent: Notmuch/0.17+42~gb867564 (http://notmuchmail.org) Emacs/24.3.1\r
36         (x86_64-pc-linux-gnu)\r
37 Date: Sat, 25 Jan 2014 21:20:26 -0400\r
38 Message-ID: <87y523mtd1.fsf@zancas.localnet>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 26 Jan 2014 01:20:41 -0000\r
54 \r
55 Tomi Ollila <tomi.ollila@iki.fi> writes:\r
56 \r
57 >\r
58 > How about doing it with defadvice with something like:\r
59 >\r
60 > (from http://comments.gmane.org/gmane.emacs.bugs/27856 one can notice\r
61 > this happening with emacs 23.3 -- David can check whether 23.4 if\r
62 > affected)\r
63 \r
64 It's fixed in 23.4\r
65 \r
66 >\r
67 > (if (and (= emacs-major-version 23) (< emacs-minor-version 4))\r
68 >   (defadvice ido-completing-read (before notmuch-ido-mode-init activate)\r
69 >       (unless (ido-mode) (ido-mode t))\r
70 >       (ad-disable-advice 'ido-completing-read 'before 'notmuch-ido-mode-init)))\r
71 \r
72 Advice always seems over complex to me, but maybe I'm just\r
73 prejudiced/ignorant.\r
74 \r
75 Can you decode/reverse-engineer the fix in \r
76 \r
77     http://permalink.gmane.org/gmane.emacs.bugs/41957\r
78 \r
79 ?\r
80 \r
81 Maybe the advice or whatever should call \r
82 \r
83    (ido-init-completion-maps)\r
84    (add-hook 'minibuffer-setup-hook 'ido-minibuffer-setup)\r
85    (add-hook 'choose-completion-string-functions\r
86       'ido-choose-completion-string))\r
87 \r
88 Although that looks worryingly permanent.\r
89 \r
90 \r
91 \r
92 d\r