Re: [PATCH] emacs: Don't attempt to colour tags in `notmuch-show-mode'.
[notmuch-archives.git] / 8b / b4c14b345a421555f5ae1be0e1137f2fa02a00
1 Return-Path: <dme@dme.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 00CE1431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 15 Feb 2010 01:42:11 -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: -1.052\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.052 tagged_above=-999 required=5\r
12         tests=[AWL=-0.312, BAYES_20=-0.74] 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 dgcOPoP3zpgo for <notmuch@notmuchmail.org>;\r
16         Mon, 15 Feb 2010 01:42:10 -0800 (PST)\r
17 Received: from mail-ew0-f220.google.com (mail-ew0-f220.google.com\r
18         [209.85.219.220])\r
19         by olra.theworths.org (Postfix) with ESMTP id 2F671431FAE\r
20         for <notmuch@notmuchmail.org>; Mon, 15 Feb 2010 01:42:10 -0800 (PST)\r
21 Received: by ewy20 with SMTP id 20so5097377ewy.0\r
22         for <notmuch@notmuchmail.org>; Mon, 15 Feb 2010 01:42:09 -0800 (PST)\r
23 Received: by 10.213.97.78 with SMTP id k14mr2455844ebn.45.1266226929172;\r
24         Mon, 15 Feb 2010 01:42:09 -0800 (PST)\r
25 Received: from aw.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
26         [83.217.165.81])\r
27         by mx.google.com with ESMTPS id 10sm14609692eyd.13.2010.02.15.01.42.08\r
28         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
29         Mon, 15 Feb 2010 01:42:08 -0800 (PST)\r
30 Received: by aw.hh.sledj.net (Postfix, from userid 1000)\r
31         id 7040170076; Mon, 15 Feb 2010 09:41:51 +0000 (GMT)\r
32 From: David Edmondson <dme@dme.org>\r
33 To: notmuch@notmuchmail.org\r
34 Date: Mon, 15 Feb 2010 09:41:49 +0000\r
35 Message-Id: <1266226909-19360-1-git-send-email-dme@dme.org>\r
36 X-Mailer: git-send-email 1.6.6.1\r
37 Subject: [notmuch] [PATCH] notmuch.el: Colour cited regions and signatures\r
38         with message-cited-text-face.\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Mon, 15 Feb 2010 09:42:11 -0000\r
52 \r
53 ---\r
54  notmuch.el |    2 ++\r
55  1 files changed, 2 insertions(+), 0 deletions(-)\r
56 \r
57 diff --git a/notmuch.el b/notmuch.el\r
58 index 8090b2f..3e8e50d 100644\r
59 --- a/notmuch.el\r
60 +++ b/notmuch.el\r
61 @@ -703,6 +703,7 @@ is what to put on the button."\r
62        (let* ((cite-start (match-beginning 0))\r
63              (cite-end  (match-end 0))\r
64              (cite-lines (count-lines cite-start cite-end)))\r
65 +       (overlay-put (make-overlay cite-start cite-end) 'face 'message-cited-text-face)\r
66         (when (> cite-lines (1+ notmuch-show-citation-lines-prefix))\r
67           (goto-char cite-start)\r
68           (forward-line notmuch-show-citation-lines-prefix)\r
69 @@ -718,6 +719,7 @@ is what to put on the button."\r
70         (let* ((sig-start (match-beginning 0))\r
71                (sig-end (match-end 0))\r
72                (sig-lines (1- (count-lines sig-start end))))\r
73 +         (overlay-put (make-overlay sig-start end) 'face 'message-cited-text-face)\r
74           (if (<= sig-lines notmuch-show-signature-lines-max)\r
75               (notmuch-show-region-to-button\r
76                sig-start\r
77 -- \r
78 1.6.6.1\r
79 \r