From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AE155431FDA for ; Tue, 6 May 2014 03:03:34 -0700 (PDT) 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 LyVcYRgPqM3z for ; Tue, 6 May 2014 03:03:34 -0700 (PDT) Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 57E4F431FD6 for ; Tue, 6 May 2014 03:03:34 -0700 (PDT) Received: by mail-wg0-f51.google.com with SMTP id x13so2624657wgg.22 for ; Tue, 06 May 2014 03:03:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=FqG8x3nHIyaMdg+lpzf5wRSNCbbGGigGGA1WkF6bBLY=; b=O0sVca54cg7Ybt8fsV0SyMI6dkyZ7yclj2F3j0g6gAFYbYnNPSj/Uch1MVWmMer3Bs va0q9g55PXlagLhO/EuqBgtDKiA8bM6qovthdZGvRxUSlVlmMyok79qf848heM5x4BwC g6SWarmP+CkJsLs3u6ZsOm49zNPByIn+RIhJtp8DseaPWAuT7D6uMtf0nXodLqO4gVvP zar0MldRKOhrJe1v0x7WaAF0RT/1nEMLWNSjmAzGX7AeGO82wFX32k6e3G3xi8wysIUV GJPA5ZWmQka5FPjDymtf2weZ8QWiJ+uPDuVYoazi2wIb8prlrIvdcOg3soGJ/3orf27N D6hw== X-Gm-Message-State: ALoCoQnIflkQEc2qeCpTXlTsUCcTk8Gv+U/FN0rm8BSniDyqZoDPaSexd45ZH2qtc/3V41ELNAf6 X-Received: by 10.180.14.199 with SMTP id r7mr20292195wic.0.1399370613151; Tue, 06 May 2014 03:03:33 -0700 (PDT) Received: from hotblack-desiato.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by mx.google.com with ESMTPSA id g13sm21285961wjn.15.2014.05.06.03.03.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 May 2014 03:03:32 -0700 (PDT) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 9D6D61036D6; Tue, 6 May 2014 11:03:30 +0100 (BST) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH] emacs: Correct the documentation for `notmuch-search-line-faces'. Date: Tue, 6 May 2014 11:03:30 +0100 Message-Id: <1399370610-7146-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 2.0.0.rc0 In-Reply-To: References: 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: Tue, 06 May 2014 10:03:34 -0000 The implementation and documentation for `notmuch-search-line-faces' disagreed in how elements in the list were merged. Correct the documentation to match the implementation (that is, the earlier elements in the list have precedence over later elements). --- emacs/notmuch.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 6c0bc1b..8aa0104 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -647,12 +647,12 @@ of the result." Here is an example of how to color search results based on tags. (the following text would be placed in your ~/.emacs file): - (setq notmuch-search-line-faces '((\"deleted\" . (:foreground \"red\" - :background \"blue\")) - (\"unread\" . (:foreground \"green\")))) + (setq notmuch-search-line-faces '((\"unread\" . (:foreground \"green\")) + (\"deleted\" . (:foreground \"red\" + :background \"blue\")))) -The attributes defined for matching tags are merged, with later -attributes overriding earlier. A message having both \"deleted\" +The attributes defined for matching tags are merged, with earlier +attributes overriding later. A message having both \"deleted\" and \"unread\" tags with the above settings would have a green foreground and blue background." :type '(alist :key-type (string) :value-type (custom-face-edit)) -- 2.0.0.rc0