[PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-22 Thread Peter Feigl
On Sat, 21 Jan 2012 15:12:57 -0800, Jameson Graef Rollins wrote: > On Sat, 21 Jan 2012 22:16:08 +0100, Peter Feigl wrote: > > The output routines have been rewritten so that logical structure > > (objects with key/value pairs, arrays, strings and numbers) are > > written instead of ad-hoc

[PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-22 Thread Peter Feigl
On Sat, 21 Jan 2012 17:04:07 -0500, Austin Clements wrote: > Quoth Peter Feigl on Jan 21 at 10:16 pm: > I think this is a great idea and I'm a fan of having an S-expression > format, but I also think there's a much easier and more general way to > structure this. > > In particular, I don't think

[PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Austin Clements
Quoth Peter Feigl on Jan 22 at 12:17 am: > On Sat, 21 Jan 2012 17:04:07 -0500, Austin Clements > wrote: > > Quoth Peter Feigl on Jan 21 at 10:16 pm: > > I think this is a great idea and I'm a fan of having an S-expression > > format, but I also think there's a much easier and more general way to

[PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Austin Clements
Quoth Peter Feigl on Jan 21 at 10:16 pm: > The output routines have been rewritten so that logical structure > (objects with key/value pairs, arrays, strings and numbers) are > written instead of ad-hoc printfs. This allows for easier adaptation > of other output formats, as only the routines that

[PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Jameson Graef Rollins
On Sun, 22 Jan 2012 00:21:37 +0100, "Peter Feigl" wrote: > What kind of documentation should I include? Update the man page to describe the new format and command line options. > The test suite should work fine, *if* it compares EXPECTED and OUTPUT > not character-by-character, but rather by

[PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Jameson Graef Rollins
On Sat, 21 Jan 2012 22:16:08 +0100, Peter Feigl wrote: > The output routines have been rewritten so that logical structure > (objects with key/value pairs, arrays, strings and numbers) are > written instead of ad-hoc printfs. This allows for easier adaptation > of other output formats, as only

[PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Peter Feigl
The output routines have been rewritten so that logical structure (objects with key/value pairs, arrays, strings and numbers) are written instead of ad-hoc printfs. This allows for easier adaptation of other output formats, as only the routines that start/end an object etc. have to be rewritten.

Re: [PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Austin Clements
Quoth Peter Feigl on Jan 21 at 10:16 pm: The output routines have been rewritten so that logical structure (objects with key/value pairs, arrays, strings and numbers) are written instead of ad-hoc printfs. This allows for easier adaptation of other output formats, as only the routines that

Re: [PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Jameson Graef Rollins
On Sat, 21 Jan 2012 22:16:08 +0100, Peter Feigl cra...@gmx.net wrote: The output routines have been rewritten so that logical structure (objects with key/value pairs, arrays, strings and numbers) are written instead of ad-hoc printfs. This allows for easier adaptation of other output formats,

Re: [PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Peter Feigl
On Sat, 21 Jan 2012 17:04:07 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Peter Feigl on Jan 21 at 10:16 pm: I think this is a great idea and I'm a fan of having an S-expression format, but I also think there's a much easier and more general way to structure this. In particular, I

Re: [PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Peter Feigl
On Sat, 21 Jan 2012 15:12:57 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: On Sat, 21 Jan 2012 22:16:08 +0100, Peter Feigl cra...@gmx.net wrote: The output routines have been rewritten so that logical structure (objects with key/value pairs, arrays, strings and numbers) are

Re: [PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Austin Clements
Quoth Peter Feigl on Jan 22 at 12:17 am: On Sat, 21 Jan 2012 17:04:07 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Peter Feigl on Jan 21 at 10:16 pm: I think this is a great idea and I'm a fan of having an S-expression format, but I also think there's a much easier and more general

Re: [PATCH] rewriting notmuch-search for structured output to make other output formats easier

2012-01-21 Thread Jameson Graef Rollins
On Sun, 22 Jan 2012 00:21:37 +0100, Peter Feigl cra...@gmx.net wrote: What kind of documentation should I include? Update the man page to describe the new format and command line options. The test suite should work fine, *if* it compares EXPECTED and OUTPUT not character-by-character, but