1 Return-Path: <markwalters1009@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 5EB45431FD6
\r
6 for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:52 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.7 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 FREEMAIL_REPLY=2.499, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id 7UPOVqEsurcX for <notmuch@notmuchmail.org>;
\r
18 Sat, 14 Dec 2013 15:44:47 -0800 (PST)
\r
19 Received: from mail-we0-f170.google.com (mail-we0-f170.google.com
\r
20 [74.125.82.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 21A27431FB6
\r
23 for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:47 -0800 (PST)
\r
24 Received: by mail-we0-f170.google.com with SMTP id w61so3293627wes.1
\r
25 for <notmuch@notmuchmail.org>; Sat, 14 Dec 2013 15:44:44 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id;
\r
28 bh=fG5Ol9SP3vhyJ6mTE0C6oLXA/UhzrCKZxwDw0xnnKEA=;
\r
29 b=CeTBC6ci2mJXvhYD/TP0kJ3rkUYFMrm+/K6Aentakq8yWS4q3zKZXgtJlHoWqG9C9+
\r
30 FGSwGT0+TFFfm5MgIwmXY4dGaW6oZNbM3+eQvZRBswRYKngWgrV8e+ow4Rkbb89jdHdW
\r
31 VjTmJ4TiRpVQqF8Ab+z3JqUnPGRuT1VpHd98ardPk0KIE/b5TSluZIzQY7O1p762p85k
\r
32 x9pmbb07EQA0hTTE2I3jIKfeNLRGf+cS2AdsSP1vkg+QHyURKGWdnmNiuTtDWsuRDcHC
\r
33 w9oiuvWd+V70ZOuEREuxkm2bOE4a5vj0wFYvotGXD22LsehHh7w3YtLOFhVB6fxeruUb
\r
35 X-Received: by 10.194.222.38 with SMTP id qj6mr1064650wjc.66.1387064684462;
\r
36 Sat, 14 Dec 2013 15:44:44 -0800 (PST)
\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])
\r
38 by mx.google.com with ESMTPSA id x19sm11106126wia.5.2013.12.14.15.44.43
\r
39 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Sat, 14 Dec 2013 15:44:43 -0800 (PST)
\r
42 From: Mark Walters <markwalters1009@gmail.com>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH 0/5] emacs: show: redesign unread/read logic
\r
45 Date: Sat, 14 Dec 2013 23:44:31 +0000
\r
46 Message-Id: <1387064676-15508-1-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.9.1
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Sat, 14 Dec 2013 23:44:52 -0000
\r
62 This is the first non-WIP version of this series. The previous WIP
\r
64 id:1386665847-6439-1-git-send-email-markwalters1009@gmail.com
\r
66 The main changes are: all tests now pass, and tree mode is also
\r
67 done. In fact tree-mode is very easy: since only one message is viewed
\r
68 in the message pane at a time I think it makes sense to mark it read
\r
71 The test change is surprisingly small but relatively intrusive. Rather
\r
72 than wrapping the lisp to be executed in a progn in test_emacs I wrap
\r
73 it in a handler notmuch-test-progn. The syntax is not the same as
\r
74 progn so maybe the name is bad: it needs an actual lisp list of
\r
75 commands as its sole argument. test_emacs is updated to supply the
\r
76 commands as a lisp list. It executes each command in turn but runs the
\r
77 post-command-hook after each. Note a block of the form (progn (cmd1)
\r
78 (cmd2)) is viewed a single command and the post-command-hook would
\r
79 only run after the progn completes. This allows the caller to avoid
\r
80 running the post-command-hook when needed. Similarly a (let ....) form
\r
81 is only viewed as one command; in this case the calle may need to run
\r
82 the post-command-hook explicitly.
\r
84 It is surprising that all tests pass given the fairly substantial
\r
85 unread/read changes. This might suggest that we need some extra tests.
\r
97 emacs: show: make `seen' mean user viewed whole message
\r
98 emacs: show: add an update seen function to post-command-hook
\r
99 emacs: show: mark tags changed since buffer loaded
\r
100 emacs: tree: make the tree code force the mark read update
\r
101 test: make test_emacs call post-command-hook
\r
103 emacs/notmuch-show.el | 123 +++++++++++++++++++++++++++++++++++++++++--------
\r
104 emacs/notmuch-tag.el | 105 ++++++++++++++++++++++++++++++------------
\r
105 emacs/notmuch-tree.el | 3 +
\r
106 test/test-lib.el | 16 ++++++
\r
107 test/test-lib.sh | 2 +-
\r
108 5 files changed, 198 insertions(+), 51 deletions(-)
\r