[Patch v3 0/3] emacs: show: redesign unread/read logic
authorMark Walters <markwalters1009@gmail.com>
Tue, 25 Mar 2014 20:03:10 +0000 (20:03 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:59 +0000 (10:00 -0800)
47/0d3df7c709bdcf7c46bbb396571118d781c324 [new file with mode: 0644]

diff --git a/47/0d3df7c709bdcf7c46bbb396571118d781c324 b/47/0d3df7c709bdcf7c46bbb396571118d781c324
new file mode 100644 (file)
index 0000000..d0a2dbc
--- /dev/null
@@ -0,0 +1,113 @@
+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 1A2BE431FC3\r
+       for <notmuch@notmuchmail.org>; Tue, 25 Mar 2014 13:03:29 -0700 (PDT)\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 JrcN2oNANxt7 for <notmuch@notmuchmail.org>;\r
+       Tue, 25 Mar 2014 13:03:21 -0700 (PDT)\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 5EED7431FBD\r
+       for <notmuch@notmuchmail.org>; Tue, 25 Mar 2014 13:03:21 -0700 (PDT)\r
+Received: by mail-we0-f180.google.com with SMTP id p61so662678wes.25\r
+       for <notmuch@notmuchmail.org>; Tue, 25 Mar 2014 13:03:17 -0700 (PDT)\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=qxHBDXXqb7o2/BHPLqGTOLQrmsQmJN9engFxjbpBaW8=;\r
+       b=LS6M6DujuE2hNxuvPFyYxkhrcvIZM7CaxDwPdlg4uZlHg6evULD9g7z76Z5r3/fHx5\r
+       I0xxQNoiG6lSG4Mx7XsnJP9rOivGC22uyd3l+8E8D9iu8Vu36noBFPz7kftmvhfmBJLi\r
+       +Vzuax8iQpdGcAOSN6j/XW89LYnJi3OyNr8xBoqoDqxu5Wfyp3fQhl0gG0EhOnbmFdp/\r
+       FvWmjdxJBYU9Rx4DHg+7J76NXaSX1TUNpwBeFKxGgmYgFkpYAz+HojpfBDZX1KwsuTh3\r
+       +Ecr0kXWGX8PZqt4erMJRK7mxBtDOnKr1P3kV8uzBo026BxP/rNW1hAKOGAqULqy3stx\r
+       5UhQ==\r
+X-Received: by 10.180.12.233 with SMTP id b9mr25795847wic.8.1395777797431;\r
+       Tue, 25 Mar 2014 13:03:17 -0700 (PDT)\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
+       gz1sm11117824wib.14.2014.03.25.13.03.16 for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Tue, 25 Mar 2014 13:03:16 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [Patch v3 0/3] emacs: show: redesign unread/read logic\r
+Date: Tue, 25 Mar 2014 20:03:10 +0000\r
+Message-Id: <1395777793-13297-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.10.4\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: Tue, 25 Mar 2014 20:03:29 -0000\r
+\r
+This is the latest version of the redesign of the unread/read\r
+logic. Now that the tag update code is in this is relatively simple.\r
+\r
+The previous version (which included an early version of the tag\r
+update code) is at\r
+id:1387065197-15776-1-git-send-email-markwalters1009@gmail.com\r
+\r
+The series consists of three patches. The first makes the test suite\r
+run the post-command-hooks. This is bremner's version from\r
+id:1390578744-30516-1-git-send-email-david@tethera.net (which is much\r
+nicer than my original version). This patch has been reviewed by Tomi\r
+in id:m21tzxns8p.fsf@guru.guru-group.fi and me in\r
+id:87d2jizjlu.fsf@qmul.ac.uk\r
+\r
+The second patch adds a stub function linked to the post-command-hook\r
+to mark messages read. This is a convenient place to test other\r
+possible logics.\r
+\r
+The third patch adds my attempt at a plausible logic. I find it works\r
+very well: it usually does both what I expect and what I want.\r
+\r
+Somewhat surprisingly for a moderately significant change all tests\r
+pass unchanged.\r
+\r
+Finally, the tests do not pass after Patch 2 but before Patch 3. I\r
+have left these two patches split to make it easy for other people to\r
+test other unread logic, but we might want to merge the two when\r
+commiting.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+Mark Walters (3):\r
+  test: make test_emacs call post-command-hook\r
+  emacs: show: add an update seen function to post-command-hook\r
+  emacs: show: make `seen' mean user viewed whole message\r
+\r
+ emacs/notmuch-show.el |   91 +++++++++++++++++++++++++++++++++++++++++--------\r
+ test/test-lib.el      |   11 ++++++\r
+ test/test-lib.sh      |    2 +-\r
+ 3 files changed, 88 insertions(+), 16 deletions(-)\r
+\r
+-- \r
+1.7.10.4\r
+\r