[PATCH WIP v4 2/3] emacs: show: add an update seen function to post-command-hook

2013-12-10 Thread Mark Walters
Add a function stub for updating seen messages to the post-command-hook. This dummy function gets called with parameters the start and end of the current window and can decide what to mark seen based on that. Since this is in the post-command-hook it should get called after most user actions

[PATCH WIP v4 1/3] emacs: show: mark tags changed since buffer loaded

2013-12-10 Thread Mark Walters
This shows any tags changed in the show buffer since it was loaded or refreshed. By default a removed tag is displayed with strike-through in red (if strike-through is not available, eg on a terminal, inverse video is used instead) and an added tag is displayed underlined in green. One nice

[PATCH WIP v4 3/3] emacs: show: make `seen' mean user viewed whole message

2013-12-10 Thread Mark Walters
This changes `seen' to mean that the user viewed `enough' of the whole message: more precisely, a message is deemed seen if the top of the message and either the bottom of the message or a point at least some customisable number of lines into the message have each been visible in the buffer at

[PATCH WIP v4 0/3] emacs: show: redesign unread/read logic

2013-12-10 Thread Mark Walters
This is v4 of this WIP set; v3 is at id:1386273871-24214-1-git-send-email-markwalters1...@gmail.com This is still WIP: in particular lots of tests fail (for the obvious reason that unread is being removed differently). I don't think it's worth updating them until we have some consensus on how

[PATCH] perf-test: bump version to 0.4, use manifest files

2013-12-10 Thread David Bremner
David Bremner writes: > The new revision of the performance test includes manifests for each corpus, > so update the support library to use these manifests at the same time. pushed to master. Note that I'm still in the process of updating the tarball on notmuchmail.org (via slow hotel wifi).

[PATCH] emacs: add '?' to some prefix keymaps to describe its bindings

2013-12-10 Thread David Bremner
Mark Walters writes: > Added function notmuch-subkeymap-help to describe keybindings of a > subkeymap (eg after . or c in notmuch-search and notmuch-show). > --- pushed to master d

[PATCH v3 part 3/3] test: implement and document NOTMUCH_TEST_QUIET variable usage

2013-12-10 Thread David Bremner
Tomi Ollila writes: > When NOTMUCH_TEST_QUIET environment variable is set to non-null value > messages when new test script starts and when test PASSes are disabled. > This eases picking the cases when tests FAIL (as those are still printed). > --- series pushed to master d

[Patch v2 4/4] test: give unique timestamps to messages

2013-12-10 Thread Tomi Ollila
On Mon, Dec 09 2013, David Bremner wrote: > The choice of decreasing timestamps is a hack which reduces the number > of existing tests which fail. This can be changed to increasing > if/when somebody wants update another 47 tests. > --- series LGTM. Tomi > test/excludes| 4 ++-- >

[Patch v2 4/4] test: give unique timestamps to messages

2013-12-10 Thread David Bremner
Tomi Ollila writes: > On Mon, Dec 09 2013, David Bremner wrote: > >> The choice of decreasing timestamps is a hack which reduces the number >> of existing tests which fail. This can be changed to increasing >> if/when somebody wants update another 47 tests. >> --- > > series LGTM. > Pushed to

[PATCH WIP v4 0/3] emacs: show: redesign unread/read logic

2013-12-10 Thread Mark Walters
This is v4 of this WIP set; v3 is at id:1386273871-24214-1-git-send-email-markwalters1009 at gmail.com This is still WIP: in particular lots of tests fail (for the obvious reason that unread is being removed differently). I don't think it's worth updating them until we have some consensus on how

[PATCH WIP v4 1/3] emacs: show: mark tags changed since buffer loaded

2013-12-10 Thread Mark Walters
This shows any tags changed in the show buffer since it was loaded or refreshed. By default a removed tag is displayed with strike-through in red (if strike-through is not available, eg on a terminal, inverse video is used instead) and an added tag is displayed underlined in green. One nice

[PATCH WIP v4 2/3] emacs: show: add an update seen function to post-command-hook

2013-12-10 Thread Mark Walters
Add a function stub for updating seen messages to the post-command-hook. This dummy function gets called with parameters the start and end of the current window and can decide what to mark seen based on that. Since this is in the post-command-hook it should get called after most user actions

[PATCH WIP v4 3/3] emacs: show: make `seen' mean user viewed whole message

2013-12-10 Thread Mark Walters
This changes `seen' to mean that the user viewed `enough' of the whole message: more precisely, a message is deemed seen if the top of the message and either the bottom of the message or a point at least some customisable number of lines into the message have each been visible in the buffer at