Re: [PATCH v4 09/16] index encrypted parts when asked.
[notmuch-archives.git] / e1 / 620dfab2785dbddb3b4865f3dc94c806bd1abe
1 Return-Path: <jan@ryngle.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 ECFB2431FAE\r
6         for <notmuch@notmuchmail.org>; Wed,  2 Dec 2009 06:39:01 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id EixBPD0vR7Fz for <notmuch@notmuchmail.org>;\r
11         Wed,  2 Dec 2009 06:39:01 -0800 (PST)\r
12 Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com\r
13         [209.85.218.224])\r
14         by olra.theworths.org (Postfix) with ESMTP id DD2A9431FBC\r
15         for <notmuch@notmuchmail.org>; Wed,  2 Dec 2009 06:39:00 -0800 (PST)\r
16 Received: by bwz24 with SMTP id 24so226831bwz.30\r
17         for <notmuch@notmuchmail.org>; Wed, 02 Dec 2009 06:38:59 -0800 (PST)\r
18 Received: by 10.204.48.144 with SMTP id r16mr182524bkf.170.1259764739333;\r
19         Wed, 02 Dec 2009 06:38:59 -0800 (PST)\r
20 Received: from x61s.janakj ([213.192.30.141])\r
21         by mx.google.com with ESMTPS id 13sm1522569fks.15.2009.12.02.06.38.55\r
22         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
23         Wed, 02 Dec 2009 06:38:56 -0800 (PST)\r
24 Received: by x61s.janakj (Postfix, from userid 1000)\r
25         id 37934440651; Wed,  2 Dec 2009 15:38:54 +0100 (CET)\r
26 Date: Wed, 2 Dec 2009 15:38:54 +0100\r
27 From: Jan Janak <jan@ryngle.com>\r
28 To: Jed Brown <jed@59A2.org>\r
29 Message-ID: <20091202143854.GD4411@ryngle.com>\r
30 References: <1258976966-22407-1-git-send-email-jed@59A2.org>\r
31         <1258999643-30742-1-git-send-email-jed@59A2.org>\r
32         <87bpii9j7o.fsf@yoom.home.cworth.org> <87vdgp4p5e.fsf@59A2.org>\r
33         <20091202131808.GC4411@ryngle.com> <874oo9fq03.fsf@59A2.org>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 Content-Disposition: inline\r
37 In-Reply-To: <874oo9fq03.fsf@59A2.org>\r
38 User-Agent: Mutt/1.5.18 (2008-05-17)\r
39 Cc: notmuch@notmuchmail.org\r
40 Subject: Re: [notmuch] [PATCH] Make search filters handle\r
41         disjunctive     queries.\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.12\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Wed, 02 Dec 2009 14:39:02 -0000\r
55 \r
56 Jed,\r
57 \r
58 On 02-12 14:46, Jed Brown wrote:\r
59 > On Wed, 2 Dec 2009 14:18:08 +0100, Jan Janak <jan@ryngle.com> wrote:\r
60 > > I haven't been really following this thread in detail. What is that you need\r
61 > > from notmuch-select-tag-with-completion? To be able to process a list of tags\r
62 > > separated by spaces? Maybe I could help you with that.\r
63\r
64 > No, it would need to take input separated by spaces, now I just get `[No\r
65 > match]' when I try to enter a space.  I think it's just not how\r
66 > completing-read works, the idea would be for the user to be able to type\r
67\r
68 >   shorttag and not long<TAB>\r
69\r
70 > which would complete to\r
71\r
72 >   shorttag and not longboringtagname\r
73 \r
74 I see.\r
75 \r
76 > The point of my patch was to be able to filter using arbitrary\r
77 > expressions where every non-operator, i.e. `and', `or', `not', `(', and\r
78 > `)', is interpreted as a tag name.  Is there an easy way to accept this\r
79 > input without sacrificing completion?\r
80 \r
81 I am not completely sure, but there might be a way to do this with some of the\r
82 low-level completion functions. For example, the documentation on completion\r
83 styles:\r
84 \r
85 http://www.gnu.org/software/emacs/elisp/html_node/Completion-Styles.html#Completion-Styles\r
86 \r
87 mentions in the last paragraph that there is a style which completes each word\r
88 in the input separately. This can be enabled with (partial-completion-mode),\r
89 and indeed, if I enable this mode, try to visit a file and type ~/.n-c<TAB> then it correctly completes ~/.notmuch-config. \r
90 \r
91 This seems close enough to what you want and maybe we could somehow make it\r
92 work with notmuch, too. This would be interesting to have, because then we\r
93 could complete multiple tag names with a single TAB press not only in your\r
94 expressions, but everywhere.\r
95 \r
96 Right now we can only add one tag at a time with notmuch-search-add-tag and\r
97 similar functions. If we could make partial completion work, we could add\r
98 several tags with one command and still have their names completed.\r
99 \r
100 Let me know if you do not plan to work on this and I'll see if I can make it\r
101 work.\r
102 \r
103 -Jan\r