Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 0b / a0e04ca0acebfd95d8c06b22342eca96e9a96d
1 Return-Path: <rlb@defaultvalue.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 DF6B340BFD3\r
6         for <notmuch@notmuchmail.org>; Sat, 11 Sep 2010 16:38:06 -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 BNwxlMyIODbt for <notmuch@notmuchmail.org>;\r
16         Sat, 11 Sep 2010 16:37:56 -0700 (PDT)\r
17 Received: from defaultvalue.org (li12-156.members.linode.com [70.85.129.156])\r
18         by olra.theworths.org (Postfix) with ESMTP id 24A2940BD85\r
19         for <notmuch@notmuchmail.org>; Sat, 11 Sep 2010 16:37:56 -0700 (PDT)\r
20 Received: from omen.defaultvalue.org (localhost [127.0.0.1])\r
21         by defaultvalue.org (Postfix) with ESMTP id C34589107B\r
22         for <notmuch@notmuchmail.org>; Sat, 11 Sep 2010 18:37:55 -0500 (CDT)\r
23 Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7])\r
24         by omen.defaultvalue.org (Postfix) with ESMTP id 985D750169\r
25         for <notmuch@notmuchmail.org>; Sat, 11 Sep 2010 18:37:55 -0500 (CDT)\r
26 Received: by raven.defaultvalue.org (Postfix, from userid 1000)\r
27         id 820B37C400D; Sat, 11 Sep 2010 18:37:55 -0500 (CDT)\r
28 From: Rob Browning <rlb@defaultvalue.org>\r
29 To: notmuch@notmuchmail.org\r
30 Subject: Strings vs symbols in notmuch-search-result-format\r
31 Date: Sat, 11 Sep 2010 18:37:55 -0500\r
32 Message-ID: <87mxrnn964.fsf@raven.defaultvalue.org>\r
33 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Sat, 11 Sep 2010 23:38:07 -0000\r
49 \r
50 \r
51 I've started to look at the elisp, and wondered why\r
52 notmuch-search-result-format expected strings rather than symbols for\r
53 the field names, i.e.:\r
54 \r
55      (("date" . "%s ")\r
56       ("count" . "%-7s ")\r
57       ("authors" . "%-20s ")\r
58       ("subject" . "%s ")\r
59       ("tags" . "(%s)"))\r
60 \r
61 instead of \r
62 \r
63      ((date . "%s ")\r
64       (count . "%-7s ")\r
65       (authors . "%-20s ")\r
66       (subject . "%s ")\r
67       (tags . "(%s)"))\r
68 \r
69 Perhaps there's a good argument for strings, but if not, the latter is\r
70 more idiomatic, and a bit more efficient too (comparisons will just be\r
71 pointer compares (via assq) rather than something like a strcmp (assoc)).\r
72 \r
73 In any case, I imagine this might not be something you'd want to change\r
74 at this point -- I'm just trying to make sure I understand the current\r
75 code.\r
76 \r
77 Thanks\r
78 -- \r
79 Rob Browning\r
80 rlb @defaultvalue.org and @debian.org\r
81 GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4\r