Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 88D544196F4 for ; Tue, 6 Apr 2010 00:39:27 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AVQeDWjeFC3q for ; Tue, 6 Apr 2010 00:39:26 -0700 (PDT) Received: from homiemail-a18.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by olra.theworths.org (Postfix) with ESMTP id D39A04196F5 for ; Tue, 6 Apr 2010 00:39:26 -0700 (PDT) Received: from localhost.localdomain (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) by homiemail-a18.g.dreamhost.com (Postfix) with ESMTPA id 955C825006B; Tue, 6 Apr 2010 00:39:25 -0700 (PDT) From: Sebastian Spaeth To: notmuch@notmuchmail.org Subject: [PATCH 2/2] notmuch.el: Colour cited regions and signatures with message-cited-text-face Date: Tue, 6 Apr 2010 09:39:20 +0200 Message-Id: <1270539560-20759-2-git-send-email-Sebastian@SSpaeth.de> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1270539560-20759-1-git-send-email-Sebastian@SSpaeth.de> References: <874ojphvyj.fsf@SSpaeth.de> <1270539560-20759-1-git-send-email-Sebastian@SSpaeth.de> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 07:39:27 -0000 From: David Edmondson Patch from mail id:1266226909-19360-1-git-send-email-dme@dme.org with a fix in id:873a12hl3f.fsf@aw.hh.sledj.net Signed-off-by: Sebastian Spaeth --- emacs/notmuch-show.el | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index f172f6b..353b57d 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -708,14 +708,16 @@ is what to put on the button." (let* ((sig-start (match-beginning 0)) (sig-end (match-end 0)) (sig-lines (1- (count-lines sig-start end)))) - (if (<= sig-lines notmuch-show-signature-lines-max) - (notmuch-show-region-to-button - sig-start - end - "signature" - indent - (format notmuch-show-signature-button-format sig-lines) - )))))) + (if (<= sig-lines notmuch-show-signature-lines-max) + (progn + (overlay-put (make-overlay sig-start end) 'face 'message-cited-text-face) + (notmuch-show-region-to-button + sig-start + end + "signature" + indent + (format notmuch-show-signature-button-format sig-lines) + ))))))) (defun notmuch-show-markup-part (beg end depth) (if (re-search-forward notmuch-show-part-begin-regexp nil t) -- 1.6.3.3