[RFC PATCH v2 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
This patch adds entries to notmuch-pick to notmuch-hello.el notmuch.el and notmuch-show.el. the option to view the current search in pick mode (from either notmuch-show.el or notmuch.el) a defcustom group for notmuch-pick. make notmuch-show (the main function) return the buffer it uses. This

[RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
This patch adds the following features to notmuch-show.c a --headers-only option which just outputs the headers of a message (i.e. it omits the bodies). This is not strictly needed by notmuch-pick.el but it gives a speed-up of at least a factor of a two; moreover it reduces the memory usage of

[RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Daniel Schoepe
rams.entire_thread = entire_thread; entire_thread is not initialized here, if there is no --thread argument. The rest of the code makes this result in the same behavior as --thread=entire, but it should be initialized to NOTMUCH_SHOW_THREAD_MATCH. 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/20120212/8a08ba53/attachment.pgp>

RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Daniel Schoepe
t;http://notmuchmail.org/pipermail/notmuch/attachments/20120212/df78c2ed/attachment.pgp>

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

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 12:39:13 -0800, Jameson Graef Rollins 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

RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 21:59:39 +0100, Daniel Schoepe wrote: > On Sun, 12 Feb 2012 12:46:36 -0800, Jameson Graef Rollins finestructure.net> wrote: > > Hey, Mark. I really like the idea, since I've been looking for > > something like this for a while, but there's something I'm confused > > about.

[PATCH] STYLE: Initial draft of coding style document

2012-02-12 Thread David Bremner
On Sun, 5 Feb 2012 23:42:05 -0500, Austin Clements wrote: > > Any indentation style this difficult to explain can't be a good idea. > How about, > > * Indent is 4 spaces with mixed tab/spaces and a tab width of 8. > (Specifically, a line should begin with zero or more tabs followed > by

[RFC PATCH v2 3/3] emacs: add notmuch-pick itself

2012-02-12 Thread Mark Walters
--- emacs/notmuch-pick.el | 585 + 1 files changed, 585 insertions(+), 0 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el new file mode 100644 index 000..46eb720 --- /dev/null

[RFC PATCH v2 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
--- emacs/Makefile.local |3 ++- emacs/notmuch-hello.el | 10 ++ emacs/notmuch-lib.el |4 emacs/notmuch-query.el |4 +++- emacs/notmuch-show.el | 25 ++--- emacs/notmuch.el |8 6 files changed, 49 insertions(+), 5

[RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
--- notmuch-client.h |9 +- notmuch-show.c | 90 -- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 60828aa..b4dc7bf 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@

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

2012-02-12 Thread Mark Walters
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 (at least for anyone working with a dark background) from Daniel

[PATCH v4 1/2] emacs: Add thread-outline functionality

2012-02-12 Thread Daniel Schoepe
cation/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120212/165d7d72/attachment.pgp>

[PATCH v2 1/2] emacs: support defining a list of alternative parts to show

2012-02-12 Thread Tomi Ollila
On Sun, 12 Feb 2012 14:09:57 +0200, Jani Nikula wrote: > On Fri, 10 Feb 2012 10:05:46 +, David Edmondson wrote: > > On Thu, 9 Feb 2012 14:46:02 +, Jani Nikula wrote: [...] > > > + (if (or (equal notmuch-show-all-multipart/alternative-parts t) > > > + (string=

[PATCH] emacs: Make highlight-faces for pick configurable

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 15:47:18 +0100, Daniel Schoepe wrote: > --- > emacs/notmuch-pick.el | 21 ++--- > 1 files changed, 18 insertions(+), 3 deletions(-) > > diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el > index 4c91d7c..2bf1ae4 100644 > --- a/emacs/notmuch-pick.el

[PATCH 0/1] emacs: Make highlight-faces for pick configurable

2012-02-12 Thread Daniel Schoepe
This makes the faces notmuch-pick uses for high/"low"lighting configurable. Obviously, this requires the rest of the patch series from this thread.

RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Daniel Schoepe
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/20120212/7fd1f04e/attachment.pgp>

[PATCH v2 1/2] emacs: support defining a list of alternative parts to show

2012-02-12 Thread Jani Nikula
On Fri, 10 Feb 2012 10:05:46 +, David Edmondson wrote: > On Thu, 9 Feb 2012 14:46:02 +, Jani Nikula wrote: > > Make notmuch-show-all-multipart/alternative-parts accept a list of > > regexps to match the part types to determine which parts to show in > > addition to the preferred types.

[PATCH] emacs: cleanup and simplify `notmuch-show-archive-thread' and related functions

2012-02-12 Thread David Bremner
On Wed, 8 Feb 2012 20:48:51 +0400, Dmitry Kurochkin wrote: > Recent changes in notmuch-show tagging introduced some code > duplication. The patch cleanups and simplifies > `notmuch-show-archive-thread' function by using pushed, d

RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Jameson Graef Rollins
t;http://notmuchmail.org/pipermail/notmuch/attachments/20120212/52becb42/attachment.pgp>

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

2012-02-12 Thread Jameson Graef Rollins
able Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120212/063d68f9/attachment.pgp>

[PATCH v8 0/8] reworked crypto toggle, plus a few other toggles

2012-02-12 Thread David Bremner
On Wed, 8 Feb 2012 08:02:09 +, David Edmondson wrote: > v8: > - Code review comments from Austin: > - Correctly decrypt parts when saving, etc. them. (revert to > original behaviour). pushed, d

[PATCH] emacs: Ensure that gnupg output goes at the end of the buffer.

2012-02-12 Thread David Bremner
On Tue, 7 Feb 2012 17:26:11 +, David Edmondson wrote: > When showing the user some details of gnupg output, ensure that those > details are shown at the end of the gnupg status buffer > ("*notmuch-crypto-gpg-out*"), otherwise it can end up mixed up with > earlier output. pushed, d

[PATCH 0/3] notmuch show argument parsing

2012-02-12 Thread David Bremner
On Mon, 6 Feb 2012 21:57:20 +0200, Jani Nikula wrote: > Hi all, > > v2 addressing Austin's comments in id:"20120206041205.GP10898 at mit.edu". > Separate the bool cleanup into a new patch, cleaning up notmuch reply > while at it. No functional changes since v1. > pushed, d

[PATCH v2 0/2] Rewrite text show format

2012-02-12 Thread David Bremner
On Sat, 4 Feb 2012 16:24:24 -0500, Austin Clements wrote: > v2 > > * Remove unnecessary braces (id:87lioooj7m.fsf at gmail.com) > > * Trivial rebase against master Pushed, d

[PATCH v2] emacs: add default value to notmuch-search-line-faces

2012-02-12 Thread David Bremner
On Thu, 2 Feb 2012 16:58:41 +0200, Jani Nikula wrote: > Add default value to notmuch-search-line-faces to show "unread" > messages in bold, and "flagged" messages in blue, to have some visual > indication of important messages in search results. This should be > helpful for new users. Pushed,

[PATCH 1/2] test: auto load elisp tests file in test_emacs if available

2012-02-12 Thread David Bremner
On Sun, 29 Jan 2012 07:36:02 +0400, Dmitry Kurochkin wrote: > This allows us to simplify shell part of tests written in elisp. Pushed.

[PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode'.

2012-02-12 Thread David Bremner
On Wed, 8 Feb 2012 08:02:11 +, David Edmondson wrote: > Except for where invisibility is involved, replace the use of overlays > in `notmuch-show-mode' with text properties, which are more efficient > and can be merged together more effectively. Hi David; Not quite sure why there is a

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

2012-02-12 Thread Mark Walters
--- emacs/notmuch-pick.el | 570 + 1 files changed, 570 insertions(+), 0 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el new file mode 100644 index 000..4c91d7c --- /dev/null

[RFC PATCH 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
--- emacs/Makefile.local |3 ++- emacs/notmuch-hello.el | 10 ++ emacs/notmuch-query.el |4 +++- emacs/notmuch-show.el | 19 +++ emacs/notmuch.el |8 5 files changed, 38 insertions(+), 6 deletions(-) diff --git a/emacs/Makefile.local

[RFC PATCH 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
--- notmuch-client.h |9 +- notmuch-show.c | 90 -- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 60828aa..b4dc7bf 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@

RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Mark Walters
Hello On irc recently dme posted a patch notmuch-pick.el which provided a threaded message view in the emacs interface. I have added substantially to it and made some cli changes to support it better. See http://kanelephant.com/screen.png for a screenshot. It seems to be working well (although

[PATCH v3 3/3] emacs: Don't insert a part header if it's the first part and text/*.

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 09:24:09 +, Mark Walters wrote: > On Mon, 6 Feb 2012 15:39:08 +, David Edmondson wrote: > > Previously this logic applied only to text/plain. Allow it for other > > text/* parts as well. > > What is the reason for treating the first part differently? > >

[PATCH v3 3/3] emacs: Don't insert a part header if it's the first part and text/*.

2012-02-12 Thread Mark Walters
On Mon, 6 Feb 2012 15:39:08 +, David Edmondson wrote: > Previously this logic applied only to text/plain. Allow it for other > text/* parts as well. What is the reason for treating the first part differently? Personally, I would prefer to keep it as now since pressing v on the [text/html]

[PATCH v3 2/3] emacs: Optionally hide some part headers.

2012-02-12 Thread Mark Walters
On Mon, 6 Feb 2012 15:39:07 +, David Edmondson wrote: > Add a regexp, `notmuch-show-part-headers-hidden' and if the > content-type of a part matches, don't show the part header. > --- > emacs/notmuch-show.el | 43 --- > 1 files changed, 28

[PATCH v2] emacs: Leave blank subjects alone by default.

2012-02-12 Thread Mark Walters
On Mon, 6 Feb 2012 22:48:10 +, David Edmondson wrote: > Add `notmuch-blank-subject' to control how empty or whitespace only > subjects are treated. The default behaviour is to leave them > alone. The user can choose a string to use as a replacement. > > Modify code that cannot handle blank

Re: [PATCH v3 2/3] emacs: Optionally hide some part headers.

2012-02-12 Thread Mark Walters
On Mon, 6 Feb 2012 15:39:07 +, David Edmondson d...@dme.org wrote: Add a regexp, `notmuch-show-part-headers-hidden' and if the content-type of a part matches, don't show the part header. --- emacs/notmuch-show.el | 43 --- 1 files changed, 28

Re: [PATCH v3 3/3] emacs: Don't insert a part header if it's the first part and text/*.

2012-02-12 Thread Mark Walters
On Mon, 6 Feb 2012 15:39:08 +, David Edmondson d...@dme.org wrote: Previously this logic applied only to text/plain. Allow it for other text/* parts as well. What is the reason for treating the first part differently? Personally, I would prefer to keep it as now since pressing v on the

Re: [PATCH v3 3/3] emacs: Don't insert a part header if it's the first part and text/*.

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 09:24:09 +, Mark Walters markwalters1...@gmail.com wrote: On Mon, 6 Feb 2012 15:39:08 +, David Edmondson d...@dme.org wrote: Previously this logic applied only to text/plain. Allow it for other text/* parts as well. What is the reason for treating the first

RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Mark Walters
Hello On irc recently dme posted a patch notmuch-pick.el which provided a threaded message view in the emacs interface. I have added substantially to it and made some cli changes to support it better. See http://kanelephant.com/screen.png for a screenshot. It seems to be working well (although

[RFC PATCH 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
--- notmuch-client.h |9 +- notmuch-show.c | 90 -- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 60828aa..b4dc7bf 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@

[RFC PATCH 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
--- emacs/Makefile.local |3 ++- emacs/notmuch-hello.el | 10 ++ emacs/notmuch-query.el |4 +++- emacs/notmuch-show.el | 19 +++ emacs/notmuch.el |8 5 files changed, 38 insertions(+), 6 deletions(-) diff --git a/emacs/Makefile.local

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

2012-02-12 Thread Mark Walters
--- emacs/notmuch-pick.el | 570 + 1 files changed, 570 insertions(+), 0 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el new file mode 100644 index 000..4c91d7c --- /dev/null

Re: [PATCH v2 1/2] emacs: support defining a list of alternative parts to show

2012-02-12 Thread Jani Nikula
On Fri, 10 Feb 2012 10:05:46 +, David Edmondson d...@dme.org wrote: On Thu, 9 Feb 2012 14:46:02 +, Jani Nikula j...@nikula.org wrote: Make notmuch-show-all-multipart/alternative-parts accept a list of regexps to match the part types to determine which parts to show in addition to

[PATCH 0/1] emacs: Make highlight-faces for pick configurable

2012-02-12 Thread Daniel Schoepe
This makes the faces notmuch-pick uses for high/lowlighting configurable. Obviously, this requires the rest of the patch series from this thread. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] emacs: Make highlight-faces for pick configurable

2012-02-12 Thread Daniel Schoepe
--- emacs/notmuch-pick.el | 21 ++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el index 4c91d7c..2bf1ae4 100644 --- a/emacs/notmuch-pick.el +++ b/emacs/notmuch-pick.el @@ -42,6 +42,22 @@ :group 'notmuch

Re: [PATCH] emacs: Make highlight-faces for pick configurable

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 15:47:18 +0100, Daniel Schoepe dan...@schoepe.org wrote: --- emacs/notmuch-pick.el | 21 ++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el index 4c91d7c..2bf1ae4 100644 ---

Re: [PATCH v4 1/2] emacs: Add thread-outline functionality

2012-02-12 Thread Daniel Schoepe
I think notmuch-pick [1] is a better approach and also provides thread-outlining, so these patches should be obsolete now. [1] id:87d39k1gvi@qmul.ac.uk Cheers, Daniel pgptBCwFOhEua.pgp Description: PGP signature ___ notmuch mailing list

Re: [PATCH 1/2] test: auto load elisp tests file in test_emacs if available

2012-02-12 Thread David Bremner
On Sun, 29 Jan 2012 07:36:02 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: This allows us to simplify shell part of tests written in elisp. Pushed. ___ notmuch mailing list notmuch@notmuchmail.org

Re: [PATCH v2] emacs: add default value to notmuch-search-line-faces

2012-02-12 Thread David Bremner
On Thu, 2 Feb 2012 16:58:41 +0200, Jani Nikula j...@nikula.org wrote: Add default value to notmuch-search-line-faces to show unread messages in bold, and flagged messages in blue, to have some visual indication of important messages in search results. This should be helpful for new users.

Re: [PATCH v2 0/2] Rewrite text show format

2012-02-12 Thread David Bremner
On Sat, 4 Feb 2012 16:24:24 -0500, Austin Clements amdra...@mit.edu wrote: v2 * Remove unnecessary braces (id:87lioooj7m@gmail.com) * Trivial rebase against master Pushed, d ___ notmuch mailing list notmuch@notmuchmail.org

Re: [PATCH] emacs: Ensure that gnupg output goes at the end of the buffer.

2012-02-12 Thread David Bremner
On Tue, 7 Feb 2012 17:26:11 +, David Edmondson d...@dme.org wrote: When showing the user some details of gnupg output, ensure that those details are shown at the end of the gnupg status buffer (*notmuch-crypto-gpg-out*), otherwise it can end up mixed up with earlier output. pushed, d

Re: [PATCH v8 0/8] reworked crypto toggle, plus a few other toggles

2012-02-12 Thread David Bremner
On Wed, 8 Feb 2012 08:02:09 +, David Edmondson d...@dme.org wrote: v8: - Code review comments from Austin: - Correctly decrypt parts when saving, etc. them. (revert to original behaviour). pushed, d ___ notmuch mailing list

Re: [PATCH] emacs: cleanup and simplify `notmuch-show-archive-thread' and related functions

2012-02-12 Thread David Bremner
On Wed, 8 Feb 2012 20:48:51 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Recent changes in notmuch-show tagging introduced some code duplication. The patch cleanups and simplifies `notmuch-show-archive-thread' function by using pushed, d

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

2012-02-12 Thread Mark Walters
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 significant bug fix (at least for anyone working with a dark background) from Daniel making

[RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
--- notmuch-client.h |9 +- notmuch-show.c | 90 -- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 60828aa..b4dc7bf 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@

[RFC PATCH v2 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
--- emacs/Makefile.local |3 ++- emacs/notmuch-hello.el | 10 ++ emacs/notmuch-lib.el |4 emacs/notmuch-query.el |4 +++- emacs/notmuch-show.el | 25 ++--- emacs/notmuch.el |8 6 files changed, 49 insertions(+), 5

[RFC PATCH v2 3/3] emacs: add notmuch-pick itself

2012-02-12 Thread Mark Walters
--- emacs/notmuch-pick.el | 585 + 1 files changed, 585 insertions(+), 0 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el new file mode 100644 index 000..46eb720 --- /dev/null

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

2012-02-12 Thread Jameson Graef Rollins
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. Hey, Mark. Thanks for

Re: RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Jameson Graef Rollins
On Sun, 12 Feb 2012 10:32:48 +, Mark Walters markwalters1...@gmail.com wrote: On irc recently dme posted a patch notmuch-pick.el which provided a threaded message view in the emacs interface. I have added substantially to it and made some cli changes to support it better. See

Re: RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Daniel Schoepe
On Sun, 12 Feb 2012 12:46:36 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: Hey, Mark. I really like the idea, since I've been looking for something like this for a while, but there's something I'm confused about. Is this meant to replace notmuch-search, or notmuch-show? I

Re: [RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Daniel Schoepe
On Sun, 12 Feb 2012 18:49:37 +, Mark Walters markwalters1...@gmail.com wrote: +int opt_index, ret, entire_thread; +notmuch_sort_t sort = NOTMUCH_SORT_NEWEST_FIRST; const notmuch_show_format_t *format = format_text; notmuch_show_params_t params = { .part = -1 }; int

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

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 12:39:13 -0800, Jameson Graef Rollins jroll...@finestructure.net 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: [RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
This patch adds the following features to notmuch-show.c a --headers-only option which just outputs the headers of a message (i.e. it omits the bodies). This is not strictly needed by notmuch-pick.el but it gives a speed-up of at least a factor of a two; moreover it reduces the memory usage of

Re: [RFC PATCH v2 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
This patch adds entries to notmuch-pick to notmuch-hello.el notmuch.el and notmuch-show.el. the option to view the current search in pick mode (from either notmuch-show.el or notmuch.el) a defcustom group for notmuch-pick. make notmuch-show (the main function) return the buffer it uses. This

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

2012-02-12 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

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

2012-02-12 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 03/11] cli: add --thread= option to notmuch-show

2012-02-12 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 04/11] emacs: add entry to notmuch-pick from notmuch-hello.el

2012-02-12 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 06/11] emacs: add extra parameters option to notmuch-query-get-threads

2012-02-12 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 10/11] emacs: notmuch-show.el just show the actual matching messages

2012-02-12 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 11/11] emacs: add notmuch-pick itself

2012-02-12 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