unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [Patch v3 0/3] emacs: show: redesign unread/read logic
@ 2014-03-25 20:03 Mark Walters
  2014-03-25 20:03 ` [Patch v3 1/3] test: make test_emacs call post-command-hook Mark Walters
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mark Walters @ 2014-03-25 20:03 UTC (permalink / raw)
  To: notmuch

This is the latest version of the redesign of the unread/read
logic. Now that the tag update code is in this is relatively simple.

The previous version (which included an early version of the tag
update code) is at
id:1387065197-15776-1-git-send-email-markwalters1009@gmail.com

The series consists of three patches. The first makes the test suite
run the post-command-hooks. This is bremner's version from
id:1390578744-30516-1-git-send-email-david@tethera.net (which is much
nicer than my original version). This patch has been reviewed by Tomi
in id:m21tzxns8p.fsf@guru.guru-group.fi and me in
id:87d2jizjlu.fsf@qmul.ac.uk

The second patch adds a stub function linked to the post-command-hook
to mark messages read. This is a convenient place to test other
possible logics.

The third patch adds my attempt at a plausible logic. I find it works
very well: it usually does both what I expect and what I want.

Somewhat surprisingly for a moderately significant change all tests
pass unchanged.

Finally, the tests do not pass after Patch 2 but before Patch 3. I
have left these two patches split to make it easy for other people to
test other unread logic, but we might want to merge the two when
commiting.

Best wishes

Mark







Mark Walters (3):
  test: make test_emacs call post-command-hook
  emacs: show: add an update seen function to post-command-hook
  emacs: show: make `seen' mean user viewed whole message

 emacs/notmuch-show.el |   91 +++++++++++++++++++++++++++++++++++++++++--------
 test/test-lib.el      |   11 ++++++
 test/test-lib.sh      |    2 +-
 3 files changed, 88 insertions(+), 16 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-08  8:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25 20:03 [Patch v3 0/3] emacs: show: redesign unread/read logic Mark Walters
2014-03-25 20:03 ` [Patch v3 1/3] test: make test_emacs call post-command-hook Mark Walters
2014-03-25 20:03 ` [Patch v3 2/3] emacs: show: add an update seen function to post-command-hook Mark Walters
2014-03-25 20:03 ` [Patch v3 3/3] emacs: show: make `seen' mean user viewed whole message Mark Walters
2014-05-07 15:08 ` [Patch v3 0/3] emacs: show: redesign unread/read logic David Edmondson
2014-05-07 18:06   ` Mark Walters
2014-05-08  6:14     ` David Edmondson
2014-05-08  6:41       ` Mark Walters
2014-05-08  8:09         ` David Edmondson

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).