[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-08-12 Thread Sebastian Spaeth
On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements wrote: > So what would be a good format? One possibility would be to > NULL-delimit the query part; as distasteful as I find that, this part > of the search output isn't meant for user consumption. Though I fear > this is endemic to the dual ro

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-08-12 Thread Austin Clements
Quoth Sebastian Spaeth on Aug 12 at 10:07 am: > On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements > wrote: > > So what would be a good format? One possibility would be to > > NULL-delimit the query part; as distasteful as I find that, this part > > of the search output isn't meant for user con

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-08-12 Thread Austin Clements
Quoth Sebastian Spaeth on Aug 12 at 10:07 am: > On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements wrote: > > So what would be a good format? One possibility would be to > > NULL-delimit the query part; as distasteful as I find that, this part > > of the search output isn't meant for user consum

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-08-12 Thread Sebastian Spaeth
On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements wrote: > So what would be a good format? One possibility would be to > NULL-delimit the query part; as distasteful as I find that, this part > of the search output isn't meant for user consumption. Though I fear > this is endemic to the dual ro

JSON parsing performance (was Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter')

2011-07-20 Thread Austin Clements
Quoth myself on Jul 13 at 2:57 pm: > Quoth Pieter Praet on Jul 13 at 4:16 pm: > > Jamie Zawinski once said/wrote [1]: > > 'Some people, when confronted with a problem, think "I know, > > I'll use regular expressions." Now they have two problems.' > > > > With this in mind, I set out to get r

JSON parsing performance (was Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter')

2011-07-20 Thread Austin Clements
Quoth myself on Jul 13 at 2:57 pm: > Quoth Pieter Praet on Jul 13 at 4:16 pm: > > Jamie Zawinski once said/wrote [1]: > > 'Some people, when confronted with a problem, think "I know, > > I'll use regular expressions." Now they have two problems.' > > > > With this in mind, I set out to get r

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-20 Thread servilio
What about encoding in notmuch the elements composing the line, print the elements with a separator that would be encoded if it appears in an element, then do the reverse in emacs. One such encoding might be URL-encoding. Servilio

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-19 Thread servilio
What about encoding in notmuch the elements composing the line, print the elements with a separator that would be encoded if it appears in an element, then do the reverse in emacs. One such encoding might be URL-encoding. Servilio ___ notmuch mailing lis

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-16 Thread Pieter Praet
On Wed, 13 Jul 2011 14:57:21 -0400, Austin Clements wrote: > Quoth Pieter Praet on Jul 13 at 4:16 pm: > > On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements > > wrote: > > > Quoth Pieter Praet on Jul 11 at 10:43 pm: > > > > TL;DR: I can haz regex pl0x? > > > > > > Oof, what a pain. I'm happy

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-16 Thread Pieter Praet
On Wed, 13 Jul 2011 14:57:21 -0400, Austin Clements wrote: > Quoth Pieter Praet on Jul 13 at 4:16 pm: > > On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements > > wrote: > > > Quoth Pieter Praet on Jul 11 at 10:43 pm: > > > > TL;DR: I can haz regex pl0x? > > > > > > Oof, what a pain. I'm happy

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-13 Thread Pieter Praet
On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements wrote: > Quoth Pieter Praet on Jul 11 at 10:43 pm: > > TL;DR: I can haz regex pl0x? > > Oof, what a pain. I'm happy to change the output format of search; I > hadn't realized how difficult it would be to parse. In fact, I'm not > sure it's eve

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-13 Thread David Edmondson
* pieter at praet.org [2011-07-13 Wed 15:16] > David, would you mind rebasing it? I'm sorry, I'm not likely to have time to do this.

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-13 Thread Austin Clements
Quoth Pieter Praet on Jul 13 at 4:16 pm: > On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements > wrote: > > Quoth Pieter Praet on Jul 11 at 10:43 pm: > > > TL;DR: I can haz regex pl0x? > > > > Oof, what a pain. I'm happy to change the output format of search; I > > hadn't realized how difficul

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-13 Thread Austin Clements
Quoth Pieter Praet on Jul 13 at 4:16 pm: > On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements wrote: > > Quoth Pieter Praet on Jul 11 at 10:43 pm: > > > TL;DR: I can haz regex pl0x? > > > > Oof, what a pain. I'm happy to change the output format of search; I > > hadn't realized how difficult i

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-13 Thread David Edmondson
* pie...@praet.org [2011-07-13 Wed 15:16] > David, would you mind rebasing it? I'm sorry, I'm not likely to have time to do this. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-13 Thread Pieter Praet
On Mon, 11 Jul 2011 17:05:32 -0400, Austin Clements wrote: > Quoth Pieter Praet on Jul 11 at 10:43 pm: > > TL;DR: I can haz regex pl0x? > > Oof, what a pain. I'm happy to change the output format of search; I > hadn't realized how difficult it would be to parse. In fact, I'm not > sure it's eve

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-11 Thread Pieter Praet
TL;DR: I can haz regex pl0x? I've updated the regex a bit to prevent it from choking on the whole "parens in subject vs. parens around tags vs. parens around matching Message-Id's" deal, but it still causes errors in the search buffer due to the list of Message-Id's being cut off at a seemingly

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-11 Thread Austin Clements
Quoth Pieter Praet on Jul 11 at 10:43 pm: > TL;DR: I can haz regex pl0x? Oof, what a pain. I'm happy to change the output format of search; I hadn't realized how difficult it would be to parse. In fact, I'm not sure it's even parsable by regexp, because the message ID's themselves could contain

Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-11 Thread Austin Clements
Quoth Pieter Praet on Jul 11 at 10:43 pm: > TL;DR: I can haz regex pl0x? Oof, what a pain. I'm happy to change the output format of search; I hadn't realized how difficult it would be to parse. In fact, I'm not sure it's even parsable by regexp, because the message ID's themselves could contain

[PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'

2011-07-11 Thread Pieter Praet
TL;DR: I can haz regex pl0x? I've updated the regex a bit to prevent it from choking on the whole "parens in subject vs. parens around tags vs. parens around matching Message-Id's" deal, but it still causes errors in the search buffer due to the list of Message-Id's being cut off at a seemingly