--- /dev/null
+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 5F38C431E64\r
+ for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:45:04 -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=disabled\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 KEo0WUdC4NzS for <notmuch@notmuchmail.org>;\r
+ Sat, 14 Dec 2013 15:45:03 -0800 (PST)\r
+Received: from mail-we0-f180.google.com (mail-we0-f180.google.com\r
+ [74.125.82.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 0C985431FD9\r
+ for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:53 -0800 (PST)\r
+Received: by mail-we0-f180.google.com with SMTP id t61so3290060wes.11\r
+ for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:53 -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=PWLfa9Yd/hPG1bzgp+6WHNccLxxat+XXKuXvxdqTj1hR1EzCvtaqoiR3f5nAKqxZes\r
+ fNH+NeZKbqPvfo6mbFo8hiNlZUHIMIZxJKjUjo/k0pQS5xXozA91ElBjFL/HAoWVWmK5\r
+ McbNtM3TUfG03BZMBuGm9nZHr9E4P6HwaM/CjTCoZRm2HDVzfarxYuLBWAXOlwDFIT8c\r
+ 0hsoJJ29EAhg7VvI6AyfmkyrqWBmzqlNhndb0jv694vU/qddEejx+TY5QNYmvfbIYR1H\r
+ zBuI4b1TwjwIeQK/8BhvUUJxETwcNrNBImAf0LscBskEMoajw+93yUlKA3D/RvYVdAn6\r
+ 2bzw==\r
+X-Received: by 10.194.82.68 with SMTP id g4mr317035wjy.85.1387064692983;\r
+ Sat, 14 Dec 2013 15:44:52 -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 hb7sm11100541wib.6.2013.12.14.15.44.51\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Sat, 14 Dec 2013 15:44:52 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 4/5] emacs: tree: make the tree code force the mark read\r
+ update\r
+Date: Sat, 14 Dec 2013 23:44:35 +0000\r
+Message-Id: <1387064676-15508-5-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1387064676-15508-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1387064676-15508-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:45:05 -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