--- /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 6C61F431E62\r
+ for <notmuch@notmuchmail.org>; Sun, 1 Dec 2013 02:02:46 -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 ck0ov9o2K5OL for <notmuch@notmuchmail.org>;\r
+ Sun, 1 Dec 2013 02:02:39 -0800 (PST)\r
+Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com\r
+ [74.125.82.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ B2347431FD0 for <notmuch@notmuchmail.org>; Sun, 1 Dec 2013 02:02:39 -0800\r
+ (PST)\r
+Received: by mail-wg0-f43.google.com with SMTP id k14so8269352wgh.22\r
+ for <notmuch@notmuchmail.org>; Sun, 01 Dec 2013 02:02:38 -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=IxSu4E7/TxM+kEfjDFryHbuZhM/ButuOcnzl4j59b8k=;\r
+ b=cLT83rGPNsyXixiT6NIgSMDEzDEuwQTXuKco+Vi/AVSYiNWKKwtCUiXHKAYnkOqkIH\r
+ YACHN1rdT1WfhYpqm3f8KZF36XZUt4OU8wEWIDFKOiI131pwUFUe6iq8XYuNFcOkNSPG\r
+ QYNnStGCltXIUsEqR3YPeh1MJq4nuPR6HBxfD7KO8A2sEmx4ZT88LhfQWjQrgAILgImz\r
+ 7WP0zLocTZAMtDxESNV+MIJjCA+8PSD436WONsfgF7dd5txd9F4Sz+gXwWBizLqlxpNl\r
+ gI9OFlgE88GSs0ilUXRVszZAQQfbKd606W5Ui0qxurIFKc/9Gcd7buSe3bJdfWfy+dAB\r
+ b3+g==\r
+X-Received: by 10.180.39.140 with SMTP id p12mr13613142wik.12.1385892158691;\r
+ Sun, 01 Dec 2013 02:02:38 -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\r
+ hv5sm110300592wib.2.2013.12.01.02.02.37 for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Sun, 01 Dec 2013 02:02:38 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH WIP v2 4/6] emacs: show: use the `seen' interface\r
+Date: Sun, 1 Dec 2013 10:02:25 +0000\r
+Message-Id: <1385892147-16994-5-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1385892147-16994-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1385892147-16994-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: Sun, 01 Dec 2013 10:02:46 -0000\r
+\r
+This converts the existing logic to use the seen/read distinction. At\r
+this point the logic for deciding whether to mark seen/read is\r
+unchanged, but the actual tagging read is now deferred to\r
+quit/refresh.\r
+---\r
+ emacs/notmuch-show.el | 14 +++++++-------\r
+ 1 files changed, 7 insertions(+), 7 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 05f649b..261c2e3 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -1721,7 +1721,7 @@ thread, navigate to the next thread in the parent search buffer."\r
+ (interactive "P")\r
+ (if (notmuch-show-goto-message-next)\r
+ (progn\r
+- (notmuch-show-mark-read)\r
++ (notmuch-show-mark-seen)\r
+ (notmuch-show-message-adjust))\r
+ (if pop-at-end\r
+ (notmuch-show-next-thread)\r
+@@ -1733,7 +1733,7 @@ thread, navigate to the next thread in the parent search buffer."\r
+ (if (= (point) (notmuch-show-message-top))\r
+ (notmuch-show-goto-message-previous)\r
+ (notmuch-show-move-to-message-top))\r
+- (notmuch-show-mark-read)\r
++ (notmuch-show-mark-seen)\r
+ (notmuch-show-message-adjust))\r
+ \r
+ (defun notmuch-show-next-open-message (&optional pop-at-end)\r
+@@ -1749,7 +1749,7 @@ to show, nil otherwise."\r
+ (not (notmuch-show-message-visible-p))))\r
+ (if r\r
+ (progn\r
+- (notmuch-show-mark-read)\r
++ (notmuch-show-mark-seen)\r
+ (notmuch-show-message-adjust))\r
+ (if pop-at-end\r
+ (notmuch-show-next-thread)\r
+@@ -1764,7 +1764,7 @@ to show, nil otherwise."\r
+ (not (notmuch-show-get-prop :match))))\r
+ (if r\r
+ (progn\r
+- (notmuch-show-mark-read)\r
++ (notmuch-show-mark-seen)\r
+ (notmuch-show-message-adjust))\r
+ (goto-char (point-max)))))\r
+ \r
+@@ -1777,7 +1777,7 @@ to show, nil otherwise."\r
+ "Move to the first open message and mark it read"\r
+ (goto-char (point-min))\r
+ (if (notmuch-show-message-visible-p)\r
+- (notmuch-show-mark-read)\r
++ (notmuch-show-mark-seen)\r
+ (notmuch-show-next-open-message))\r
+ (when (eobp)\r
+ ;; There are no matched non-excluded messages so open all matched\r
+@@ -1786,7 +1786,7 @@ to show, nil otherwise."\r
+ (force-window-update)\r
+ (goto-char (point-min))\r
+ (if (notmuch-show-message-visible-p)\r
+- (notmuch-show-mark-read)\r
++ (notmuch-show-mark-seen)\r
+ (notmuch-show-next-open-message))))\r
+ \r
+ (defun notmuch-show-previous-open-message ()\r
+@@ -1796,7 +1796,7 @@ to show, nil otherwise."\r
+ (notmuch-show-goto-message-previous)\r
+ (notmuch-show-move-to-message-top))\r
+ (not (notmuch-show-message-visible-p))))\r
+- (notmuch-show-mark-read)\r
++ (notmuch-show-mark-seen)\r
+ (notmuch-show-message-adjust))\r
+ \r
+ (defun notmuch-show-view-raw-message ()\r
+-- \r
+1.7.9.1\r
+\r