From f5f0963263b854cd8ca5bfdc09cd624bcc7466e4 Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Sat, 1 Jun 2013 22:49:12 +0100 Subject: [PATCH] [PATCH] contrib: pick: bugfix: use notmuch-show-mark-read-tags instead of unread --- 43/15e455d4794450679fe330fb93b00c89661a4f | 95 +++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 43/15e455d4794450679fe330fb93b00c89661a4f diff --git a/43/15e455d4794450679fe330fb93b00c89661a4f b/43/15e455d4794450679fe330fb93b00c89661a4f new file mode 100644 index 000000000..d38996b34 --- /dev/null +++ b/43/15e455d4794450679fe330fb93b00c89661a4f @@ -0,0 +1,95 @@ +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 0BD67431FDE + for ; Sat, 1 Jun 2013 14:49:33 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.201 +X-Spam-Level: +X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=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 Z+NqDFQnJzBn for ; + Sat, 1 Jun 2013 14:49:25 -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 + D19D9429E5C for ; Sat, 1 Jun 2013 14:49:24 -0700 + (PDT) +Received: by mail-wg0-f51.google.com with SMTP id b13so2135672wgh.6 + for ; Sat, 01 Jun 2013 14:49:22 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer; + bh=G+FQA1C6nOmyPryLEWNUsmYqJBBnslzXyBIgQaxMZNo=; + b=oPNJThTpQCIchzvXE12np/cJJxtfwKqNKmJAQpf5r2MKUj8XG9ZmnaV0DhX3oxToxS + w66WUyG3jhpY3KCJO+rEijU52KrI8XNad9rJPpiXgEiBCTGSigGnoQInu1c0HaPm4ENC + EJxGFmXsLP4gi81pvrQUuDnM30SOIg6HticjXxLYaNrNnAKzdhtFe7P3AmmjrD3J+9/G + JeTN+AMaT6ona3RgEYIMQcyMFvaOI1l23g7s8+2dWdBYy10hfZSR85TgQDD6eBWD++v6 + w+mQ35j0mrQr6eU+WhQdiKWte/1pbGk3w4KEz/Kd2X5MPDkz2+WAnKT+iO+9R8pdhFPi + pqSA== +X-Received: by 10.194.122.225 with SMTP id lv1mr14156756wjb.21.1370123362273; + Sat, 01 Jun 2013 14:49:22 -0700 (PDT) +Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) + by mx.google.com with ESMTPSA id h8sm12893404wiz.9.2013.06.01.14.49.21 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sat, 01 Jun 2013 14:49:21 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH] contrib: pick: bugfix: use notmuch-show-mark-read-tags + instead of unread +Date: Sat, 1 Jun 2013 22:49:12 +0100 +Message-Id: <1370123352-13806-1-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +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, 01 Jun 2013 21:49:33 -0000 + +Previously pick removed the unread tag from its tag display: since the +tag change is now customisable use the customised variable. + +This only affected the tags displayed, not the tags in the database as +notmuch-show (in the view pane) did the actual tag changes. +--- + +Thanks to Tomi for pointing this out in id:m2r4mecofa.fsf@guru.guru-group.fi + +Best wishes + +Mark + + contrib/notmuch-pick/notmuch-pick.el | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el +index 128fabf..9079acf 100644 +--- a/contrib/notmuch-pick/notmuch-pick.el ++++ b/contrib/notmuch-pick/notmuch-pick.el +@@ -384,7 +384,8 @@ Does NOT change the database." + (with-current-buffer buffer + (setq notmuch-pick-message-window window) + (add-hook 'kill-buffer-hook 'notmuch-pick-message-window-kill-hook))) +- (notmuch-pick-tag-update-display (list "-unread")) ++ (when notmuch-show-mark-read-tags ++ (notmuch-pick-tag-update-display notmuch-show-mark-read-tags)) + (setq notmuch-pick-message-buffer buffer)))) + + (defun notmuch-pick-show-message-out () +-- +1.7.9.1 + -- 2.26.2