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 7EF76431FD0 for ; Mon, 16 Jan 2012 08:56:23 -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=unavailable 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 6msHKyOF-ni1 for ; Mon, 16 Jan 2012 08:56:23 -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 F1D8B431FC7 for ; Mon, 16 Jan 2012 08:56:18 -0800 (PST) Received: by wgbdr13 with SMTP id dr13so407540wgb.2 for ; Mon, 16 Jan 2012 08:56:17 -0800 (PST) Received: by 10.180.77.35 with SMTP id p3mr21470272wiw.11.1326732977731; Mon, 16 Jan 2012 08:56:17 -0800 (PST) Received: from localhost ([109.131.75.86]) by mx.google.com with ESMTPS id q5sm22975285wbo.8.2012.01.16.08.56.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 08:56:17 -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:54:33 +0100 Message-ID: <87hazva8qe.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:23 -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