Re: notmuch and "mute" -- useful to anyone?
[notmuch-archives.git] / 79 / f2145ede18c0d004cbbfe39a2ed2f8cc7b3378
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 63BE9431FD7\r
6         for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:53:40 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id an4HYDl3O31O for <notmuch@notmuchmail.org>;\r
18         Sat, 14 Dec 2013 15:53:40 -0800 (PST)\r
19 Received: from mail-we0-f175.google.com (mail-we0-f175.google.com\r
20         [74.125.82.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id D46F4431FDA\r
23         for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:53:36 -0800 (PST)\r
24 Received: by mail-we0-f175.google.com with SMTP id t60so3239115wes.6\r
25         for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:53:35 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
28         bh=EECcfA6ycodjzIP1/WuBGdV7BtEFcWBTMCppe68lWyU=;\r
29         b=gVLs9f6sRsDdVhQhl9GOxYSGy+2e9c+vT/Z9f5iScwdNWS3NRdxA8sQUAqIHuk9tDz\r
30         cBxVkptyL63S987z1H+ln6XFT42Q2YhAG0TioHUXFCK/40L8SQiQJOGNouS5xreIQKDb\r
31         FQKdo6tETqM/a2H0c01tyJq8Cstg1wjo+yzJIAgj/VBLfLIh0jLijKVpW6L7pIVLxHst\r
32         i3DAyCAneXgNffdAeNJzt46vhcAMMpR7lAxN8C3qWZKbwGviL1fNJVuAxXTsS8c0DfNU\r
33         l26oWkrESBkQc7gnmE/rKy90ObInYdkgsYz/dO4Adr5cDXcET83U2jWU3QE17XXFQE8R\r
34         xekQ==\r
35 X-Received: by 10.180.188.141 with SMTP id ga13mr5574419wic.55.1387065215766; \r
36         Sat, 14 Dec 2013 15:53:35 -0800 (PST)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id cx3sm28171967wib.0.2013.12.14.15.53.34\r
39         for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Sat, 14 Dec 2013 15:53:35 -0800 (PST)\r
42 From: Mark Walters <markwalters1009@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH v2 2/5] emacs: tree: make the tree code force the mark read\r
45         update\r
46 Date: Sat, 14 Dec 2013 23:53:14 +0000\r
47 Message-Id: <1387065197-15776-3-git-send-email-markwalters1009@gmail.com>\r
48 X-Mailer: git-send-email 1.7.9.1\r
49 In-Reply-To: <1387065197-15776-1-git-send-email-markwalters1009@gmail.com>\r
50 References: <1387065197-15776-1-git-send-email-markwalters1009@gmail.com>\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Sat, 14 Dec 2013 23:53:40 -0000\r
64 \r
65 Previously the tree code relied on the show buffer to do the\r
66 unread/read update. Once this is done via the post-command-hook this\r
67 won't be automatic so explicitly force the update.\r
68 ---\r
69  emacs/notmuch-tree.el |    3 +++\r
70  1 files changed, 3 insertions(+), 0 deletions(-)\r
71 \r
72 diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el\r
73 index 8d59e65..6ec9561 100644\r
74 --- a/emacs/notmuch-tree.el\r
75 +++ b/emacs/notmuch-tree.el\r
76 @@ -438,6 +438,9 @@ Does NOT change the database."\r
77           (setq notmuch-tree-message-window window)\r
78           (add-hook 'kill-buffer-hook 'notmuch-tree-message-window-kill-hook)))\r
79        (when notmuch-show-mark-read-tags\r
80 +       (when (window-live-p notmuch-tree-message-window)\r
81 +         (with-selected-window notmuch-tree-message-window\r
82 +           (notmuch-show-mark-read)))\r
83         (notmuch-tree-tag-update-display notmuch-show-mark-read-tags))\r
84        (setq notmuch-tree-message-buffer buffer))))\r
85  \r
86 -- \r
87 1.7.9.1\r
88 \r