Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 30 / 7d7561db64c23acd8e32738eec9f1dd6d439f5
1 Return-Path: <dme@dme.org>\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 8E5CD4196F2\r
6         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 02:36:56 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\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 FcO8LLk8yI98 for <notmuch@notmuchmail.org>;\r
16         Mon, 26 Apr 2010 02:36:55 -0700 (PDT)\r
17 Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com\r
18  [74.125.82.53])        by olra.theworths.org (Postfix) with ESMTP id CCE5D431FC1       for\r
19  <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 02:36:54 -0700 (PDT)\r
20 Received: by wwi18 with SMTP id 18so283703wwi.26\r
21         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 02:36:54 -0700 (PDT)\r
22 Received: by 10.216.86.82 with SMTP id v60mr2960wee.180.1272274579884;\r
23         Mon, 26 Apr 2010 02:36:19 -0700 (PDT)\r
24 Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
25         [83.217.165.81])\r
26         by mx.google.com with ESMTPS id x1sm20474253wbx.13.2010.04.26.02.36.17\r
27         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
28         Mon, 26 Apr 2010 02:36:18 -0700 (PDT)\r
29 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
30         id 7DBB7594135; Mon, 26 Apr 2010 10:36:28 +0100 (BST)\r
31 To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org\r
32 Subject: Re: [PATCH] emacs: Add notmuch-hello.el,\r
33         a friendly frontend to notmuch\r
34 In-Reply-To: <87iq7i2aia.fsf@yoom.home.cworth.org>\r
35 References: <87y6gguw99.fsf@yoom.home.cworth.org>\r
36         <1271924853-8183-1-git-send-email-dme@dme.org>\r
37         <87iq7i2aia.fsf@yoom.home.cworth.org>\r
38 User-Agent: Notmuch/0.2-187-g7c5f017 (http://notmuchmail.org) Emacs/23.1.1\r
39         (x86_64-pc-linux-gnu)\r
40 From: David Edmondson <dme@dme.org>\r
41 Date: Mon, 26 Apr 2010 10:36:28 +0100\r
42 Message-ID: <87ljcaimhv.fsf@ut.hh.sledj.net>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain; charset=us-ascii\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Mon, 26 Apr 2010 09:36:56 -0000\r
58 \r
59 On Fri, 23 Apr 2010 13:13:01 -0700, Carl Worth <cworth@cworth.org> wrote:\r
60 >   * This should be integrated such that (require 'notmuch) provides the\r
61 >     notmuch-hello functionality. That's our documented access point for\r
62 >     getting at notmuch functionality.\r
63 \r
64 I'll do this, but I wonder if it is actually good advice. It causes\r
65 notmuch.el (and anything that requires) to be loaded immediately. This\r
66 will typically happen before any of a users' customisation settings are\r
67 loaded (as `custom-set-variables', etc. generally happens right at the\r
68 bottom of .emacs).\r
69 \r
70 A result of this is that notmuch can't use any of the customisation\r
71 settings to adapt its' behaviour at load time. A example is (about which\r
72 more lower down):\r
73 \r
74 >   * I would *love* a simple way to import my existing notmuch-folder\r
75 >     configuration into notmuch-hello. Bonus points if this happens\r
76 >     automatically.\r
77 \r
78 notmuch-hello.el has:\r
79 \r
80 (defcustom notmuch-hello-saved-searches notmuch-folders\r
81   "A list of saved searches to display."\r
82   :type '(alist :key-type string :value-type string)\r
83   :group 'notmuch)\r
84 \r
85 So if `notmuch-folders' is set before notmuch-hello.el is loaded, you\r
86 get some saved-searches copied from your folders (but this won't\r
87 override any specific settings you made for\r
88 `notmuch-hello-saved-searches').\r
89 \r
90 Relying on the order in general is bad\r
91 (cf. `notmuch-search-authors-width'), but it can allow us to provide\r
92 some useful functionality.\r
93 \r
94 If we don't want users to "(require 'notmuch)" we'd probably have to\r
95 suggest one or more autoloads - perhaps even provide a file with a bunch\r
96 of autoloads in it. Oh, or "(require 'notmuch)" should just load\r
97 something that has the autoloads (d'oh!) and some\r
98 `define-mail-user-agent' goop so that `compose-mail' does the right\r
99 thing.\r
100 \r
101 I'll try to produce a patch for this last thing.\r
102 \r
103 >   * The logo background is gray on my white-background emacs. That\r
104 >     looks odd.\r
105 \r
106 Patch sent.\r
107 \r
108 >   * It would be great if point were in the search bar right when this\r
109 >     mode started.\r
110 \r
111 This is customisable, and I see that you changed the default ;-)\r
112 \r
113 >   * I'd like the saved searches to appear before the recent searches I\r
114 >     think.\r
115 \r
116 Did you come to any conclusion about this?\r
117 \r
118 >   * I'm not sure how useful the numbered shortcuts are for the recent\r
119 >     searches. We want to encourage people to move to saved searches\r
120 >     instead, (and the recent searches are quite transient anyway). So do\r
121 >     we really need these? [I mistook them for message counts at\r
122 >     first.]\r
123 \r
124 Patch sent which removes them.\r
125 \r
126 >   * Repeating a recent search by pressing RET on it creates a new\r
127 >     identical search which doesn't seem all that useful.\r
128 \r
129 Patch sent.\r
130 \r
131 >   * I would *love* a simple way to import my existing notmuch-folder\r
132 >     configuration into notmuch-hello. Bonus points if this happens\r
133 >     automatically.\r
134 \r
135 We could have `notmuch-hello' use `notmuch-folders' if\r
136 `notmuch-hello-saved-searches' is `nil'. Would that help?\r
137 \r
138 > Finally, I'm quite inclined to make `notmuch' invoke this mode, so\r
139 > think about that.\r
140 \r
141 It seems straightforward, I'll produce a patch.\r
142 \r
143 dme.\r
144 -- \r
145 David Edmondson, http://dme.org\r