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

2011-05-27 Thread Daniel Kahn Gillmor
On 05/26/2011 06:04 PM, Carl Worth wrote: > 2. The hello screen is now lying a bit by saying "all tags". > >Perhaps if the user has the notmuch-hello-hide-tags variable set to >non-nil the text might change somewhat? I'm not sure to what exactly. maybe "all non-hidden tags" ?

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

2011-05-26 Thread Carl Worth
On Wed, 25 May 2011 23:21:54 +0200, Daniel Schoepe wrote: > I incorporated most of you recommendations in the attached patch. Looks good, thanks! I've pushed this out now. I only have two suggestions: 1. Could you please add some basic testing for this? The existing notmuch-hello tests

[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

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

2011-05-26 Thread Austin Clements
On May 25, 2011 7:21 PM, "Daniel Schoepe" wrote: > > 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

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

2011-05-26 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

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

2011-05-26 Thread Carl Worth
On Wed, 25 May 2011 23:21:54 +0200, Daniel Schoepe daniel.scho...@googlemail.com wrote: I incorporated most of you recommendations in the attached patch. Looks good, thanks! I've pushed this out now. I only have two suggestions: 1. Could you please add some basic testing for this? The

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

2011-05-26 Thread Daniel Kahn Gillmor
On 05/26/2011 06:04 PM, Carl Worth wrote: 2. The hello screen is now lying a bit by saying all tags. Perhaps if the user has the notmuch-hello-hide-tags variable set to non-nil the text might change somewhat? I'm not sure to what exactly. maybe all non-hidden tags ? --dkg

[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:

[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*

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

2011-05-25 Thread Austin Clements
On Wed, May 25, 2011 at 5:21 PM, Daniel Schoepe wrote: > On Wed, 25 May 2011 15:11:16 -0400, Austin Clements > wrote: >> So, perhaps something like >> >> (defcustom notmuch-hello-tag-list-counts nil >> ? "Method for generating counts displayed in the all tags list. >> >> This variable controls

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

2011-05-25 Thread Carl Worth
On Thu, 26 May 2011 01:21:17 +0200, Daniel Schoepe wrote: > Since the main difference between those sections is the clear visual > distinction, it might be an option to provide the user with functions to > easily declare new sections for the hello screen, where this sort of > thing is

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

2011-05-25 Thread Austin Clements
On Wed, May 25, 2011 at 1:56 PM, Daniel Schoepe wrote: > I accidentally used `filter' in the previous patch which isn't defined > by default during runtime, updated version in the attachment. Cool. My inner parser is happy. A few comments on the code: > +(defcustom

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

2011-05-25 Thread Daniel Schoepe
On Wed, 25 May 2011 00:10:43 -0400, Austin Clements wrote: > Out of curiosity, what use cases do you envision for this? So far > I've only heard two, both of which seem like great ideas, but neither > of which require such a heavy-handed solution: displaying unread > counts for tags rather than

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

2011-05-25 Thread Austin Clements
On Wed, May 25, 2011 at 6:04 AM, Daniel Schoepe wrote: > On Wed, 25 May 2011 00:10:43 -0400, Austin Clements > wrote: >> Out of curiosity, what use cases do you envision for this? ?So far >> I've only heard two, both of which seem like great ideas, but neither >> of which require such a

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

2011-05-25 Thread Austin Clements
Out of curiosity, what use cases do you envision for this? So far I've only heard two, both of which seem like great ideas, but neither of which require such a heavy-handed solution: displaying unread counts for tags rather than total counts, and hiding unused tags. I would argue that we

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

2011-05-25 Thread Daniel Schoepe
On Tue, 24 May 2011 13:39:44 -0700, Carl Worth wrote: > This seems like a useful feature, but perhaps it's a little too general? > > I'm imagining a user wanting to use this functionality but not knowing > anything about writing an emacs-lisp function. For such a user, this > variable won't

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

2011-05-25 Thread Daniel Schoepe
On Wed, 25 May 2011 00:10:43 -0400, Austin Clements amdra...@mit.edu wrote: Out of curiosity, what use cases do you envision for this? So far I've only heard two, both of which seem like great ideas, but neither of which require such a heavy-handed solution: displaying unread counts for tags

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

2011-05-25 Thread Austin Clements
On Wed, May 25, 2011 at 6:04 AM, Daniel Schoepe daniel.scho...@googlemail.com wrote: On Wed, 25 May 2011 00:10:43 -0400, Austin Clements amdra...@mit.edu wrote: Out of curiosity, what use cases do you envision for this?  So far I've only heard two, both of which seem like great ideas, but

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

2011-05-25 Thread Daniel Schoepe
, 20 May 2011 00:53:50 +0200 Subject: [PATCH] emacs: Make queries used in the all-tags section configurable This patch adds a customization variable that controls what queries are used to construct the all-tags section in notmuch-hello. It allows the user to specify a function to construct

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

2011-05-25 Thread Daniel Schoepe
Subject: [PATCH] emacs: Make queries used in the all-tags section configurable This patch adds a customization variable that controls what queries are used to construct the all-tags section in notmuch-hello. It allows the user to specify a function to construct the query given a tag or a string

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

2011-05-25 Thread Austin Clements
On Wed, May 25, 2011 at 1:56 PM, Daniel Schoepe daniel.scho...@googlemail.com wrote: I accidentally used `filter' in the previous patch which isn't defined by default during runtime, updated version in the attachment. Cool. My inner parser is happy. A few comments on the code: +(defcustom

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

2011-05-25 Thread Daniel Schoepe
without thinking about performance. I incorporated most of you recommendations in the attached patch. From 2056a455cdec6b980426552b8dcd7055f6cd0805 Mon Sep 17 00:00:00 2001 From: Daniel Schoepe daniel.scho...@googlemail.com Date: Fri, 20 May 2011 00:53:50 +0200 Subject: [PATCH] emacs: Make queries used

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

2011-05-25 Thread Austin Clements
On Wed, May 25, 2011 at 5:21 PM, Daniel Schoepe daniel.scho...@googlemail.com wrote: On Wed, 25 May 2011 15:11:16 -0400, Austin Clements amdra...@mit.edu wrote: So, perhaps something like (defcustom notmuch-hello-tag-list-counts nil   Method for generating counts displayed in the all tags

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 amdra...@mit.edu 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),

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

2011-05-25 Thread Carl Worth
On Thu, 26 May 2011 01:21:17 +0200, Daniel Schoepe daniel.scho...@googlemail.com wrote: Since the main difference between those sections is the clear visual distinction, it might be an option to provide the user with functions to easily declare new sections for the hello screen, where this

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

2011-05-25 Thread Austin Clements
On May 25, 2011 7:21 PM, Daniel Schoepe daniel.scho...@googlemail.com wrote: On Wed, 25 May 2011 18:42:30 -0400, Austin Clements amdra...@mit.edu 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*

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

2011-05-24 Thread Carl Worth
On Tue, 24 May 2011 23:01:16 +0200, Daniel Schoepe wrote: > Another option would be to also allow various symbols like 'unread (meaning > "tag:TAG and tag:unread") for "popular" queries in addition to a > function. Or, for a case like this the variable could accept a simple string to append:

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

2011-05-24 Thread Carl Worth
On Fri, 20 May 2011 01:18:35 +0200, Daniel Schoepe wrote: > From the commit message: > > emacs: Make queries used in the all-tags section configurable > > This patch adds a customization variable that controls what queries > are used to construct the all-tags section in

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

2011-05-24 Thread Carl Worth
On Fri, 20 May 2011 01:18:35 +0200, Daniel Schoepe daniel.scho...@googlemail.com wrote: From the commit message: emacs: Make queries used in the all-tags section configurable This patch adds a customization variable that controls what queries are used to construct the

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

2011-05-24 Thread Daniel Schoepe
On Tue, 24 May 2011 13:39:44 -0700, Carl Worth cwo...@cworth.org wrote: This seems like a useful feature, but perhaps it's a little too general? I'm imagining a user wanting to use this functionality but not knowing anything about writing an emacs-lisp function. For such a user, this

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

2011-05-24 Thread Austin Clements
Out of curiosity, what use cases do you envision for this? So far I've only heard two, both of which seem like great ideas, but neither of which require such a heavy-handed solution: displaying unread counts for tags rather than total counts, and hiding unused tags. I would argue that we

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

2011-05-20 Thread Daniel Schoepe

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

2011-05-19 Thread Daniel Schoepe
Sep 17 00:00:00 2001 From: Daniel Schoepe daniel.scho...@googlemail.com Date: Fri, 20 May 2011 00:53:50 +0200 Subject: [PATCH] emacs: Make queries used in the all-tags section configurable This patch adds a customization variable that controls what queries are used to construct the all-tags section