unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/7] emacs: hello: custom display of saved searches
@ 2014-05-11  8:34 Mark Walters
  2014-05-11  8:34 ` [PATCH 1/7] emacs: hello: separate out the saved-search display function Mark Walters
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Mark Walters @ 2014-05-11  8:34 UTC (permalink / raw)
  To: notmuch

This series allows the user to customize the display of individual
saved searches, including showing thread counts, changed counts,
omitting counts (for speed), a read/unread count etc.

The series is not as large as it looks. Patch 1 is just code movement,
and patches 4-7 implement some of the above possibilities. Patches 4-7
could be applied but they are more intended to demonstrate and let
people test the infrastructure (ie showing what can be done).

Comments on the series: 

the display function is given a keyword list of arguments (so use
&rest args, followed by (plist-get args :keyword)). This is to make
the interface easily extendible without breaking backwards
compatibility.

custom display functions do not link into the batch count
functionality (but are omitted from it). Thus if the custom function
doesn't always do a query hello may be quicker, but in other cases,
particularly over a remote link, it may be slower.

some custom display functions will be slow, but they may be fast
enough for small searches (eg inbox).

Finally, a lisp query: I use a plist for saving the results of the
previous run (so display functions can highlight changes). This is
indexed by the saved searches themselves. I think this is OK (because
plist uses eq not equal) but would like a confirmation.

Finally, some of this infrastructure could be used to do async counts
at a later stage. I have some preliminary patches, but that is all
rather more fragile.

Best wishes

Mark



Mark Walters (7):
  emacs: hello: separate out the saved-search display function
  emacs: hello: allow saved search display functions
  emacs: hello: store previous saved-search results
  emacs: hello: add a threads-and-messages function
  emacs: hello: require cl
  emacs: hello: add highlight newly arrived messages option
  emacs: hello: add option to omit count for a search

 emacs/notmuch-hello.el |  139 ++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 111 insertions(+), 28 deletions(-)

-- 
1.7.10.4

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

end of thread, other threads:[~2017-03-11 15:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-11  8:34 [PATCH 0/7] emacs: hello: custom display of saved searches Mark Walters
2014-05-11  8:34 ` [PATCH 1/7] emacs: hello: separate out the saved-search display function Mark Walters
2017-03-11 14:57   ` David Bremner
2014-05-11  8:34 ` [PATCH 2/7] emacs: hello: allow saved search display functions Mark Walters
2014-05-12 14:03   ` David Edmondson
2014-05-12 15:20     ` Mark Walters
2014-05-11  8:34 ` [PATCH 3/7] emacs: hello: store previous saved-search results Mark Walters
2014-05-11  8:34 ` [PATCH 4/7] emacs: hello: add a threads-and-messages function Mark Walters
2014-05-11  8:34 ` [PATCH 5/7] emacs: hello: require cl Mark Walters
2017-03-11 15:01   ` David Bremner
2014-05-11  8:34 ` [PATCH 6/7] emacs: hello: add highlight newly arrived messages option Mark Walters
2014-05-12 13:58   ` David Edmondson
2014-05-12 15:33     ` Mark Walters
2016-01-07 22:52   ` Tomi Ollila
2014-05-11  8:34 ` [PATCH 7/7] emacs: hello: add option to omit count for a search Mark Walters

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).