From 774376ed7a26ae170c46d74addf1852914827ffd Mon Sep 17 00:00:00 2001 From: Gregor Zattler Date: Wed, 4 Sep 2013 19:06:55 +0200 Subject: [PATCH] [PATCH] emacs: distinguish tag `flagged' on terminal --- 55/08d69b9ee607cce4520e06532aca26683b0ea7 | 88 +++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 55/08d69b9ee607cce4520e06532aca26683b0ea7 diff --git a/55/08d69b9ee607cce4520e06532aca26683b0ea7 b/55/08d69b9ee607cce4520e06532aca26683b0ea7 new file mode 100644 index 000000000..fc2e7828e --- /dev/null +++ b/55/08d69b9ee607cce4520e06532aca26683b0ea7 @@ -0,0 +1,88 @@ +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 E0235429E45 + for ; Wed, 4 Sep 2013 10:07:29 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.001 +X-Spam-Level: +X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 + tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] + autolearn=disabled +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 hf1PNPU+cDYU for ; + Wed, 4 Sep 2013 10:07:24 -0700 (PDT) +Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3906E429E44 + for ; Wed, 4 Sep 2013 10:07:24 -0700 (PDT) +Received: from boo.workgroup ([87.187.157.41]) by mail.gmx.com (mrgmx002) + with ESMTPSA (Nemesis) id 0LvENG-1VykUu2lHO-010K6m for + ; Wed, 04 Sep 2013 19:07:18 +0200 +Received: from grfz by boo.workgroup with local (Exim 4.80) + (envelope-from ) + id 1VHGXq-0006CN-3V; Wed, 04 Sep 2013 19:07:06 +0200 +Date: Wed, 4 Sep 2013 19:06:55 +0200 +From: Gregor Zattler +To: notmuch@notmuchmail.org +Subject: [PATCH] emacs: distinguish tag `flagged' on terminal +Message-ID: <20130904170655.GA13154@boo.workgroup> +Mail-Followup-To: notmuch@notmuchmail.org +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +User-Agent: Mutt/1.5.21 (2010-09-15) +Sender: error4me@gmx.de +X-Provags-ID: V03:K0:rwGdMZ2sLl35hUqOr4yi57wkMXsHtinwmmWo76239MYdkIJz3MR + sTi0n7Nb74Jd0THVvn2xkThG5T5Q3BSU2rMRqY80E1gh7aiueQ9GxpQX0Cv/feaTZV2wJ0a + CAxojO9zm4/pTWlAUZ1dIDleFYodNTtLjJC//hhbQmcWN03eAkZtTgYX3CDZEVGJuCBYm62 + DBBtaX2lw0hXgvqVXHGeQ== +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: Wed, 04 Sep 2013 17:07:30 -0000 + +Change foreground color to `blue' like lines representing threads +with flagged messages in notmuch-search. Before tag `flagged' was +shown in notmuch-show buffers as image star on graphical frames while +there was no visible distinction to other flags on terminal frames. +--- +With this patch applied tag `unread' is now shown with foreground +`red' while tag `flagged' is shown in `blue'. IMHO this should be +the other way around as flagged messages should be flagged more +prominently than mere unread ones. + +Sorry, did not find git-send-mail on my debian jessie box!? + + emacs/notmuch-tag.el | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el +index 064cfa8..5c50ade 100644 +--- a/emacs/notmuch-tag.el ++++ b/emacs/notmuch-tag.el +@@ -30,7 +30,8 @@ + + (defcustom notmuch-tag-formats + '(("unread" (propertize tag 'face '(:foreground "red"))) +- ("flagged" (notmuch-tag-format-image-data tag (notmuch-tag-star-icon)))) ++ ("flagged" (propertize tag 'face '(:foreground "blue")) ++ (notmuch-tag-format-image-data tag (notmuch-tag-star-icon)))) + "Custom formats for individual tags. + + This gives a list that maps from tag names to lists of formatting +-- +1.8.4.rc3 -- 2.26.2