[PATCH] emacs: make the remaining faces configurable.
[notmuch-archives.git] / 3a / 225d8c072f20a9d2ead7da252a181fa148d8fd
1 Return-Path: <bart@jukie.net>\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 D5F80431FD2\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 20:55:21 -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 hw8zPRqeWfwF for <notmuch@notmuchmail.org>;\r
11         Tue, 24 Nov 2009 20:55:20 -0800 (PST)\r
12 Received: from tau.jukie.net (tau.jukie.net [216.239.93.128])\r
13         by olra.theworths.org (Postfix) with ESMTP id 6BC40431FC0\r
14         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 20:55:18 -0800 (PST)\r
15 Received: from localhost.localdomain (oxygen.jukie.net [10.10.10.8])\r
16         by tau.jukie.net (Postfix) with ESMTP id E97CDC00F86;\r
17         Tue, 24 Nov 2009 23:55:17 -0500 (EST)\r
18 From: Bart Trojanowski <bart@jukie.net>\r
19 To: notmuch@notmuchmail.org\r
20 Date: Tue, 24 Nov 2009 23:54:35 -0500\r
21 Message-Id: <1259124875-28212-4-git-send-email-bart@jukie.net>\r
22 X-Mailer: git-send-email 1.6.4.4.2.gc2f148\r
23 In-Reply-To: <1259124875-28212-3-git-send-email-bart@jukie.net>\r
24 References: <1259124875-28212-1-git-send-email-bart@jukie.net>\r
25         <1259124875-28212-2-git-send-email-bart@jukie.net>\r
26         <1259124875-28212-3-git-send-email-bart@jukie.net>\r
27 Cc: Bart Trojanowski <bart@jukie.net>\r
28 Subject: [notmuch] [PATCH 3/3] notmuch-show: identify which messages printed\r
29         matched the query string\r
30 X-BeenThere: notmuch@notmuchmail.org\r
31 X-Mailman-Version: 2.1.12\r
32 Precedence: list\r
33 List-Id: "Use and development of the notmuch mail system."\r
34         <notmuch.notmuchmail.org>\r
35 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
36         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
37 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
38 List-Post: <mailto:notmuch@notmuchmail.org>\r
39 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
40 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
42 X-List-Received-Date: Wed, 25 Nov 2009 04:55:22 -0000\r
43 \r
44 The show command outputs all messages in the threads that match the\r
45 search-terms.  This patch introduces a 'match:[01]' entry to the 'message{'\r
46 line output by the show command.  Value of 1 indicates that the message is\r
47 matching the search expression.\r
48 \r
49 Signed-off-by: Bart Trojanowski <bart@jukie.net>\r
50 ---\r
51  notmuch-show.c |    3 ++-\r
52  1 files changed, 2 insertions(+), 1 deletions(-)\r
53 \r
54 diff --git a/notmuch-show.c b/notmuch-show.c\r
55 index 8599c6c..e9f0883 100644\r
56 --- a/notmuch-show.c\r
57 +++ b/notmuch-show.c\r
58 @@ -155,9 +155,10 @@ show_message (void *ctx, notmuch_message_t *message, int indent)\r
59      const char *name, *value;\r
60      unsigned int i;\r
61  \r
62 -    printf ("\fmessage{ id:%s depth:%d filename:%s\n",\r
63 +    printf ("\fmessage{ id:%s depth:%d match:%d filename:%s\n",\r
64             notmuch_message_get_message_id (message),\r
65             indent,\r
66 +           notmuch_message_get_flag (message, NOTMUCH_MSG_FLAG_MATCHING_SEARCH),\r
67             notmuch_message_get_filename (message));\r
68  \r
69      printf ("\fheader{\n");\r
70 -- \r
71 1.6.4.4.2.gc2f148\r
72 \r