[PATCH v5 1/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v5 0/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
More documentation/customize improvements.

[PATCH v4 1/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
On Sat, 09 Jul 2011 01:00:03 +0200, Michal Sojka wrote: > Yes, this is definitely a good idea. My last comment to the patch is > that I do not like the use of plists in customization interface. It is > especially weird in the case of boolean options like hide-if-empty, > because they actually have

Re: Preventing the user shooting themself in the foot

2011-07-09 Thread Daniel Schoepe
On Sat, 09 Jul 2011 10:09:09 -0700, Neeum Zawan wrote: > 3. One thing I *sorely* would like: Keybindings to go to the >next/previous messages *in the query*. This would be my primary way >of dealing with emails. If only one message in the middle of the >thread matches the query, then I

[PATCH v5 1/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v5 2/2] emacs: Tests for user-defined sections

2011-07-09 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |4 ++- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|4 ++- .../notmuch-hello-section-

[PATCH v5 0/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
More documentation/customize improvements. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH v4 1/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
On Sat, 09 Jul 2011 01:00:03 +0200, Michal Sojka wrote: > Yes, this is definitely a good idea. My last comment to the patch is > that I do not like the use of plists in customization interface. It is > especially weird in the case of boolean options like hide-if-empty, > because they actually have

[PATCH v4 1/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
On Sat, 09 Jul 2011 01:00:03 +0200, Michal Sojka wrote: > Yes, this is definitely a good idea. My last comment to the patch is > that I do not like the use of plists in customization interface. It is > especially weird in the case of boolean options like hide-if-empty, > because they actually have

[PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-09 Thread Daniel Schoepe
On Fri, 08 Jul 2011 23:23:40 +0200, Michal Sojka wrote: > OK. I changed my mind. I thought that the approach with 'notmuch > search-tags QEURY' followed by 'notmuch count tag:XXX and QUERY' for > returned tags would be faster then 'notmuch search-tags' followed by > 'notmuch count tag:XXX and QUER

[PATCH v2 3/3] emacs: Test for thread-outlining

2011-07-08 Thread Daniel Schoepe
--- test/emacs |7 +++ .../notmuch-show-thread-outline|7 +++ 2 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline diff --git a/test/emacs b/test/ema

[PATCH v2 2/3] emacs: Add thread-outline functionality

2011-07-08 Thread Daniel Schoepe
This patch adds some functionality to display the outline for threads displayed by notmuch-show. The entries in the outline buffer are links to the corresponding message in the notmuch-show buffer. --- emacs/notmuch-lib.el | 12 +++ emacs/notmuch-show.el | 195

[PATCH v2 1/3] emacs: Document notmuch-show-get-message-properties

2011-07-08 Thread Daniel Schoepe
--- emacs/notmuch-show.el |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index f96743b..262addb 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -999,6 +999,12 @@ All currently available key bindings:

[PATCH v2 0/3] emacs: Document notmuch-show-get-message-properties

2011-07-08 Thread Daniel Schoepe
This version fixes the issues mentioned by Austin and highlights the currently displayed message in the outline buffer. My previous issues with 'point-entered and 'point-left were caused by linum-mode, so don't enable it for notmuch-show buffers. I haven't had time yet to implement a more sophist

Re: [PATCH v4 1/2] emacs: User-defined sections in notmuch-hello

2011-07-08 Thread Daniel Schoepe
On Sat, 09 Jul 2011 01:00:03 +0200, Michal Sojka wrote: > Yes, this is definitely a good idea. My last comment to the patch is > that I do not like the use of plists in customization interface. It is > especially weird in the case of boolean options like hide-if-empty, > because they actually have

Re: [PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-08 Thread Daniel Schoepe
On Fri, 08 Jul 2011 23:23:40 +0200, Michal Sojka wrote: > OK. I changed my mind. I thought that the approach with 'notmuch > search-tags QEURY' followed by 'notmuch count tag:XXX and QUERY' for > returned tags would be faster then 'notmuch search-tags' followed by > 'notmuch count tag:XXX and QUER

[PATCH v2 3/3] emacs: Test for thread-outlining

2011-07-08 Thread Daniel Schoepe
--- test/emacs |7 +++ .../notmuch-show-thread-outline|7 +++ 2 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline diff --git a/test/emacs b/test/ema

[PATCH v2 2/3] emacs: Add thread-outline functionality

2011-07-08 Thread Daniel Schoepe
This patch adds some functionality to display the outline for threads displayed by notmuch-show. The entries in the outline buffer are links to the corresponding message in the notmuch-show buffer. --- emacs/notmuch-lib.el | 12 +++ emacs/notmuch-show.el | 195

[PATCH v2 1/3] emacs: Document notmuch-show-get-message-properties

2011-07-08 Thread Daniel Schoepe
--- emacs/notmuch-show.el |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index f96743b..262addb 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -999,6 +999,12 @@ All currently available key bindings:

[PATCH v2 0/3] emacs: Document notmuch-show-get-message-properties

2011-07-08 Thread Daniel Schoepe
This version fixes the issues mentioned by Austin and highlights the currently displayed message in the outline buffer. My previous issues with 'point-entered and 'point-left were caused by linum-mode, so don't enable it for notmuch-show buffers. I haven't had time yet to implement a more sophist

[PATCH v4 2/2] emacs: Tests for user-defined sections

2011-07-08 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |5 ++- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|4 ++- .../notmuch-hello-section-

[PATCH v4 1/2] emacs: User-defined sections in notmuch-hello

2011-07-08 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v4 0/2] emacs: User-defined sections in notmuch-hello

2011-07-08 Thread Daniel Schoepe
Fourth time's the charm. Some more improvements by Michal Sojka, thanks. A few more opinions about whether or not to leave in the different filters for queries and counts, would also be very much appreciated.

priorities for 0.7

2011-07-07 Thread Daniel Schoepe
On Wed, 06 Jul 2011 09:55:00 -0700, Jameson Graef Rollins wrote: > - emacs: notmuch-hello improvements (Daniel Schoepe, Michal Sojka, > Dmitry Kurochkin, Pieter Praet) > > These guys have been working on various improvements to the > notmuch-hello page. I'll let t

[PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-07 Thread Daniel Schoepe
On Thu, 07 Jul 2011 17:23:13 +0200, Michal Sojka wrote: > This wouldn't work for me. My all-tags section covers almost entire > screen and finding non-zero entries there is not very convenient. I find > much more useful to have a section saying: "Hey, you have unread > messages only for these thre

[PATCH v4 1/2] emacs: User-defined sections in notmuch-hello

2011-07-07 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v4 2/2] emacs: Tests for user-defined sections

2011-07-07 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |5 ++- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|4 ++- .../notmuch-hello-section-

[PATCH v4 0/2] emacs: User-defined sections in notmuch-hello

2011-07-07 Thread Daniel Schoepe
Fourth time's the charm. Some more improvements by Michal Sojka, thanks. A few more opinions about whether or not to leave in the different filters for queries and counts, would also be very much appreciated. ___ notmuch mailing list notmuch@notmuchmail

Re: priorities for 0.7

2011-07-07 Thread Daniel Schoepe
On Wed, 06 Jul 2011 09:55:00 -0700, Jameson Graef Rollins wrote: > - emacs: notmuch-hello improvements (Daniel Schoepe, Michal Sojka, > Dmitry Kurochkin, Pieter Praet) > > These guys have been working on various improvements to the > notmuch-hello page. I'll let t

Re: [PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-07 Thread Daniel Schoepe
On Thu, 07 Jul 2011 17:23:13 +0200, Michal Sojka wrote: > This wouldn't work for me. My all-tags section covers almost entire > screen and finding non-zero entries there is not very convenient. I find > much more useful to have a section saying: "Hey, you have unread > messages only for these thre

[PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-07-07 Thread Daniel Schoepe
Hi Dmitry, On Thu, 07 Jul 2011 11:16:03 +0400, Dmitry Kurochkin wrote: > Why do we need to remove `goto-address-mode' overlays if it is not > enabled ((goto-address-mode t) is below is removed)? > [..] > `goto-address-mode' creates buttons not only for email addresses but > also for URLs. Do we

Re: [PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-07-07 Thread Daniel Schoepe
Hi Dmitry, On Thu, 07 Jul 2011 11:16:03 +0400, Dmitry Kurochkin wrote: > Why do we need to remove `goto-address-mode' overlays if it is not > enabled ((goto-address-mode t) is below is removed)? > [..] > `goto-address-mode' creates buttons not only for email addresses but > also for URLs. Do we

notmuch Digest, Vol 20, Issue 57

2011-07-06 Thread Daniel Schoepe
On Wed, 6 Jul 2011 20:31:03 +0200, Sander Boer wrote: > If IMAP supports tags, is that not a big deal ? > I mean, having a converging point for all tags, is that not like the holy > grail in this field ? One problem is that maildir doesn't support tags, so we would have to switch to a format that

[PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-07-06 Thread Daniel Schoepe
This fixes the minor annoyance that message ids were parsed as mail addresses by goto-address-mode in notmuch-show buffers. --- emacs/notmuch-show.el | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

[PATCH v2] emacs: Turn id:"" elements into buttons for

2011-07-06 Thread Daniel Schoepe
I forgot to (require 'goto-addr), which caused a warning about goto-address-mail-face.

[PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-06 Thread Daniel Schoepe
On Wed, 06 Jul 2011 13:34:13 +0200, Michal Sojka wrote: > > -(defcustom notmuch-hello-tag-list-make-query nil > > - "Function or string to generate queries for the all tags list. > > I'm not sure it is a good thing to remove customizations that are > included in a released version. Some users ma

Re: notmuch Digest, Vol 20, Issue 57

2011-07-06 Thread Daniel Schoepe
On Wed, 6 Jul 2011 20:31:03 +0200, Sander Boer wrote: > If IMAP supports tags, is that not a big deal ? > I mean, having a converging point for all tags, is that not like the holy > grail in this field ? One problem is that maildir doesn't support tags, so we would have to switch to a format that

[PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-07-06 Thread Daniel Schoepe
This fixes the minor annoyance that message ids were parsed as mail addresses by goto-address-mode in notmuch-show buffers. --- emacs/notmuch-show.el | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

[PATCH v2] emacs: Turn id:"" elements into buttons for

2011-07-06 Thread Daniel Schoepe
I forgot to (require 'goto-addr), which caused a warning about goto-address-mail-face. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-06 Thread Daniel Schoepe
On Wed, 06 Jul 2011 13:34:13 +0200, Michal Sojka wrote: > > -(defcustom notmuch-hello-tag-list-make-query nil > > - "Function or string to generate queries for the all tags list. > > I'm not sure it is a good thing to remove customizations that are > included in a released version. Some users ma

[PATCH] emacs: Turn id:"" elements into buttons for notmuch searches

2011-07-05 Thread Daniel Schoepe
This fixes the minor annoyance that message ids were parsed as mail addresses by goto-address-mode in notmuch-show buffers. --- emacs/notmuch-show.el | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

[PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
On Tue, 05 Jul 2011 16:09:14 +0200, Michal Sojka wrote: > I wanted to say that it might be useful to have the similar options for > saved searches. For example, what I do in my notmuch-hello-insert-inbox > is to take the saved searches and filter them by tag:inbox. I guess that > if there is a pos

[PATCH v3 2/2] emacs: Tests for user-defined sections

2011-07-05 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |3 +- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|3 +- .../notmuch-hello-section-be

[PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v3 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
This version incorporates the changes suggested by Michal Sojka; thanks for your help with this, Michal.

[PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
On Tue, 05 Jul 2011 16:09:14 +0200, Michal Sojka wrote: > I'm talking about notmuch-hello-section. It seems it is not possible > easily specify there your own function. You can either select a > predefined section or "Customized section", which is in fact "Customized > all-tags section". So I prop

[PATCH] emacs: Turn id:"" elements into buttons for notmuch searches

2011-07-05 Thread Daniel Schoepe
This fixes the minor annoyance that message ids were parsed as mail addresses by goto-address-mode in notmuch-show buffers. --- emacs/notmuch-show.el | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

[PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
On Tue, 05 Jul 2011 02:00:33 +0200, Michal Sojka wrote: > First, the customization interface for the custom sections (not the > predefined ones) is very confusing. I was not able to use it at all. > Instead I hacked the source code (see below) to add my section to the > notmuch-hello-sections list

Re: [PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
On Tue, 05 Jul 2011 16:09:14 +0200, Michal Sojka wrote: > I wanted to say that it might be useful to have the similar options for > saved searches. For example, what I do in my notmuch-hello-insert-inbox > is to take the saved searches and filter them by tag:inbox. I guess that > if there is a pos

[PATCH v3 1/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v3 2/2] emacs: Tests for user-defined sections

2011-07-05 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |3 +- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|3 +- .../notmuch-hello-section-be

[PATCH v3 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
This version incorporates the changes suggested by Michal Sojka; thanks for your help with this, Michal. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
On Tue, 05 Jul 2011 16:09:14 +0200, Michal Sojka wrote: > I'm talking about notmuch-hello-section. It seems it is not possible > easily specify there your own function. You can either select a > predefined section or "Customized section", which is in fact "Customized > all-tags section". So I prop

Re: [PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-07-05 Thread Daniel Schoepe
On Tue, 05 Jul 2011 02:00:33 +0200, Michal Sojka wrote: > First, the customization interface for the custom sections (not the > predefined ones) is very confusing. I was not able to use it at all. > Instead I hacked the source code (see below) to add my section to the > notmuch-hello-sections list

[PATCH 2/2] emacs: Tests for user-defined sections

2011-07-02 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |3 +- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|3 +- .../notmuch-hello-section-be

[PATCH 1/2] emacs: User-defined sections in notmuch-hello

2011-07-02 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v2 0/2] emacs: User-defined sections in notmuch-hello

2011-07-02 Thread Daniel Schoepe
Rebased against current master and some improvements for using customize.

[PATCH 2/2] emacs: Tests for user-defined sections

2011-07-02 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |3 +- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|3 +- .../notmuch-hello-section-be

[PATCH 1/2] emacs: User-defined sections in notmuch-hello

2011-07-02 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH v2 0/2] emacs: User-defined sections in notmuch-hello

2011-07-02 Thread Daniel Schoepe
Rebased against current master and some improvements for using customize. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH 2/2] emacs: Tests for user-defined sections

2011-06-29 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |3 +- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|3 +- .../notmuch-hello-section-be

[PATCH 1/2] emacs: User-defined sections in notmuch-hello

2011-06-29 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-06-29 Thread Daniel Schoepe
Unfortunately the customize-interface for more customized entries in notmuch-hello-sections looks a bit weird, but I couldn't figure out how to get rid of the empty lines produced by generating the lambda expression needed. To avoid unnecessary complexity in the code this patch removes aligning al

[PATCH 1/2] emacs: User-defined sections in notmuch-hello

2011-06-29 Thread Daniel Schoepe
This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag. This is done by specifying a list of functions that wil

[PATCH 2/2] emacs: Tests for user-defined sections

2011-06-29 Thread Daniel Schoepe
--- test/emacs | 37 test/emacs.expected-output/notmuch-hello |3 +- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches|3 +- .../notmuch-hello-section-be

[PATCH 0/2] emacs: User-defined sections in notmuch-hello

2011-06-29 Thread Daniel Schoepe
Unfortunately the customize-interface for more customized entries in notmuch-hello-sections looks a bit weird, but I couldn't figure out how to get rid of the empty lines produced by generating the lambda expression needed. To avoid unnecessary complexity in the code this patch removes aligning al

[PATCH 3/3] emacs: Test for thread-outlining

2011-06-13 Thread Daniel Schoepe
--- test/emacs |5 + .../notmuch-show-thread-outline|7 +++ 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline diff --git a/test/emacs b/test/emacs

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

2011-06-13 Thread Daniel Schoepe
This patch adds some functionality to display the outline for threads displayed by notmuch-show. The entries in the outline buffer are links to the corresponding message in the notmuch-show buffer. --- emacs/notmuch-lib.el |7 +++ emacs/notmuch-show.el | 144

[PATCH 1/3] emacs: Document notmuch-show-get-message-properties

2011-06-13 Thread Daniel Schoepe
--- emacs/notmuch-show.el |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index fb91c83..aecd35f 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1017,6 +1017,12 @@ All currently available key bindings:

[PATCH] emacs: thread outlining

2011-06-13 Thread Daniel Schoepe
Unfortunately, this implementation does not yet highlight the currently selected message in the notmuch-show buffer in the corresponding outline buffer. The point-entered and point-left text properties sound like they should be useful for implementing this, but behaved somewhat erratically for me a

[PATCH 3/3] emacs: Test for thread-outlining

2011-06-12 Thread Daniel Schoepe
--- test/emacs |5 + .../notmuch-show-thread-outline|7 +++ 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline diff --git a/test/emacs b/test/emacs

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

2011-06-12 Thread Daniel Schoepe
This patch adds some functionality to display the outline for threads displayed by notmuch-show. The entries in the outline buffer are links to the corresponding message in the notmuch-show buffer. --- emacs/notmuch-lib.el |7 +++ emacs/notmuch-show.el | 144

[PATCH 1/3] emacs: Document notmuch-show-get-message-properties

2011-06-12 Thread Daniel Schoepe
--- emacs/notmuch-show.el |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index fb91c83..aecd35f 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1017,6 +1017,12 @@ All currently available key bindings:

[PATCH] emacs: thread outlining

2011-06-12 Thread Daniel Schoepe
Unfortunately, this implementation does not yet highlight the currently selected message in the notmuch-show buffer in the corresponding outline buffer. The point-entered and point-left text properties sound like they should be useful for implementing this, but behaved somewhat erratically for me a

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-06 Thread Daniel Schoepe
I accidentally left a, now unnecessary, defvar in the patch from one of the previous attempts, here is the updated version (thanks Austin for noticing). -- next part -- A non-text attachment was scrubbed... Name: 0001-emacs-Tab-completion-for-notmuch-search-and-notmuch-.pat

Re: [PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-06 Thread Daniel Schoepe
I accidentally left a, now unnecessary, defvar in the patch from one of the previous attempts, here is the updated version (thanks Austin for noticing). From f3bc7376edc66e947d8fdf5931a9aa697b9be5cf Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Sat, 4 Jun 2011 14:17:44 +0200 Subject

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-05 Thread Daniel Schoepe
On Sat, 4 Jun 2011 17:55:24 -0400, Austin Clements wrote: > Oh, sorry, I wasn't suggesting setq'ing a global. I agree that that's > really ugly. Rather, something like > > (defun notmuch-query-completions (string) > ... as you have it now ...) > > (defun notmuch-read-query (prompt) > (let

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
Sorry, forgot to actually test notmuch-search entirely with this change and not just the completion. -- next part -- A non-text attachment was scrubbed... Name: 0001-emacs-Tab-completion-for-notmuch-search-and-notmuch-.patch Type: text/x-diff Size: 3281 bytes Desc: not avail

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
On Sat, 4 Jun 2011 11:32:15 -0400, Austin Clements wrote: > Dynamic scoping is obnoxious, but I think programmed completion is > steeped in the assumption that you'll use it. This code would be much > simpler if notmuch-query-completions took only `string' and used the > dynamically-bound all-com

Re: [PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
is how some of > the standard completing read functions appear to work: Ah right, I forgot that using macros from cl is fine even in library code. From 7768f41ac44213c5e2c1dc3b0f13e3edf1d97a26 Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Sat, 4 Jun 2011 14:17:44 +0200 Subject: [PATCH]

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
This patch adds completion with in the minibuffer for notmuch-search and notmuch-search-filter. --- emacs/notmuch.el | 33 +++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3311fe8..7b63dc9 100644 --- a/em

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
This patch adds completion with in the minibuffer for notmuch-search and notmuch-search-filter. --- emacs/notmuch.el | 33 +++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3311fe8..49a82be 100644 --- a/em

Re: [PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
Sorry, forgot to actually test notmuch-search entirely with this change and not just the completion. From cb172efc1dea2507566db587f960c073373e0159 Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Sat, 4 Jun 2011 14:17:44 +0200 Subject: [PATCH] emacs: Tab completion for notmuch-search and

Re: [PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
of doing the completion: Ideally I'd like to just specify a list of completions for individual words and have emacs handle separating the input string into individual words, but I couldn't find any options to accomplish that. An updated patch is attached. From 70642aecbf63428d9bcedc108c5

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
This patch adds completion with in the minibuffer for notmuch-search and notmuch-search-filter. --- emacs/notmuch.el | 33 +++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3311fe8..7b63dc9 100644 --- a/em

[PATCH] emacs: Tab completion for notmuch-search and notmuch-search-filter

2011-06-04 Thread Daniel Schoepe
This patch adds completion with in the minibuffer for notmuch-search and notmuch-search-filter. --- emacs/notmuch.el | 33 +++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3311fe8..49a82be 100644 --- a/em

[PATCH] emacs: User-defined sections in notmuch-hello

2011-06-03 Thread Daniel Schoepe
On Fri, 27 May 2011 20:52:01 +0200, Daniel Schoepe wrote: > I'll also work on some tests for this functionality, (if no one > has big, structural complaints about the code). I rebased my patch against the current master and wrote some tests. -- next part --

Re: [PATCH] emacs: User-defined sections in notmuch-hello

2011-06-03 Thread Daniel Schoepe
On Fri, 27 May 2011 20:52:01 +0200, Daniel Schoepe wrote: > I'll also work on some tests for this functionality, (if no one > has big, structural complaints about the code). I rebased my patch against the current master and wrote some tests. From 42b87fca9b8b2ca5ba6748185dac4e945

[PATCH] emacs: User-defined sections in notmuch-hello

2011-05-27 Thread Daniel Schoepe
Accidentally attached the old file again, sorry for the noise. -- next part -- A non-text attachment was scrubbed... Name: 0001-emacs-User-defined-sections-in-notmuch-hello.patch Type: text/x-diff Size: 20105 bytes Desc: not available URL:

[PATCH] emacs: User-defined sections in notmuch-hello

2011-05-27 Thread Daniel Schoepe
I forgot to run the test suite with the previous patch, which revealed some minor formatting problems, updated patch in the attachment. -- next part -- A non-text attachment was scrubbed... Name: 0001-emacs-User-defined-sections-in-notmuch-hello.patch Type: text/x-diff Size:

[PATCH] emacs: User-defined sections in notmuch-hello

2011-05-27 Thread Daniel Schoepe

Re: [PATCH] emacs: User-defined sections in notmuch-hello

2011-05-27 Thread Daniel Schoepe
Accidentally attached the old file again, sorry for the noise. From cafc93e3364955cab70885fec740fee87bc3248e Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Thu, 26 May 2011 23:03:22 +0200 Subject: [PATCH] emacs: User-defined sections in notmuch-hello This patch allows the user to define

Re: [PATCH] emacs: User-defined sections in notmuch-hello

2011-05-27 Thread Daniel Schoepe
I forgot to run the test suite with the previous patch, which revealed some minor formatting problems, updated patch in the attachment. From bca5a58d7910b6d46a782db787dfe07e2fcf21e1 Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Thu, 26 May 2011 23:03:22 +0200 Subject: [PATCH] emacs: User

[PATCH] emacs: User-defined sections in notmuch-hello

2011-05-27 Thread Daniel Schoepe
l complaints about the code). Cheers, Daniel From bca5a58d7910b6d46a782db787dfe07e2fcf21e1 Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Thu, 26 May 2011 23:03:22 +0200 Subject: [PATCH] emacs: User-defined sections in notmuch-hello This patch allows the user to define various sections that w

[PATCH] emacs: Make the queries used in the all-tags section

2011-05-26 Thread Daniel Schoepe
On Wed, 25 May 2011 18:42:30 -0400, Austin Clements wrote: > 'Doh. That's what I get for not reading the surrounding code. I > misunderstood what your patch was going for and assumed it was what > *I* wanted notmuch to do, which is to show me useful counts (e.g., > unread count), but not to chan

[PATCH] emacs: Make the queries used in the all-tags section

2011-05-25 Thread Daniel Schoepe
On Wed, 25 May 2011 15:11:16 -0400, Austin Clements wrote: > At least in Emacs 23.3.1, it has to be (const :tag "tag:TAG" nil). I > didn't think the order mattered, but the tag didn't display otherwise. > It would also be good to give descriptive tags to the other choices. > > It would be more

[PATCH] emacs: Make the queries used in the all-tags section

2011-05-25 Thread Daniel Schoepe
I accidentally used `filter' in the previous patch which isn't defined by default during runtime, updated version in the attachment. -- next part -- A non-text attachment was scrubbed... Name: 0001-emacs-Make-queries-used-in-the-all-tags-section-conf.patch Type: text/x-diff

[PATCH] emacs: Make the queries used in the all-tags section

2011-05-25 Thread Daniel Schoepe
On Wed, 25 May 2011 10:44:51 -0400, Austin Clements wrote: > May I suggest a slightly different way of looking at this that will > quell my inner parser? Instead of configuring a weird "query > fragment" like "and tag:unread" to be string-concatenated with the tag > query, configure a *filter* qu

Re: [PATCH] emacs: Make the queries used in the all-tags section

2011-05-25 Thread Daniel Schoepe
On Wed, 25 May 2011 18:42:30 -0400, Austin Clements wrote: > 'Doh. That's what I get for not reading the surrounding code. I > misunderstood what your patch was going for and assumed it was what > *I* wanted notmuch to do, which is to show me useful counts (e.g., > unread count), but not to chan

Re: [PATCH] emacs: Make the queries used in the all-tags section

2011-05-25 Thread Daniel Schoepe
(setq list (cdr list))) > (nreverse out))) > > (Why oh why Elisp hasn't just made remove-if and remove-if-not > standard I don't know; they're redefined all over the Elisp code base. > Any everybody's afraid to use cl-seq's remove-if-not because it

<    1   2   3   4   >