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
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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
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
40 Content-Type: text/plain
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\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
55 Tomi Ollila <tomi.ollila@iki.fi> writes:
\r
58 > How about doing it with defadvice with something like:
\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
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
72 Advice always seems over complex to me, but maybe I'm just
\r
73 prejudiced/ignorant.
\r
75 Can you decode/reverse-engineer the fix in
\r
77 http://permalink.gmane.org/gmane.emacs.bugs/41957
\r
81 Maybe the advice or whatever should call
\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
88 Although that looks worryingly permanent.
\r