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 891A0429E25 for ; Thu, 15 Dec 2011 16:57:35 -0800 (PST) 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 voIVOko4G9aN for ; Thu, 15 Dec 2011 16:57:34 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9D1F4431FD0 for ; Thu, 15 Dec 2011 16:57:34 -0800 (PST) Received: by wgbds13 with SMTP id ds13so4057055wgb.2 for ; Thu, 15 Dec 2011 16:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=BGsq4/M9dwcIoy4N1dVqCScLG7h0M4jKqPsf439X26U=; b=svwT13WvkROFU1F7thF/10psj752TUENBgpBRJKxu5S/sU3t0c0BtjDQ7yjj+Pg9F1 eLh2eKlbNO2goATP4N9PE8t5P2dqSn818ytWmfJ9BgOC/+ZXAo7QYEFPXKn4ucMcIFu+ rfezbN2skJJDUe9IacysP3MITyQ3OBJlIjZpM= Received: by 10.180.4.42 with SMTP id h10mr9270515wih.22.1323997053284; Thu, 15 Dec 2011 16:57:33 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id m5sm10873754wie.2.2011.12.15.16.57.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Dec 2011 16:57:32 -0800 (PST) From: Dmitry Kurochkin To: Thomas Jost , notmuch@notmuchmail.org Subject: Re: [PATCH v3 2/4] emacs: Add a face for crypto parts headers In-Reply-To: <1323797532-597-3-git-send-email-schnouki@schnouki.net> References: <87d3cx2t38.fsf@rocinante.cs.unb.ca> <1323797532-597-1-git-send-email-schnouki@schnouki.net> <1323797532-597-3-git-send-email-schnouki@schnouki.net> User-Agent: Notmuch/0.10.2+96~g74e5ae5 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Fri, 16 Dec 2011 04:56:53 +0400 Message-ID: <8739cltju2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Fri, 16 Dec 2011 00:57:35 -0000 On Tue, 13 Dec 2011 18:32:10 +0100, Thomas Jost wrote: > Commit cb841878 introduced new parts handlers for crypto parts, but also > hardcoded values for their headers face. This replaces these hardcoded values > with a customizable face. > --- Looks good to me. Regards, Dmitry > emacs/notmuch-crypto.el | 5 +++++ > emacs/notmuch-show.el | 4 ++-- > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el > index 44fccae..67c26af 100644 > --- a/emacs/notmuch-crypto.el > +++ b/emacs/notmuch-crypto.el > @@ -37,6 +37,11 @@ mode." > :group 'notmuch > :type 'boolean) > > +(defface notmuch-crypto-part-header > + '((t (:foreground "blue"))) > + "Face used for crypto parts headers." > + :group 'notmuch) > + > (defface notmuch-crypto-signature-good > '((t (:background "green" :foreground "black"))) > "Face used for good signatures." > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index 33ee3d8..ec9c52c 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -457,7 +457,7 @@ current buffer, if possible." > > (defun notmuch-show-insert-part-multipart/signed (msg part content-type nth depth declared-type) > (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil))) > - (button-put button 'face '(:foreground "blue")) > + (button-put button 'face 'notmuch-crypto-part-header) > ;; add signature status button if sigstatus provided > (if (plist-member part :sigstatus) > (let* ((from (notmuch-show-get-header :From msg)) > @@ -479,7 +479,7 @@ current buffer, if possible." > > (defun notmuch-show-insert-part-multipart/encrypted (msg part content-type nth depth declared-type) > (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil))) > - (button-put button 'face '(:foreground "blue")) > + (button-put button 'face 'notmuch-crypto-part-header) > ;; add encryption status button if encstatus specified > (if (plist-member part :encstatus) > (let ((encstatus (car (plist-get part :encstatus)))) > -- > 1.7.8 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch