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 C6A32431FC7 for ; Mon, 16 Jan 2012 08:56:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 UMOGidh-bP3j for ; Mon, 16 Jan 2012 08:56:06 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 26F2E431FD4 for ; Mon, 16 Jan 2012 08:56:05 -0800 (PST) Received: by mail-we0-f181.google.com with SMTP id b13so8351wer.26 for ; Mon, 16 Jan 2012 08:56:04 -0800 (PST) Received: by 10.216.136.155 with SMTP id w27mr6764095wei.8.1326732893566; Mon, 16 Jan 2012 08:54:53 -0800 (PST) Received: from localhost ([109.131.75.86]) by mx.google.com with ESMTPS id m42sm4867084wbn.0.2012.01.16.08.54.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 08:54:53 -0800 (PST) From: Pieter Praet To: David Edmondson , Jameson Graef Rollins Subject: Re: [PATCH 3/3] emacs: colorize buttonized 'id:' links depending on the target message's state In-Reply-To: References: <874nw0ltwz.fsf@praet.org> <1326389025-18877-1-git-send-email-pieter@praet.org> <1326389025-18877-3-git-send-email-pieter@praet.org> User-Agent: Notmuch/0.11+78~g6c58370 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Mon, 16 Jan 2012 17:53:04 +0100 Message-ID: <87ipkba8sv.fsf@praet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Notmuch Mail 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: Mon, 16 Jan 2012 16:56:12 -0000 On Mon, 16 Jan 2012 11:45:13 +0000, David Edmondson wrote: > On Thu, 12 Jan 2012 18:23:45 +0100, Pieter Praet wrote: > > + 'face (cond > > + ((notmuch-show-found-target-p message-id t) > > + 'notmuch-show-buttonized-link-present-and-unread) > > + ((notmuch-show-found-target-p message-id) > > + 'notmuch-show-buttonized-link-present) > > + (t 'notmuch-show-buttonized-link-missing))))))) > > I like it, but worry a bit more about the performance [...] Rightly so :) > [...] (we're up to two > 'notmuch' invocations for a missing or read message). I'll at least add an option to toggle it. Patch follows. Peace -- Pieter