--- /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 5EB45431FD6\r
+ for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:52 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.7\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.7 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
+ FREEMAIL_REPLY=2.499, 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 7UPOVqEsurcX for <notmuch@notmuchmail.org>;\r
+ Sat, 14 Dec 2013 15:44:47 -0800 (PST)\r
+Received: from mail-we0-f170.google.com (mail-we0-f170.google.com\r
+ [74.125.82.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 21A27431FB6\r
+ for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:47 -0800 (PST)\r
+Received: by mail-we0-f170.google.com with SMTP id w61so3293627wes.1\r
+ for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:44 -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;\r
+ bh=fG5Ol9SP3vhyJ6mTE0C6oLXA/UhzrCKZxwDw0xnnKEA=;\r
+ b=CeTBC6ci2mJXvhYD/TP0kJ3rkUYFMrm+/K6Aentakq8yWS4q3zKZXgtJlHoWqG9C9+\r
+ FGSwGT0+TFFfm5MgIwmXY4dGaW6oZNbM3+eQvZRBswRYKngWgrV8e+ow4Rkbb89jdHdW\r
+ VjTmJ4TiRpVQqF8Ab+z3JqUnPGRuT1VpHd98ardPk0KIE/b5TSluZIzQY7O1p762p85k\r
+ x9pmbb07EQA0hTTE2I3jIKfeNLRGf+cS2AdsSP1vkg+QHyURKGWdnmNiuTtDWsuRDcHC\r
+ w9oiuvWd+V70ZOuEREuxkm2bOE4a5vj0wFYvotGXD22LsehHh7w3YtLOFhVB6fxeruUb\r
+ wu0g==\r
+X-Received: by 10.194.222.38 with SMTP id qj6mr1064650wjc.66.1387064684462;\r
+ Sat, 14 Dec 2013 15:44:44 -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 x19sm11106126wia.5.2013.12.14.15.44.43\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Sat, 14 Dec 2013 15:44:43 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/5] emacs: show: redesign unread/read logic\r
+Date: Sat, 14 Dec 2013 23:44:31 +0000\r
+Message-Id: <1387064676-15508-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\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:44:52 -0000\r
+\r
+This is the first non-WIP version of this series. The previous WIP\r
+version is at\r
+id:1386665847-6439-1-git-send-email-markwalters1009@gmail.com\r
+\r
+The main changes are: all tests now pass, and tree mode is also\r
+done. In fact tree-mode is very easy: since only one message is viewed\r
+in the message pane at a time I think it makes sense to mark it read\r
+immediately.\r
+\r
+The test change is surprisingly small but relatively intrusive. Rather\r
+than wrapping the lisp to be executed in a progn in test_emacs I wrap\r
+it in a handler notmuch-test-progn. The syntax is not the same as\r
+progn so maybe the name is bad: it needs an actual lisp list of\r
+commands as its sole argument. test_emacs is updated to supply the\r
+commands as a lisp list. It executes each command in turn but runs the\r
+post-command-hook after each. Note a block of the form (progn (cmd1)\r
+(cmd2)) is viewed a single command and the post-command-hook would\r
+only run after the progn completes. This allows the caller to avoid\r
+running the post-command-hook when needed. Similarly a (let ....) form\r
+is only viewed as one command; in this case the calle may need to run\r
+the post-command-hook explicitly.\r
+\r
+It is surprising that all tests pass given the fairly substantial\r
+unread/read changes. This might suggest that we need some extra tests.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+\r
+\r
+\r
+\r
+Mark Walters (5):\r
+ emacs: show: make `seen' mean user viewed whole message\r
+ emacs: show: add an update seen function to post-command-hook\r
+ emacs: show: mark tags changed since buffer loaded\r
+ emacs: tree: make the tree code force the mark read update\r
+ test: make test_emacs call post-command-hook\r
+\r
+ emacs/notmuch-show.el | 123 +++++++++++++++++++++++++++++++++++++++++--------\r
+ emacs/notmuch-tag.el | 105 ++++++++++++++++++++++++++++++------------\r
+ emacs/notmuch-tree.el | 3 +\r
+ test/test-lib.el | 16 ++++++\r
+ test/test-lib.sh | 2 +-\r
+ 5 files changed, 198 insertions(+), 51 deletions(-)\r
+\r
+-- \r
+1.7.9.1\r
+\r