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

This is v4 of this set. v3 is at id:1395777793-13297-1-git-send-email-markwalters1009@gmail.com

David (dme) was not keen on the logic in the previous patch so I have
tried to make it rather more customisable and made this version much
closer to the existing logic.

This version marks the current message read if it is open. It doesn't
care how you get there: whether it is notmuch commands n/N/p/P next
message etc, emacs commands like scroll up, mouse clicks etc.

The only proviso is it will only mark a message read once (in a single
buffer and between refreshes) as otherwise it is impossible for a user
to choose to mark a message unread.

I, personally, like my previous logic much more. But with this setup
that can be customized easily in my .emacs (we may choose to add other
options into mainline later). Also I think this series fixes all of
the problems with the current read/unread logic mentioned in
id:87a9atmpkf.fsf@qmul.ac.uk are fixed.

The first patch is unchanged. Since the new mark-read function is
small it folded neatly into the patch removing the old unread logic.

Finally, as with previous versions, all tests pass.

Best wishes

Mark




Mark Walters (2):
  test: make test_emacs call post-command-hook
  emacs: show: add an update seen function to post-command-hook

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

-- 
1.7.10.4

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

end of thread, other threads:[~2014-07-13 15:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-09  0:20 [PATCH v4 0/2] emacs: show: redesign unread/read logic Mark Walters
2014-05-09  0:20 ` [PATCH v4 1/2] test: make test_emacs call post-command-hook Mark Walters
2014-07-13 15:44   ` David Bremner
2014-05-09  0:20 ` [PATCH v4 2/2] emacs: show: add an update seen function to post-command-hook Mark Walters
2014-05-09 15:45   ` [RFC PATCH] emacs: show: mark messages unread if seen in buffer Mark Walters
2014-05-09 15:55     ` David Edmondson
2014-05-09  8:27 ` [PATCH v4 0/2] emacs: show: redesign unread/read logic David Edmondson
2014-05-09 11:28   ` Mark Walters
2014-05-09 13:00     ` 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).