1 Return-Path: <Sebastian@SSpaeth.de>
\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 C104D431FBC
\r
6 for <notmuch@notmuchmail.org>; Tue, 16 Feb 2010 01:51:38 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.127 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.017, BAYES_05=-1.11] 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 HmKpAeF-Zclq for <notmuch@notmuchmail.org>;
\r
16 Tue, 16 Feb 2010 01:51:38 -0800 (PST)
\r
17 Received: from homiemail-a11.g.dreamhost.com (caiajhbdcaid.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id E224B431FAE
\r
20 for <notmuch@notmuchmail.org>; Tue, 16 Feb 2010 01:51:37 -0800 (PST)
\r
21 Received: from localhost.localdomain (unknown [195.190.178.84])
\r
22 by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id A8A96194058;
\r
23 Tue, 16 Feb 2010 01:51:29 -0800 (PST)
\r
24 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
25 To: notmuch@notmuchmail.org
\r
26 Date: Tue, 16 Feb 2010 10:51:20 +0100
\r
27 Message-Id: <1266313880-16085-1-git-send-email-Sebastian@SSpaeth.de>
\r
28 X-Mailer: git-send-email 1.6.3.3
\r
29 In-Reply-To: <id:873a12hl3f.fsf@aw.hh.sledj.net>
\r
30 References: <id:873a12hl3f.fsf@aw.hh.sledj.net>
\r
31 Subject: [notmuch] [PATCHv2] notmuch.el: Colour cited regions and signatures
\r
32 with message-cited-text-face.
\r
33 X-BeenThere: notmuch@notmuchmail.org
\r
34 X-Mailman-Version: 2.1.13
\r
36 List-Id: "Use and development of the notmuch mail system."
\r
37 <notmuch.notmuchmail.org>
\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
39 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
41 List-Post: <mailto:notmuch@notmuchmail.org>
\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
45 X-List-Received-Date: Tue, 16 Feb 2010 09:51:38 -0000
\r
47 From: David Edmondson <dme@dme.org>
\r
49 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
51 This is the fixed up version as elaborated by David. I find it pretty and pretty useful, so applying this makes lots of sense :).
\r
53 notmuch.el | 17 ++++++++++-------
\r
54 1 files changed, 10 insertions(+), 7 deletions(-)
\r
56 diff --git a/notmuch.el b/notmuch.el
\r
57 index 77f36d8..4cc97de 100644
\r
60 @@ -761,6 +761,7 @@ is what to put on the button."
\r
61 (let* ((cite-start (match-beginning 0))
\r
62 (cite-end (match-end 0))
\r
63 (cite-lines (count-lines cite-start cite-end)))
\r
64 + (overlay-put (make-overlay cite-start cite-end) 'face 'message-cited-text-face)
\r
65 (when (> cite-lines (1+ notmuch-show-citation-lines-prefix))
\r
66 (goto-char cite-start)
\r
67 (forward-line notmuch-show-citation-lines-prefix)
\r
68 @@ -777,13 +778,15 @@ is what to put on the button."
\r
69 (sig-end (match-end 0))
\r
70 (sig-lines (1- (count-lines sig-start end))))
\r
71 (if (<= sig-lines notmuch-show-signature-lines-max)
\r
72 - (notmuch-show-region-to-button
\r
77 - (format notmuch-show-signature-button-format sig-lines)
\r
80 + (overlay-put (make-overlay sig-start end) 'face 'message-cited-text-face)
\r
81 + (notmuch-show-region-to-button
\r
86 + (format notmuch-show-signature-button-format sig-lines)
\r
89 (defun notmuch-show-markup-part (beg end depth)
\r
90 (if (re-search-forward notmuch-show-part-begin-regexp nil t)
\r