How does notmuch track mails?
[notmuch-archives.git] / a4 / faf74a3c37dd990e2d17da35cea3a636ad628a
1 Return-Path: <daniel@schoepe.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 CC2EE421169\r
6         for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:47:35 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.8\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id zGff0vypybLO for <notmuch@notmuchmail.org>;\r
17         Sun, 12 Feb 2012 06:47:35 -0800 (PST)\r
18 Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com\r
19  [74.125.83.53])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  AF123429E5F    for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:47:32 -0800\r
22  (PST)\r
23 Received: by eeke51 with SMTP id e51so2239036eek.26\r
24         for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:47:31 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;\r
26         h=mime-version:from:to:cc:subject:date:message-id:x-mailer\r
27         :in-reply-to:references;\r
28         bh=prSjp0+yd8f6YVF9mfS/iYEfAhpSVFPh4KTHtQWYACs=;\r
29         b=Xuml1fACnA/Nf69StEN/pYaMOgVnWIQSPOuE4aQmt91fmhri5qI/V07TyOsbJUXEJf\r
30         O5QGjzPrUxc/sf4fyY0t5+RE02UDgzB4VC70rWL/p0fn/z3JAY/AmWm7w0b+OjhLOjim\r
31         bzHaexNSU1sqHfQRtl68KbVb9WoOmrmfP/4qs=\r
32 MIME-Version: 1.0\r
33 Received: by 10.213.27.73 with SMTP id h9mr789774ebc.31.1329058051484;\r
34         Sun, 12 Feb 2012 06:47:31 -0800 (PST)\r
35 Received: from localhost (dslb-088-069-141-163.pools.arcor-ip.net.\r
36         [88.69.141.163])\r
37         by mx.google.com with ESMTPS id n56sm49411338eeh.6.2012.02.12.06.47.30\r
38         (version=TLSv1/SSLv3 cipher=OTHER);\r
39         Sun, 12 Feb 2012 06:47:30 -0800 (PST)\r
40 From: Daniel Schoepe <daniel@schoepe.org>\r
41 To: notmuch@notmuchmail.org\r
42 Subject: [PATCH] emacs: Make highlight-faces for pick configurable\r
43 Date: Sun, 12 Feb 2012 15:47:18 +0100\r
44 Message-Id: <1329058038-6029-2-git-send-email-daniel@schoepe.org>\r
45 X-Mailer: git-send-email 1.7.9\r
46 In-Reply-To: <1329058038-6029-1-git-send-email-daniel@schoepe.org>\r
47 References: <87d39k1gvi.fsf@qmul.ac.uk>\r
48         <1329058038-6029-1-git-send-email-daniel@schoepe.org>\r
49 X-Gm-Message-State:\r
50  ALoCoQnRpKOIEpWQia6Z4/AoKBGOWYBattifV8o3laxJqvFfoUcgZfTj9mr0HLbM2T/EZEln7An/\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\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: Sun, 12 Feb 2012 14:47:36 -0000\r
64 \r
65 ---\r
66  emacs/notmuch-pick.el |   21 ++++++++++++++++++---\r
67  1 files changed, 18 insertions(+), 3 deletions(-)\r
68 \r
69 diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el\r
70 index 4c91d7c..2bf1ae4 100644\r
71 --- a/emacs/notmuch-pick.el\r
72 +++ b/emacs/notmuch-pick.el\r
73 @@ -42,6 +42,22 @@\r
74    :group 'notmuch\r
75    :type 'int)\r
76  \r
77 +(defface notmuch-pick-match-face\r
78 +  '((((class color)\r
79 +      (background dark))\r
80 +     (:foreground "white"))\r
81 +    (((class color)\r
82 +      (background light))\r
83 +     (:foreground "black"))\r
84 +    (t (:bold t)))\r
85 +  "Face used in pick mode for matching messages."\r
86 +  :group 'notmuch)\r
87 +\r
88 +(defface notmuch-pick-no-match-face\r
89 +  '((t (:foreground "gray")))\r
90 +  "Face used in pick mode for messages not matching the query."\r
91 +  :group 'notmuch)\r
92 +\r
93  (defvar notmuch-pick-previous-subject "")\r
94  (make-variable-buffer-local 'notmuch-pick-previous-subject)\r
95  \r
96 @@ -415,10 +431,9 @@ unchanged ADDRESS if parsing fails."\r
97          (match (plist-get msg :match))\r
98          (tags (plist-get msg :tags))\r
99          (bare-subject (notmuch-show-strip-re (plist-get headers :Subject)))\r
100 -        ;; Face should be a defcustom or something MJW\r
101          (message-face (if match\r
102 -                          '(:foreground "black")\r
103 -                      '(:foreground "gray"))))\r
104 +                          'notmuch-pick-match-face\r
105 +                        'notmuch-pick-no-match-face)))\r
106  \r
107      (insert (propertize (concat\r
108                          (notmuch-pick-string-width\r
109 -- \r
110 1.7.9\r
111 \r