1 Return-Path: <sojkam1@fel.cvut.cz>
\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 284B9431FD0
\r
6 for <notmuch@notmuchmail.org>; Tue, 5 Jul 2011 07:09:22 -0700 (PDT)
\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 EVTawROLVxrt for <notmuch@notmuchmail.org>;
\r
16 Tue, 5 Jul 2011 07:09:21 -0700 (PDT)
\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])
\r
18 by olra.theworths.org (Postfix) with ESMTP id CE2FB431FB6
\r
19 for <notmuch@notmuchmail.org>; Tue, 5 Jul 2011 07:09:20 -0700 (PDT)
\r
20 Received: from localhost (unknown [192.168.200.4])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id AC9F519F3346;
\r
22 Tue, 5 Jul 2011 16:09:19 +0200 (CEST)
\r
23 X-Virus-Scanned: IMAP AMAVIS
\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])
\r
25 by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,
\r
27 with ESMTP id mx4WBy-qvGX4; Tue, 5 Jul 2011 16:09:14 +0200 (CEST)
\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])
\r
29 by max.feld.cvut.cz (Postfix) with ESMTP id 72C1519F3349;
\r
30 Tue, 5 Jul 2011 16:09:14 +0200 (CEST)
\r
31 Received: from steelpick.2x.cz (unknown [141.76.49.12])
\r
32 (Authenticated sender: sojkam1)
\r
33 by imap.feld.cvut.cz (Postfix) with ESMTPSA id 709E3FA004;
\r
34 Tue, 5 Jul 2011 16:09:14 +0200 (CEST)
\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.76)
\r
36 (envelope-from <sojkam1@fel.cvut.cz>)
\r
37 id 1Qe6JO-0006Od-6y; Tue, 05 Jul 2011 16:09:14 +0200
\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
39 To: Daniel Schoepe <daniel.schoepe@googlemail.com>, notmuch@notmuchmail.org
\r
40 Subject: Re: [PATCH 0/2] emacs: User-defined sections in notmuch-hello
\r
41 In-Reply-To: <87pqlpjfsa.fsf@tredergarh.home.box>
\r
42 References: <1309379221-5617-1-git-send-email-daniel.schoepe@googlemail.com>
\r
43 <87wrfxk34u.fsf@steelpick.2x.cz>
\r
44 <87pqlpjfsa.fsf@tredergarh.home.box>
\r
45 User-Agent: Notmuch/0.5-320-g02ea1cf (http://notmuchmail.org) Emacs/23.3.1
\r
46 (x86_64-pc-linux-gnu)
\r
47 Date: Tue, 05 Jul 2011 16:09:14 +0200
\r
48 Message-ID: <87wrfwyg39.fsf@steelpick.2x.cz>
\r
50 Content-Type: text/plain; charset=us-ascii
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Tue, 05 Jul 2011 14:09:22 -0000
\r
65 On Tue, 05 Jul 2011, Daniel Schoepe wrote:
\r
66 Non-text part: multipart/signed
\r
67 > On Tue, 05 Jul 2011 02:00:33 +0200, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
\r
68 > > First, the customization interface for the custom sections (not the
\r
69 > > predefined ones) is very confusing. I was not able to use it at all.
\r
70 > > Instead I hacked the source code (see below) to add my section to the
\r
71 > > notmuch-hello-sections list.
\r
73 > What specifically did you find confusing?
\r
75 Sorry for not being clear - I wrote the mail late at night, looking
\r
76 forward to some sleep :)
\r
78 > The first customization-option is intended for sections like the all
\r
79 > tags section which various configuration options which should be
\r
80 > explained by the docstrings next to the options. The second item
\r
81 > allows saved-searches-like sections.
\r
83 I'm talking about notmuch-hello-section. It seems it is not possible
\r
84 easily specify there your own function. You can either select a
\r
85 predefined section or "Customized section", which is in fact "Customized
\r
86 all-tags section". So I propose to renaming this entry like this and
\r
87 adding another one called "Custom function", where you could enter the
\r
88 name of your function.
\r
90 > By the way: Instead of editing the source directly, you can also put all
\r
91 > customizations like that in your configuration files and set
\r
92 > notmuch-hello-sections from there. Nevertheless your inbox-display
\r
93 > functions look useful in general so they should indeed be included.
\r
95 I know that, but I wanted to do the experiment quickly and this was the
\r
96 easiest way for me. Regarding setting of notmuch-hello-sections from
\r
97 .emacs, I prefer customizing it through the customization interface
\r
98 because when somebody else introduces a new section it is more
\r
99 convenient for me to try it by choosing from predefined values than
\r
100 modifying that in .emacs.
\r
102 > > And last but not least, you allow quite wild modifications of tag
\r
103 > > searches (e.g. in notmuch-hello-generate-tag-alist), but is might be
\r
104 > > also useful to use such modifications for other searches. For example, I
\r
105 > > want to modify the saved searches in a similar way.
\r
107 > Are you referring to things like specifying a filter for each tag or
\r
108 > count in saved-searches? My thinking was that since you specify each
\r
109 > item manually anyway, you can append any filter you might want to use
\r
110 > there. But I guess you're right that it's a bit more convenient to be
\r
111 > able to specify those once and not having to repeat it for each item.
\r
113 It seems that I still do not understand what the "Customized section"
\r
114 was intended to provide. I have to say I'm not able to fully decode the
\r
115 definition of notmuch-hello-customized-section, but it seems to me that
\r
116 it is a way how to customize a call to notmuch-hello-insert-all-tags.
\r
118 I wanted to say that it might be useful to have the similar options for
\r
119 saved searches. For example, what I do in my notmuch-hello-insert-inbox
\r
120 is to take the saved searches and filter them by tag:inbox. I guess that
\r
121 if there is a possibility to do that without coding in elisp, some
\r
122 people may find it useful. What do you think?
\r