default search sort order

2012-02-13 Thread Philippe LeCavalier
Hi Adam. On Mon, 13 Feb 2012 07:29:34 -0700, Adam Wolfe Gordon wrote: > Hi Phil, > > On Fri, Feb 10, 2012 at 10:10, Philippe LeCavalier > wrote: > > For some reason I can't seem to find how to change the default search > > sort order. I would like newest->oldest rather

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Tomi Ollila
On Mon, 13 Feb 2012 20:02:03 +0100, Daniel Schoepe wrote: > On Mon, 13 Feb 2012 10:29:26 -0500, Austin Clements > wrote: > > Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: > > > The notmuch-show view refresh function (`notmuch-show-refresh-view', > > > bound to "=") accepts an optional

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Daniel Schoepe
t!" is a fairly common sentiment here, and not a bad one, most of the time. Cheers, Daniel -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120213/c6e0582b/attachment.pgp>

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Dmitry Kurochkin
On Mon, 13 Feb 2012 10:29:26 -0500, Austin Clements wrote: > Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: > > The notmuch-show view refresh function (`notmuch-show-refresh-view', > > bound to "=") accepts an optional RETAIN-STATE argument. The patch > > allows to set this argument interactively

[RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane

2012-02-13 Thread Mark Walters
On Mon, 13 Feb 2012 14:35:31 +0530, "Aneesh Kumar K.V" wrote: > On Sun, 12 Feb 2012 18:49:36 +, Mark Walters gmail.com> wrote: > > Here is a rebased version of the notmuch-pick patch set > > id:"87d39k1gvi.fsf at qmul.ac.uk". It now applies directly > > to master since Jani's notmuch-show

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread David Edmondson
gnature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120213/6df185b3/attachment-0001.pgp>

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Dmitry Kurochkin
The notmuch-show view refresh function (`notmuch-show-refresh-view', bound to "=") accepts an optional RETAIN-STATE argument. The patch allows to set this argument interactively by using "C-u =". --- emacs/notmuch-show.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH] emacs: make `notmuch-show-open-or-close-all' toggle visibility

2012-02-13 Thread Dmitry Kurochkin
Hi Pieter. On Wed, 25 Jan 2012 06:25:39 +0100, Pieter Praet wrote: > * emacs/notmuch-show.el (notmuch-show-open-or-close-all): > Rename to `notmuch-show-toggle-all-messages', and make it toggle > visibility of all messages based on the visibility of the current > message, instead of

[RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane

2012-02-13 Thread Aneesh Kumar K.V
On Sun, 12 Feb 2012 18:49:36 +, Mark Walters wrote: > Here is a rebased version of the notmuch-pick patch set > id:"87d39k1gvi.fsf at qmul.ac.uk". It now applies directly > to master since Jani's notmuch-show command line parsing > has been pushed. > > It includes the significant bug fix

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Tomi Ollila
On Mon, 13 Feb 2012 15:09:07 +0400, Dmitry Kurochkin wrote: > The notmuch-show view refresh function (`notmuch-show-refresh-view', > bound to "=") accepts an optional RETAIN-STATE argument. The patch > allows to set this argument interactively by using "C-u =". > --- +1 Tomi

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Austin Clements
Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: > The notmuch-show view refresh function (`notmuch-show-refresh-view', > bound to "=") accepts an optional RETAIN-STATE argument. The patch > allows to set this argument interactively by using "C-u =". Why do we not *always* want this?

[PATCH v6 1/3] test: add tests wrt ignoring user-specified files and directories

2012-02-13 Thread Tomi Ollila
Those interested in this patch set please check lates changes. The test patch (1/3) has been slighty modified from Pieter's version and NEWS patch (3/3) is new. The actual functionality in patch 2/3 is exactly the same as in previous version. This applies cleanly in top of current master (

default search sort order

2012-02-13 Thread Adam Wolfe Gordon
Hi Phil, On Fri, Feb 10, 2012 at 10:10, Philippe LeCavalier wrote: > For some reason I can't seem to find how to change the default search > sort order. I would like newest->oldest rather than oldest->newest > without having to hit 'o' and ctrl+home. > > I'm using notmuch.el You'll need to set

[RFC PATCH v3 11/11] emacs: add notmuch-pick itself

2012-02-13 Thread Mark Walters
This adds the main notmuch-pick.el file itself --- emacs/Makefile.local |3 +- emacs/notmuch-pick.el | 585 + 2 files changed, 587 insertions(+), 1 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/Makefile.local

[RFC PATCH v3 10/11] emacs: notmuch-show.el just show the actual matching messages

2012-02-13 Thread Mark Walters
Allow a parameter to notmuch-show to just show the matching messages. This is very similar to notmuch-show-elide-non-matching-messages but since it calls notmuch-show.c with the --thread=none parameter it does not keep any threading information. In particular the sort order is different: the

[RFC PATCH v3 09/11] emacs: make notmuch-show return its buffer

2012-02-13 Thread Mark Walters
notmuch-pick uses the returned buffer to try and make sure it does not close the wrong buffer. --- emacs/notmuch-show.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 244e18d..8a8acf6 100644 ---

[RFC PATCH v3 08/11] emacs: add the entry to notmuch-pick to notmuch-show.el

2012-02-13 Thread Mark Walters
Add key bindings 'z' to enter a notmuch-pick search and 'Z' to view the current `show' (i.e. a thread-id with some query) in notmuch-pick. --- emacs/notmuch-show.el |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

[RFC PATCH v3 07/11] emacs: add entry to notmuch-pick from notmuch.el

2012-02-13 Thread Mark Walters
Add bindings 'z' to enter a notmuch-pick search and 'Z' to go straight to the current search (i.e. the on being viewed in notmuch.el buffer) in notmuch-pick. Also add binding `M-RET' to view the currently selected thread with notmuch-pick. --- emacs/notmuch.el | 20 1 files

[RFC PATCH v3 06/11] emacs: add extra parameters option to notmuch-query-get-threads

2012-02-13 Thread Mark Walters
Add an extra parameter to notmuch-query-get-threads (in notmuch-query.el) so that callers can pass in extra parameters to control the sort order, the --headers-only option, and threading etc. --- emacs/notmuch-query.el |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git

[RFC PATCH v3 05/11] emacs: add defcustom group for notmuch-pick

2012-02-13 Thread Mark Walters
--- emacs/notmuch-lib.el |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index d315f76..b88bb80 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -40,6 +40,10 @@ "Showing messages and threads." :group

[RFC PATCH v3 04/11] emacs: add entry to notmuch-pick from notmuch-hello.el

2012-02-13 Thread Mark Walters
Add an entry to notmuch-pick from notmuch-hello and bind it to 'z'. --- emacs/notmuch-hello.el | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index d17a30f..6d28a7e 100644 --- a/emacs/notmuch-hello.el +++

[RFC PATCH v3 03/11] cli: add --thread= option to notmuch-show

2012-02-13 Thread Mark Walters
The possible values are --thread=none|entire|match. `entire' is exactly the existing option --entire-thread. `match' is exactly the existing case when --entire-thread is not specified. `none' is a new option to return just the matching messages with no threading information at all. The `none'

[RFC PATCH v3 02/11] cli: add sort options to notmuch-show.c

2012-02-13 Thread Mark Walters
Add the option --sort=newest-first|oldest-first to notmuch-show. This is used by notmuch-pick.el --- notmuch-show.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index 9d73685..8f6e520 100644 --- a/notmuch-show.c +++

[RFC PATCH v3 01/11] cli: add --headers_only option to notmuch-show.c

2012-02-13 Thread Mark Walters
This option just outputs the headers of a message (i.e. it omits the bodies). This is used by notmuch-pick.el (although not needed) because it gives a speed-up of at least a factor of a two; moreover it reduces the memory usage in emacs hugely. --- notmuch-client.h |1 + notmuch-show.c |

[RFC PATCH v3 00/11] notmuch-pick: an emacs threaded message view with split-pane

2012-02-13 Thread Mark Walters
Here is a split up version of the patches with (I hope) reasonable commit messages. (Magit is amazing.) I have not split up the new notmuch-pick file but the cli and other emacs bits should be managable. (Note

Re: [PATCH v6 1/3] test: add tests wrt ignoring user-specified files and directories

2012-02-13 Thread Tomi Ollila
Those interested in this patch set please check lates changes. The test patch (1/3) has been slighty modified from Pieter's version and NEWS patch (3/3) is new. The actual functionality in patch 2/3 is exactly the same as in previous version. This applies cleanly in top of current master (

Re: [RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane

2012-02-13 Thread Aneesh Kumar K.V
On Sun, 12 Feb 2012 18:49:36 +, Mark Walters markwalters1...@gmail.com wrote: Here is a rebased version of the notmuch-pick patch set id:87d39k1gvi@qmul.ac.uk. It now applies directly to master since Jani's notmuch-show command line parsing has been pushed. It includes the

Re: [PATCH] emacs: make `notmuch-show-open-or-close-all' toggle visibility

2012-02-13 Thread Dmitry Kurochkin
Hi Pieter. On Wed, 25 Jan 2012 06:25:39 +0100, Pieter Praet pie...@praet.org wrote: * emacs/notmuch-show.el (notmuch-show-open-or-close-all): Rename to `notmuch-show-toggle-all-messages', and make it toggle visibility of all messages based on the visibility of the current message,

Re: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Tomi Ollila
On Mon, 13 Feb 2012 15:09:07 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: The notmuch-show view refresh function (`notmuch-show-refresh-view', bound to =) accepts an optional RETAIN-STATE argument. The patch allows to set this argument interactively by using C-u =. --- +1 Tomi

Re: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Austin Clements
Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: The notmuch-show view refresh function (`notmuch-show-refresh-view', bound to =) accepts an optional RETAIN-STATE argument. The patch allows to set this argument interactively by using C-u =. Why do we not *always* want this?

Re: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread David Edmondson
* amdra...@mit.edu [2012-02-13 Mon 15:29] Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: The notmuch-show view refresh function (`notmuch-show-refresh-view', bound to =) accepts an optional RETAIN-STATE argument. The patch allows to set this argument interactively by using C-u =. Why do we

Re: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Dmitry Kurochkin
On Mon, 13 Feb 2012 10:29:26 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: The notmuch-show view refresh function (`notmuch-show-refresh-view', bound to =) accepts an optional RETAIN-STATE argument. The patch allows to set this argument

Re: [RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane

2012-02-13 Thread Mark Walters
On Mon, 13 Feb 2012 14:35:31 +0530, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: On Sun, 12 Feb 2012 18:49:36 +, Mark Walters markwalters1...@gmail.com wrote: Here is a rebased version of the notmuch-pick patch set id:87d39k1gvi@qmul.ac.uk. It now applies directly to

Re: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Daniel Schoepe
On Mon, 13 Feb 2012 10:29:26 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: The notmuch-show view refresh function (`notmuch-show-refresh-view', bound to =) accepts an optional RETAIN-STATE argument. The patch allows to set this argument

Re: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread Tomi Ollila
On Mon, 13 Feb 2012 20:02:03 +0100, Daniel Schoepe dan...@schoepe.org wrote: On Mon, 13 Feb 2012 10:29:26 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: The notmuch-show view refresh function (`notmuch-show-refresh-view', bound to =) accepts

notmuch-emacs bug report -- infinite looping trying to select next message

2012-02-13 Thread Michael Hudson-Doyle
The attached gzipped mbox appears to trip up the emacs interface. The problem seems to come from the message with id CAGNsrLCWv6=36q+q+5Hc_SzgdZ2ergeKkapT7T3xXvim=2c...@mail.gmail.com. If you load up the thread in emacs, you get a message: mm-extern-cache-contents: Couldn't find access type

Re: default search sort order

2012-02-13 Thread Philippe LeCavalier
Hi Adam. On Mon, 13 Feb 2012 07:29:34 -0700, Adam Wolfe Gordon awg+notm...@xvx.ca wrote: Hi Phil, On Fri, Feb 10, 2012 at 10:10, Philippe LeCavalier plecaval...@plc.plecavalier.com wrote: For some reason I can't seem to find how to change the default search sort order. I would like