[notmuch] [PATCHv2] notmuch.el: Colour cited regions and signatures with message...
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 16 Feb 2010 09:51:20 +0000 (10:51 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:12 +0000 (09:36 -0800)
d2/f0617d84af01e6fcbf5061772219ca61204f1a [new file with mode: 0644]

diff --git a/d2/f0617d84af01e6fcbf5061772219ca61204f1a b/d2/f0617d84af01e6fcbf5061772219ca61204f1a
new file mode 100644 (file)
index 0000000..84b82de
--- /dev/null
@@ -0,0 +1,93 @@
+Return-Path: <Sebastian@SSpaeth.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id C104D431FBC\r
+       for <notmuch@notmuchmail.org>; Tue, 16 Feb 2010 01:51:38 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.127\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.127 tagged_above=-999 required=5\r
+       tests=[AWL=-0.017, BAYES_05=-1.11] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id HmKpAeF-Zclq for <notmuch@notmuchmail.org>;\r
+       Tue, 16 Feb 2010 01:51:38 -0800 (PST)\r
+Received: from homiemail-a11.g.dreamhost.com (caiajhbdcaid.dreamhost.com\r
+       [208.97.132.83])\r
+       by olra.theworths.org (Postfix) with ESMTP id E224B431FAE\r
+       for <notmuch@notmuchmail.org>; Tue, 16 Feb 2010 01:51:37 -0800 (PST)\r
+Received: from localhost.localdomain (unknown [195.190.178.84])\r
+       by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id A8A96194058; \r
+       Tue, 16 Feb 2010 01:51:29 -0800 (PST)\r
+From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+To: notmuch@notmuchmail.org\r
+Date: Tue, 16 Feb 2010 10:51:20 +0100\r
+Message-Id: <1266313880-16085-1-git-send-email-Sebastian@SSpaeth.de>\r
+X-Mailer: git-send-email 1.6.3.3\r
+In-Reply-To: <id:873a12hl3f.fsf@aw.hh.sledj.net>\r
+References: <id:873a12hl3f.fsf@aw.hh.sledj.net>\r
+Subject: [notmuch] [PATCHv2] notmuch.el: Colour cited regions and signatures\r
+       with message-cited-text-face.\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 16 Feb 2010 09:51:38 -0000\r
+\r
+From: David Edmondson <dme@dme.org>\r
+\r
+Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+---\r
+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
+\r
+ notmuch.el |   17 ++++++++++-------\r
+ 1 files changed, 10 insertions(+), 7 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index 77f36d8..4cc97de 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -761,6 +761,7 @@ is what to put on the button."\r
+       (let* ((cite-start (match-beginning 0))\r
+            (cite-end  (match-end 0))\r
+            (cite-lines (count-lines cite-start cite-end)))\r
++      (overlay-put (make-overlay cite-start cite-end) 'face 'message-cited-text-face)\r
+       (when (> cite-lines (1+ notmuch-show-citation-lines-prefix))\r
+         (goto-char cite-start)\r
+         (forward-line notmuch-show-citation-lines-prefix)\r
+@@ -777,13 +778,15 @@ is what to put on the button."\r
+              (sig-end (match-end 0))\r
+              (sig-lines (1- (count-lines sig-start end))))\r
+         (if (<= sig-lines notmuch-show-signature-lines-max)\r
+-            (notmuch-show-region-to-button\r
+-             sig-start\r
+-             end\r
+-             "signature"\r
+-             indent\r
+-             (format notmuch-show-signature-button-format sig-lines)\r
+-             ))))))\r
++            (progn\r
++              (overlay-put (make-overlay sig-start end) 'face 'message-cited-text-face)\r
++              (notmuch-show-region-to-button\r
++               sig-start\r
++               end\r
++               "signature"\r
++               indent\r
++               (format notmuch-show-signature-button-format sig-lines)\r
++               )))))))\r
\r
+ (defun notmuch-show-markup-part (beg end depth)\r
+   (if (re-search-forward notmuch-show-part-begin-regexp nil t)\r
+-- \r
+1.6.3.3\r
+\r