[PATCH v2 2/5] emacs: tree: make the tree code force the mark read update
authorMark Walters <markwalters1009@gmail.com>
Sat, 14 Dec 2013 23:53:14 +0000 (23:53 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:58:44 +0000 (09:58 -0800)
79/f2145ede18c0d004cbbfe39a2ed2f8cc7b3378 [new file with mode: 0644]

diff --git a/79/f2145ede18c0d004cbbfe39a2ed2f8cc7b3378 b/79/f2145ede18c0d004cbbfe39a2ed2f8cc7b3378
new file mode 100644 (file)
index 0000000..75b66dc
--- /dev/null
@@ -0,0 +1,88 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 63BE9431FD7\r
+       for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:53:40 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id an4HYDl3O31O for <notmuch@notmuchmail.org>;\r
+       Sat, 14 Dec 2013 15:53:40 -0800 (PST)\r
+Received: from mail-we0-f175.google.com (mail-we0-f175.google.com\r
+       [74.125.82.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id D46F4431FDA\r
+       for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:53:36 -0800 (PST)\r
+Received: by mail-we0-f175.google.com with SMTP id t60so3239115wes.6\r
+       for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:53:35 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+       bh=EECcfA6ycodjzIP1/WuBGdV7BtEFcWBTMCppe68lWyU=;\r
+       b=gVLs9f6sRsDdVhQhl9GOxYSGy+2e9c+vT/Z9f5iScwdNWS3NRdxA8sQUAqIHuk9tDz\r
+       cBxVkptyL63S987z1H+ln6XFT42Q2YhAG0TioHUXFCK/40L8SQiQJOGNouS5xreIQKDb\r
+       FQKdo6tETqM/a2H0c01tyJq8Cstg1wjo+yzJIAgj/VBLfLIh0jLijKVpW6L7pIVLxHst\r
+       i3DAyCAneXgNffdAeNJzt46vhcAMMpR7lAxN8C3qWZKbwGviL1fNJVuAxXTsS8c0DfNU\r
+       l26oWkrESBkQc7gnmE/rKy90ObInYdkgsYz/dO4Adr5cDXcET83U2jWU3QE17XXFQE8R\r
+       xekQ==\r
+X-Received: by 10.180.188.141 with SMTP id ga13mr5574419wic.55.1387065215766; \r
+       Sat, 14 Dec 2013 15:53:35 -0800 (PST)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPSA id cx3sm28171967wib.0.2013.12.14.15.53.34\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 14 Dec 2013 15:53:35 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 2/5] emacs: tree: make the tree code force the mark read\r
+       update\r
+Date: Sat, 14 Dec 2013 23:53:14 +0000\r
+Message-Id: <1387065197-15776-3-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1387065197-15776-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1387065197-15776-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 14 Dec 2013 23:53:40 -0000\r
+\r
+Previously the tree code relied on the show buffer to do the\r
+unread/read update. Once this is done via the post-command-hook this\r
+won't be automatic so explicitly force the update.\r
+---\r
+ emacs/notmuch-tree.el |    3 +++\r
+ 1 files changed, 3 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el\r
+index 8d59e65..6ec9561 100644\r
+--- a/emacs/notmuch-tree.el\r
++++ b/emacs/notmuch-tree.el\r
+@@ -438,6 +438,9 @@ Does NOT change the database."\r
+         (setq notmuch-tree-message-window window)\r
+         (add-hook 'kill-buffer-hook 'notmuch-tree-message-window-kill-hook)))\r
+       (when notmuch-show-mark-read-tags\r
++      (when (window-live-p notmuch-tree-message-window)\r
++        (with-selected-window notmuch-tree-message-window\r
++          (notmuch-show-mark-read)))\r
+       (notmuch-tree-tag-update-display notmuch-show-mark-read-tags))\r
+       (setq notmuch-tree-message-buffer buffer))))\r
\r
+-- \r
+1.7.9.1\r
+\r