Re: [PATCH v2] emacs: replace oldest-first with sort-order

2017-09-09 Thread William Casarin
Here's the before and after with from-ascending sorting on my rss tag: before: https://jb55.com/s/e51db7073ccfc36d.png after: https://jb55.com/s/6a01cd3a0227ddfa.png Last thing I need to add is a completing-read menu for selecting the sort-order, since you can only set it in saved searches or

[PATCH v2] emacs: replace oldest-first with sort-order

2017-09-09 Thread William Casarin
This generalizes notmuch-search-oldest-first to notmuch-search-sort-order. notmuch-search-sort-order can now be one of: * oldest-first * newest-first * subject-ascending * subject-descending * from-ascending * from-descending Order toggling now simply inverts the corresponding

[PATCH] emacs: replace oldest-first with sort-order

2017-09-09 Thread William Casarin
This generalizes notmuch-search-oldest-first to notmuch-search-sort-order. notmuch-search-sort-order can now be one of: * oldest-first * newest-first * subject-ascending * subject-descending * from-ascending * from-descending Order toggling now simply inverts the corresponding

[RFC] emacs/tree: do not insert excluded messages

2017-09-09 Thread David Bremner
This is motivated by hiding deleted drafts. --- This is probably a little too simple-minded, and will likely cause some strange display artifacts. If you have some nice test cases, let me know. emacs/notmuch-tree.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[RFC] emacs/show: drop header lines for excluded messages

2017-09-09 Thread David Bremner
These message headers can be brought back by the usual trick of adding e.g. "tag:deleted" to the search. --- This doesn't seem to break any tests (which suggests a gap in the test suite). I _think_ this is a small improvement, particularly for drafts, but I haven't used it much yet.