From 64a82914041f9004cd3d36720cac26b74b72ba1c Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sat, 23 Mar 2013 12:29:52 +0100 Subject: [PATCH] [PATCH v3 0/2] Customize how each tag is displayed --- c2/d951954c38ba3069ce63ea3308049fc6e8e3bb | 96 +++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 c2/d951954c38ba3069ce63ea3308049fc6e8e3bb diff --git a/c2/d951954c38ba3069ce63ea3308049fc6e8e3bb b/c2/d951954c38ba3069ce63ea3308049fc6e8e3bb new file mode 100644 index 000000000..d4803bc6c --- /dev/null +++ b/c2/d951954c38ba3069ce63ea3308049fc6e8e3bb @@ -0,0 +1,96 @@ +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 2D313431FC0 + for ; Sat, 23 Mar 2013 04:30:11 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 F+ONPOZhg7WC for ; + Sat, 23 Mar 2013 04:30:09 -0700 (PDT) +Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com + [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id D6E67431FAE + for ; Sat, 23 Mar 2013 04:30:08 -0700 (PDT) +Received: by mail-wi0-f176.google.com with SMTP id hm14so8695345wib.3 + for ; Sat, 23 Mar 2013 04:30:07 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=x-received:from:to:subject:date:message-id:x-mailer; + bh=bXfCS+yUceTaEVcyPcuanRV/+Xau3aU1XtntsRAiEFg=; + b=wiJS1VJwMwS9+0A1Nmd07ARXGnUsuCofQf94jgi8za0xoF4OM1zHDYXIkkjv3fpWkP + /qEEhji8peRI13I35RvFQZ3Xjg1N1yZPcmwYxkbAwqZmE/MJAfl1eBHFTt78roP3l8L9 + z2K0Fy6cVmlOezaXs5+f3ZsrT/Aw5Zy3/ZgYX3xUdoe3uSSPjMJ/SQiE7bcYqOw1eox8 + LrRuiJG6BZONERPvI5nIDF+vr/UAZHUEQCjr2aGYhF8L7N2ACwHJvypCr3B4N6+fIoRP + zqK/gTW/AJ8hrmo8yXtjSb945N+KytKdWs2aZkphzCBvL9rgMurtNIqYSlK7CuaZJUzN + 2uyw== +X-Received: by 10.194.21.233 with SMTP id y9mr8252669wje.47.1364038206367; + Sat, 23 Mar 2013 04:30:06 -0700 (PDT) +Received: from localhost.localdomain (110.195.67.86.rev.sfr.net. + [86.67.195.110]) + by mx.google.com with ESMTPS id dp5sm16185652wib.1.2013.03.23.04.30.04 + (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); + Sat, 23 Mar 2013 04:30:05 -0700 (PDT) +From: Damien Cassou +To: notmuch@notmuchmail.org +Subject: [PATCH v3 0/2] Customize how each tag is displayed +Date: Sat, 23 Mar 2013 12:29:52 +0100 +Message-Id: <1364038194-19856-1-git-send-email-damien.cassou@gmail.com> +X-Mailer: git-send-email 1.7.10.4 +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: Sat, 23 Mar 2013 11:30:11 -0000 + +[PATCH 1/2] emacs: Add notmuch-combine-face-text-property-string +[PATCH 2/2] emacs: possibility to customize the rendering of tags + +These patches are the first of an upcoming series whose goal is to +integrate notmuch-labeler into notmuch. See the following for more +details: https://github.com/DamienCassou/notmuch-labeler + +- These patches depend on +id:1360013822-6562-1-git-send-email-amdragon@mit.edu +"notmuch-combine-face-text-property improvements" by Austin Clements. + +- This series does not have any unit-test to make it smaller and more + amenable to comments. I will send a patch when requested. + +- Patch 1/2 just add a convenient function to call + `notmuch-combine-face-text-property' on strings. + +- Patch 2/2 introduces `notmuch-tagger-formats', a list of pairs (KEY + FORMAT) to format a tag matching KEY using a special format. + Currently, an example of such a list is: + + '(("unread" (propertize tag 'face '(:foreground "red"))) + ("flagged" (notmuch-tag-format-image-data tag (notmuch-tag-star-icon)))) + + to set the unread tag to be red and the flagged tag to have a star + picture attached. This variable can be customized, thanks to the + work of Austin Clements. + +- Patch 2/2 also provides 3 pictures, all in SVG and all directly + embedded in the elisp source code as proposed by Austin Clements and + Tomi Ollila. + + +Compared to v2, I took care of Austin Clements' comments by +simplifying embedded SVG pictures and by reorganizing some functions +and their comments. -- 2.26.2