[PATCH v7 3/3] Use the structured formatters in notmuch-search.c.

2012-07-20 Thread Tomi Ollila
On Fri, Jul 20 2012, craven at gmx.net wrote: > From: > > This patch switches from the current ad-hoc printer to the structured > formatters in sprinter.h, sprinter-text.c and sprinter-json.c. > > The JSON tests are changed slightly in order to make them PASS for the > new structured output

[PATCH v7 1/3] Add support for structured output formatters.

2012-07-20 Thread Tomi Ollila
On Fri, Jul 20 2012, craven at gmx.net wrote: > From: > > This patch adds a new struct type sprinter_t, which is used for > structured formatting, e.g. JSON or S-Expressions. The structure printer > is heavily based on code from Austin Clements > (id:87d34hsdx8.fsf at awakening.csail.mit.edu). >

[PATCH v7 1/3] Add support for structured output formatters.

2012-07-20 Thread cra...@gmx.net
> I presume the patch 3/3 emails > > id:"1342766173-1344-4-git-send-email-craven at gmx.net" > id:"1342772624-23329-1-git-send-email-craven at gmx.net" > > have identical content ? Yes, they do, there was a problem with the Content-Type header having ^P^P, so I re-sent correctly, but the actual

bug in parsing?

2012-07-20 Thread Austin Clements
On Fri, 15 Jun 2012, David Belohrad wrote: > Dear all, > > recently I got an email from matplotlib list, which fails to parse in > notmuch-saved-search-unread. > It looks like this: > > Yest. 21:04 [3/5] Jesse Rosenthal, Tomi Ollila [PATCHv2] emacs: derive > correct timestamp in FCC unique

[PATCH v7 3/3] Use the structured formatters in notmuch-search.c.

2012-07-20 Thread cra...@gmx.net
From: This patch switches from the current ad-hoc printer to the structured formatters in sprinter.h, sprinter-text.c and sprinter-json.c. The JSON tests are changed slightly in order to make them PASS for the new structured output formatter. The text tests pass without

[PATCH v7 3/3] Use the structured formatters in notmuch-search.c.

2012-07-20 Thread cra...@gmx.net
From: This patch switches from the current ad-hoc printer to the structured formatters in sprinter.h, sprinter-text.c and sprinter-json.c. The JSON tests are changed slightly in order to make them PASS for the new structured output formatter. The text tests pass without

[PATCH v7 2/3] Add structured output formatter for JSON and plain text (but don't use them yet).

2012-07-20 Thread cra...@gmx.net
From: Using the new structured printer support in sprinter.h, implement sprinter_json_create, which returns a new JSON structured output formatter. The formatter prints output similar to the existing JSON, but with differences in whitespace (mostly newlines, --output=summary

notmuch-reply: Structured Formatters

2012-07-20 Thread cra...@gmx.net
Currently there is no easy way to add support for different structured formatters (like JSON). For example, adding support for S-Expressions would result in code duplication. This patch series amends the situation by introducing structured formatters, which allow different implementations of

[PATCH 3/7] go: Allow notmuch objects to be garbage collected

2012-07-20 Thread Austin Clements
Quoth Adrien Bustany on Jul 19 at 9:25 pm: > Le 18/07/2012 23:40, Austin Clements a ?crit : > >This is subtle enough that I think it deserves a comment in the source > >code explaining that tracking the talloc owner reference, combined > >with the fact that Go finalizers are run in dependency

notmuch-reply: Structured Formatters

2012-07-20 Thread craven
Currently there is no easy way to add support for different structured formatters (like JSON). For example, adding support for S-Expressions would result in code duplication. This patch series amends the situation by introducing structured formatters, which allow different implementations of

[PATCH v7 3/3] Use the structured formatters in notmuch-search.c.

2012-07-20 Thread craven
From: cra...@gmx.net This patch switches from the current ad-hoc printer to the structured formatters in sprinter.h, sprinter-text.c and sprinter-json.c. The JSON tests are changed slightly in order to make them PASS for the new structured output formatter. The text tests pass without

[PATCH v7 2/3] Add structured output formatter for JSON and plain text (but don't use them yet).

2012-07-20 Thread craven
From: cra...@gmx.net Using the new structured printer support in sprinter.h, implement sprinter_json_create, which returns a new JSON structured output formatter. The formatter prints output similar to the existing JSON, but with differences in whitespace (mostly newlines, --output=summary prints

[PATCH v7 1/3] Add support for structured output formatters.

2012-07-20 Thread craven
From: cra...@gmx.net This patch adds a new struct type sprinter_t, which is used for structured formatting, e.g. JSON or S-Expressions. The structure printer is heavily based on code from Austin Clements (id:87d34hsdx8@awakening.csail.mit.edu). It includes the following functions: /*

[PATCH v7 3/3] Use the structured formatters in notmuch-search.c.

2012-07-20 Thread craven
From: cra...@gmx.net This patch switches from the current ad-hoc printer to the structured formatters in sprinter.h, sprinter-text.c and sprinter-json.c. The JSON tests are changed slightly in order to make them PASS for the new structured output formatter. The text tests pass without

Re: [PATCH v7 1/3] Add support for structured output formatters.

2012-07-20 Thread Tomi Ollila
On Fri, Jul 20 2012, cra...@gmx.net wrote: From: cra...@gmx.net This patch adds a new struct type sprinter_t, which is used for structured formatting, e.g. JSON or S-Expressions. The structure printer is heavily based on code from Austin Clements (id:87d34hsdx8@awakening.csail.mit.edu).

Re: [PATCH v7 1/3] Add support for structured output formatters.

2012-07-20 Thread craven
I presume the patch 3/3 emails id:1342766173-1344-4-git-send-email-cra...@gmx.net id:1342772624-23329-1-git-send-email-cra...@gmx.net have identical content ? Yes, they do, there was a problem with the Content-Type header having ^P^P, so I re-sent correctly, but the actual e-mail content

Re: [PATCH v7 3/3] Use the structured formatters in notmuch-search.c.

2012-07-20 Thread Tomi Ollila
On Fri, Jul 20 2012, cra...@gmx.net wrote: From: cra...@gmx.net This patch switches from the current ad-hoc printer to the structured formatters in sprinter.h, sprinter-text.c and sprinter-json.c. The JSON tests are changed slightly in order to make them PASS for the new structured output

Re: bug in parsing?

2012-07-20 Thread Austin Clements
On Fri, 15 Jun 2012, David Belohrad da...@belohrad.ch wrote: Dear all, recently I got an email from matplotlib list, which fails to parse in notmuch-saved-search-unread. It looks like this: Yest. 21:04 [3/5] Jesse Rosenthal, Tomi Ollila [PATCHv2] emacs: derive correct timestamp in FCC