Re: [PATCH v2] emacs: add support for stashing the thread id in show view

2012-12-06 Thread Mark Walters
Jani Nikula writes: > Add a prefix argument to notmuch-show-stash-message-id to stash thread > id instead of message id. LGTM +1 Mark > --- > emacs/notmuch-show.el | 14 ++ > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuc

[PATCH] test: Fix UTF-8 JSON tests in Python 3

2012-12-06 Thread Tomi Ollila
On Tue, Dec 04 2012, Austin Clements wrote: > test_expect_equal_json uses json.tool from the system Python. While > Python 2 wasn't picky about the encoding of stdin, Python 3 decodes > stdin strictly according to the environment. Since we set LC_ALL=C > for the tests, Python 3's json.tool was

[PATCH] emacs: add support for stashing the thread id in show view

2012-12-06 Thread Jani Nikula
Add a prefix argument to notmuch-show-stash-message-id to stash thread id instead of message id. --- emacs/notmuch-show.el | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 4d6c014..2245b4f 100644 --- a/emacs/not

[PATCH] emacs: add support for stashing the thread id in show view

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Jani Nikula wrote: > Add a prefix argument to notmuch-show-stash-message-id to stash thread > id instead of message id. > --- > emacs/notmuch-show.el | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuc

[PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > This patch series adds a new output format "sexp" to notmuch-reply, > notmuch-show and notmuch-search. These are useful for the Android mobile > client, Emacs and perhaps other Lisp programs as well. > After the switch to a generic structured output print

[PATCH v5 5/5] Updating man pages for new S-Expression output format.

2012-12-06 Thread Peter Feigl
Add sections about the new S-Expression output format (--format=sexp) to the notmuch-search, notmuch-reply and notmuch-show man pages. --- man/man1/notmuch-reply.1 | 14 ++ man/man1/notmuch-search.1 | 15 --- man/man1/notmuch-show.1 | 36 -

[PATCH v5 4/5] Adding tests for --format=sexp.

2012-12-06 Thread Peter Feigl
Add basic tests, the same as for json, for the S-Expression output format. --- test/notmuch-test | 1 + test/sexp | 48 2 files changed, 49 insertions(+) create mode 100755 test/sexp diff --git a/test/notmuch-test b/test/notmuch-test inde

[PATCH v5 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Peter Feigl
This patch uses the new S-Expression printer in the notmuch CLI (show, search and reply). You can now use --format=sexp for any of them. --- devel/schemata | 8 +++- notmuch-reply.c | 5 + notmuch-search.c | 6 +- notmuch-show.c | 36 4 file

[PATCH v5 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Peter Feigl
All the structured output functions in notmuch-reply and notmuch-show are renamed to a generic name (as they do not contain any json-specific code anyway). This patch is a preparation to actually using the new S-Expression sprinter in notmuch-reply and notmuch-show. --- devel/schemata | 16 +

[PATCH v5 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Peter Feigl
This commit adds a structured output printer for Lisp S-Expressions. Later commits will use this printer in notmuch search, show and reply. The structure is the same as json, but: - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) - maps are written as p-lists: (:key "value" :other-key "oth

[PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Peter Feigl
This patch series adds a new output format "sexp" to notmuch-reply, notmuch-show and notmuch-search. These are useful for the Android mobile client, Emacs and perhaps other Lisp programs as well. After the switch to a generic structured output printer, which was committed some months ago, these pat

[Patch v3b 9/9] tag-util: optimization of tag application

2012-12-06 Thread da...@tethera.net
From: David Bremner The idea is not to bother with restore operations if they don't change the set of tags. This is actually a relatively common case. In order to avoid fancy datastructures, this method is quadratic in the number of tags; at least on my mail database this doesn't seem to be a bi

[Patch v3b 8/9] notmuch-{dump, restore}.1: document new format options

2012-12-06 Thread da...@tethera.net
From: David Bremner More or less arbitrarily, notmuch-dump.1 gets the more detailed description of the format. --- man/man1/notmuch-dump.1| 59 man/man1/notmuch-restore.1 | 59 +++- 2 files changed, 112

[Patch v3b 7/9] test: second set of dump/restore --format=batch-tag tests

2012-12-06 Thread da...@tethera.net
From: David Bremner These one need the completed functionality in notmuch-restore. Fairly exotic tags are tested, but no weird message id's. We test each possible input to autodetection, both explicit (with --format=auto) and implicit (without --format). --- test/dump-restore | 83 +++

[Patch v3b 6/9] test: update dump-restore roundtripping test for batch-tag format

2012-12-06 Thread da...@tethera.net
From: David Bremner Now we can actually round trip these crazy tags and and message ids. hex-xcode is no longer needed as it's built in. --- test/dump-restore | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/dump-restore b/test/dump-restore index b4c80

[Patch v3b 5/9] notmuch-restore: add support for input format 'batch-tag'

2012-12-06 Thread da...@tethera.net
From: David Bremner This can be enabled with the new --format=batch-tag command line option to "notmuch restore". The input must consist of lines of the format: +|- [...] [--] id: Each line is interpreted similarly to "notmuch tag" command line arguments. The delimiter is one or more spaces

[Patch v3b 4/9] tag-util.[ch]: New files for common tagging routines

2012-12-06 Thread da...@tethera.net
From: David Bremner These are meant to be shared between notmuch-tag and notmuch-restore. The bulk of the routines implement a "tag operation list" abstract data type act as a structured representation of a set of tag operations (typically coming from a single tag command or line of input). ---

[Patch v3b 3/9] util: add string-util.[ch]

2012-12-06 Thread da...@tethera.net
From: David Bremner This is to give a home to strtok_len. It's a bit silly to add a header for one routine, but it needs to be shared between several compilation units (or at least that's the most natural design). --- util/Makefile.local |3 ++- util/string-util.c | 34 +++

[Patch v3b 2/9] test: add sanity check for dump --format=batch-tag.

2012-12-06 Thread da...@tethera.net
From: David Bremner It's important this does not rely on restore, since it hasn't been written yet. --- test/dump-restore | 13 + 1 file changed, 13 insertions(+) diff --git a/test/dump-restore b/test/dump-restore index bf31266..b4c807f 100755 --- a/test/dump-restore +++ b/test/du

[Patch v3b 1/9] notmuch-dump: add --format=(batch-tag|sup)

2012-12-06 Thread da...@tethera.net
From: David Bremner sup is the old format, and remains the default, at least until restore is converted to parse this format. Each line of the batch-tag format is modelled on the syntax of notmuch tag: - "notmuch tag" is omitted from the front of the line - The dump format only uses query string

V3b of batch tagging/dump/restore patches

2012-12-06 Thread da...@tethera.net
Here is a second piece of the tagging/dump/restore series. it obsoletes 8 of the patches in the series id:1353792017-31459-1-git-send-email-david at tethera.net [Patch v3b 1/9] notmuch-dump: add --format=(batch-tag|sup) [Patch v3b 3/9] util: add string-util.[ch] [Patch v3b 4/9] tag-util.[

Re: gmail importer script

2012-12-06 Thread Kushal Kumaran
"Jason A. Donenfeld" writes: > Hi folks, > > I wrote a script that imports emails and tags from gmail. It's > resumable and appears to be working reasonably well. I could use some > experienced eyes looking at it, as my first exposure to notmuch was > just a few hours ago. > > http://git.zx2c4.co

Re: [PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Jameson Graef Rollins
On Thu, Dec 06 2012, Peter Feigl wrote: > -/* Any changes to the JSON format should be reflected in the file > - * devel/schemata. */ > +/* Any changes to the JSON or S-Expression format should be > + * reflected in the file devel/schemata. */ Can we just make these comments more

[PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Jameson Graef Rollins
rg/pipermail/notmuch/attachments/20121206/476f6f1d/attachment.pgp>

Re: [PATCH v3 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Jameson Graef Rollins
Hi, Peter. For future reference, I think we prefer to have new versions of patch series in new threads. I think it makes things much easier to keep track of. jamie. On Wed, Dec 05 2012, Peter Feigl wrote: > This patch series adds a new output format "sexp" to notmuch-reply, > notmuch-show and

[PATCH v3 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Jameson Graef Rollins
__ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121206/04a19c82/attachment.pgp>

Re: [PATCH] TODO: date range queries - check

2012-12-06 Thread Jameson Graef Rollins
On Thu, Dec 06 2012, Jani Nikula wrote: > --- > devel/TODO |9 - > 1 file changed, 9 deletions(-) > > diff --git a/devel/TODO b/devel/TODO > index eb757af..277a997 100644 > --- a/devel/TODO > +++ b/devel/TODO > @@ -163,15 +163,6 @@ vs. tag-when-all-files-flagged (* above)). > Add an

[PATCH] TODO: date range queries - check

2012-12-06 Thread Jameson Graef Rollins
or are they documented if they do. jamie. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121206/a1e9ae58/attachment.pgp>

[Patch v3b 9/9] tag-util: optimization of tag application

2012-12-06 Thread david
From: David Bremner The idea is not to bother with restore operations if they don't change the set of tags. This is actually a relatively common case. In order to avoid fancy datastructures, this method is quadratic in the number of tags; at least on my mail database this doesn't seem to be a bi

[Patch v3b 7/9] test: second set of dump/restore --format=batch-tag tests

2012-12-06 Thread david
From: David Bremner These one need the completed functionality in notmuch-restore. Fairly exotic tags are tested, but no weird message id's. We test each possible input to autodetection, both explicit (with --format=auto) and implicit (without --format). --- test/dump-restore | 83 +++

[Patch v3b 5/9] notmuch-restore: add support for input format 'batch-tag'

2012-12-06 Thread david
From: David Bremner This can be enabled with the new --format=batch-tag command line option to "notmuch restore". The input must consist of lines of the format: +|- [...] [--] id: Each line is interpreted similarly to "notmuch tag" command line arguments. The delimiter is one or more spaces

[Patch v3b 8/9] notmuch-{dump, restore}.1: document new format options

2012-12-06 Thread david
From: David Bremner More or less arbitrarily, notmuch-dump.1 gets the more detailed description of the format. --- man/man1/notmuch-dump.1| 59 man/man1/notmuch-restore.1 | 59 +++- 2 files changed, 112

[Patch v3b 4/9] tag-util.[ch]: New files for common tagging routines

2012-12-06 Thread david
From: David Bremner These are meant to be shared between notmuch-tag and notmuch-restore. The bulk of the routines implement a "tag operation list" abstract data type act as a structured representation of a set of tag operations (typically coming from a single tag command or line of input). ---

[Patch v3b 6/9] test: update dump-restore roundtripping test for batch-tag format

2012-12-06 Thread david
From: David Bremner Now we can actually round trip these crazy tags and and message ids. hex-xcode is no longer needed as it's built in. --- test/dump-restore | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/dump-restore b/test/dump-restore index b4c80

[Patch v3b 3/9] util: add string-util.[ch]

2012-12-06 Thread david
From: David Bremner This is to give a home to strtok_len. It's a bit silly to add a header for one routine, but it needs to be shared between several compilation units (or at least that's the most natural design). --- util/Makefile.local |3 ++- util/string-util.c | 34 +++

[Patch v3b 1/9] notmuch-dump: add --format=(batch-tag|sup)

2012-12-06 Thread david
From: David Bremner sup is the old format, and remains the default, at least until restore is converted to parse this format. Each line of the batch-tag format is modelled on the syntax of notmuch tag: - "notmuch tag" is omitted from the front of the line - The dump format only uses query string

[Patch v3b 2/9] test: add sanity check for dump --format=batch-tag.

2012-12-06 Thread david
From: David Bremner It's important this does not rely on restore, since it hasn't been written yet. --- test/dump-restore | 13 + 1 file changed, 13 insertions(+) diff --git a/test/dump-restore b/test/dump-restore index bf31266..b4c807f 100755 --- a/test/dump-restore +++ b/test/du

V3b of batch tagging/dump/restore patches

2012-12-06 Thread david
Here is a second piece of the tagging/dump/restore series. it obsoletes 8 of the patches in the series id:1353792017-31459-1-git-send-email-da...@tethera.net [Patch v3b 1/9] notmuch-dump: add --format=(batch-tag|sup) [Patch v3b 3/9] util: add string-util.[ch] [Patch v3b 4/9] tag-util.[ch]

[PATCH v2] emacs: stash bugfix

2012-12-06 Thread David Bremner
Mark Walters writes: > Currently an attempt to stash a non-existent field (eg cc when not > present) throws an error. Catch this case and give the user a warning > message. pushed, d

[PATCH v2] emacs: show: refresh buffer did not remove overlays

2012-12-06 Thread David Bremner
Mark Walters writes: > Previously refreshing the notmuch show buffer did not remove overlays > which meant that if the user refreshed a message with images the > images would remain and then the new text was added after. pushed, d

[PATCH] NEWS: removal of notmuch-folders

2012-12-06 Thread David Bremner
Jani Nikula writes: > --- > NEWS | 10 ++ > 1 file changed, 10 insertions(+) Pushed, d

[PATCH] Adding parse-time to test/.gitignore

2012-12-06 Thread David Bremner
Peter Feigl writes: > test/parse-time is a binary that is generated when running make > test. It should be ignored by git. pushed, d

[PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC.

2012-12-06 Thread David Bremner
Peter Feigl writes: > /usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined > in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line pushed, d

[PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Tomi Ollila
On Thu, Dec 06 2012, Peter Feigl wrote: > This patch uses the new S-Expression printer in the notmuch CLI (show, > search and reply). You can now use --format=sexp for any of them. > --- > devel/schemata | 8 +++- > notmuch-reply.c | 5 + > notmuch-search.c | 6 +- > notmuch-sh

[PATCH v4 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Tomi Ollila
On Thu, Dec 06 2012, Peter Feigl wrote: > All the structured output functions in notmuch-reply and notmuch-show > are renamed to a generic name (as they do not contain any json-specific > code anyway). This patch is a preparation to actually using the new > S-Expression sprinter in notmuch-reply

[PATCH v4 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Tomi Ollila
On Thu, Dec 06 2012, Peter Feigl wrote: > This commit adds a structured output printer for Lisp > S-Expressions. Later commits will use this printer in notmuch search, > show and reply. > > The structure is the same as json, but: > - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) > - map

gmail importer script

2012-12-06 Thread Jason A. Donenfeld
Hi folks, I wrote a script that imports emails and tags from gmail. It's resumable and appears to be working reasonably well. I could use some experienced eyes looking at it, as my first exposure to notmuch was just a few hours ago. http://git.zx2c4.com/gmail-notmuch/tree/gmail-notmuch.py Thanks

[PATCH v2] emacs: add support for stashing the thread id in show view

2012-12-06 Thread Jani Nikula
Add a prefix argument to notmuch-show-stash-message-id to stash thread id instead of message id. --- emacs/notmuch-show.el | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 4d6c014..658a2be 100644 --- a/emacs/n

[PATCH 1/3] test: fix count test

2012-12-06 Thread Michal Nazarewicz
ext part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121206/ccce459f/attachment.pgp>

Re: [PATCH] emacs: add support for stashing the thread id in show view

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Jani Nikula wrote: > Add a prefix argument to notmuch-show-stash-message-id to stash thread > id instead of message id. > --- > emacs/notmuch-show.el | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuc

[PATCH] TODO: date range queries - check

2012-12-06 Thread Jani Nikula
--- devel/TODO |9 - 1 file changed, 9 deletions(-) diff --git a/devel/TODO b/devel/TODO index eb757af..277a997 100644 --- a/devel/TODO +++ b/devel/TODO @@ -163,15 +163,6 @@ vs. tag-when-all-files-flagged (* above)). Add an interface to accept a "key" and a byte stream, rather than a

[PATCH 2/2] cli: add --format=text0 to notmuch search

2012-12-06 Thread Jani Nikula
Add new format text0, which is otherwise the same as text, but use the null character as separator instead of the newline character. This is similar to find(1) -print0 option, and works together with the xargs(1) -0 option. --- notmuch-search.c | 11 +-- 1 file changed, 9 insertions(+),

[PATCH 1/2] sprinter: add text0 formatter for null character separated text

2012-12-06 Thread Jani Nikula
Same as the text formatter, but with each field separated by a null character rather than a newline character. --- sprinter-text.c | 22 ++ sprinter.h |6 ++ 2 files changed, 28 insertions(+) diff --git a/sprinter-text.c b/sprinter-text.c index 10343be..7779488

Re: [PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > This patch series adds a new output format "sexp" to notmuch-reply, > notmuch-show and notmuch-search. These are useful for the Android mobile > client, Emacs and perhaps other Lisp programs as well. > After the switch to a generic structured output print

Re: [PATCH v2] emacs: stash bugfix

2012-12-06 Thread David Bremner
Mark Walters writes: > Currently an attempt to stash a non-existent field (eg cc when not > present) throws an error. Catch this case and give the user a warning > message. pushed, d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.

Re: [PATCH v2] emacs: show: refresh buffer did not remove overlays

2012-12-06 Thread David Bremner
Mark Walters writes: > Previously refreshing the notmuch show buffer did not remove overlays > which meant that if the user refreshed a message with images the > images would remain and then the new text was added after. pushed, d ___ notmuch mailing

Re: [PATCH] NEWS: removal of notmuch-folders

2012-12-06 Thread David Bremner
Jani Nikula writes: > --- > NEWS | 10 ++ > 1 file changed, 10 insertions(+) Pushed, d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH] Adding parse-time to test/.gitignore

2012-12-06 Thread David Bremner
Peter Feigl writes: > test/parse-time is a binary that is generated when running make > test. It should be ignored by git. pushed, d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC.

2012-12-06 Thread David Bremner
Peter Feigl writes: > /usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined > in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line pushed, d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchma

Re: [PATCH] test: Fix UTF-8 JSON tests in Python 3

2012-12-06 Thread Tomi Ollila
On Tue, Dec 04 2012, Austin Clements wrote: > test_expect_equal_json uses json.tool from the system Python. While > Python 2 wasn't picky about the encoding of stdin, Python 3 decodes > stdin strictly according to the environment. Since we set LC_ALL=C > for the tests, Python 3's json.tool was

[PATCH v5 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Peter Feigl
All the structured output functions in notmuch-reply and notmuch-show are renamed to a generic name (as they do not contain any json-specific code anyway). This patch is a preparation to actually using the new S-Expression sprinter in notmuch-reply and notmuch-show. --- devel/schemata | 16 +

[PATCH v5 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Peter Feigl
This commit adds a structured output printer for Lisp S-Expressions. Later commits will use this printer in notmuch search, show and reply. The structure is the same as json, but: - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) - maps are written as p-lists: (:key "value" :other-key "oth

[PATCH v5 4/5] Adding tests for --format=sexp.

2012-12-06 Thread Peter Feigl
Add basic tests, the same as for json, for the S-Expression output format. --- test/notmuch-test | 1 + test/sexp | 48 2 files changed, 49 insertions(+) create mode 100755 test/sexp diff --git a/test/notmuch-test b/test/notmuch-test inde

[PATCH v5 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Peter Feigl
This patch uses the new S-Expression printer in the notmuch CLI (show, search and reply). You can now use --format=sexp for any of them. --- devel/schemata | 8 +++- notmuch-reply.c | 5 + notmuch-search.c | 6 +- notmuch-show.c | 36 4 file

[PATCH v5 5/5] Updating man pages for new S-Expression output format.

2012-12-06 Thread Peter Feigl
Add sections about the new S-Expression output format (--format=sexp) to the notmuch-search, notmuch-reply and notmuch-show man pages. --- man/man1/notmuch-reply.1 | 14 ++ man/man1/notmuch-search.1 | 15 --- man/man1/notmuch-show.1 | 36 -

[PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Peter Feigl
This patch series adds a new output format "sexp" to notmuch-reply, notmuch-show and notmuch-search. These are useful for the Android mobile client, Emacs and perhaps other Lisp programs as well. After the switch to a generic structured output printer, which was committed some months ago, these pat

[PATCH] emacs: add support for stashing the thread id in show view

2012-12-06 Thread Jani Nikula
Add a prefix argument to notmuch-show-stash-message-id to stash thread id instead of message id. --- emacs/notmuch-show.el | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 4d6c014..2245b4f 100644 --- a/emacs/not

[PATCH v4 5/5] Updating man pages for new S-Expression output format.

2012-12-06 Thread Peter Feigl
Add sections about the new S-Expression output format (--format=sexp) to the notmuch-search, notmuch-reply and notmuch-show man pages. --- man/man1/notmuch-reply.1 | 14 ++ man/man1/notmuch-search.1 | 15 --- man/man1/notmuch-show.1 | 36 -

[PATCH v4 4/5] Adding tests for --format=sexp.

2012-12-06 Thread Peter Feigl
Add basic tests, the same as for json, for the S-Expression output format. --- test/notmuch-test | 1 + test/sexp | 48 2 files changed, 49 insertions(+) create mode 100755 test/sexp diff --git a/test/notmuch-test b/test/notmuch-test inde

[PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Peter Feigl
This patch uses the new S-Expression printer in the notmuch CLI (show, search and reply). You can now use --format=sexp for any of them. --- devel/schemata | 8 +++- notmuch-reply.c | 5 + notmuch-search.c | 6 +- notmuch-show.c | 35 +++ 4 files

[PATCH v4 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Peter Feigl
All the structured output functions in notmuch-reply and notmuch-show are renamed to a generic name (as they do not contain any json-specific code anyway). This patch is a preparation to actually using the new S-Expression sprinter in notmuch-reply and notmuch-show. --- notmuch-client.h | 8 -

[PATCH v4 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Peter Feigl
This commit adds a structured output printer for Lisp S-Expressions. Later commits will use this printer in notmuch search, show and reply. The structure is the same as json, but: - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) - maps are written as p-lists: (:key "value" :other-key "oth

[PATCH v4 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Peter Feigl
This patch series adds a new output format "sexp" to notmuch-reply, notmuch-show and notmuch-search. These are useful for the Android mobile client, Emacs and perhaps other Lisp programs as well. After the switch to a generic structured output printer, which was committed some months ago, these pat

[PATCH v4 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Austin Clements
Just a nit: It would be nice to also replace _json with _sprinter in devel/schemata (those cross-references are always out of date anyway, but might as well try). On Thu, 06 Dec 2012, Peter Feigl wrote: > All the structured output functions in notmuch-reply and notmuch-show > are renamed to a gen

[PATCH v4 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Austin Clements
On Thu, 06 Dec 2012, Peter Feigl wrote: > This commit adds a structured output printer for Lisp > S-Expressions. Later commits will use this printer in notmuch search, > show and reply. > > The structure is the same as json, but: > - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) > - maps

[PATCH v3 5/5] Updating man pages for new S-Expression output format.

2012-12-06 Thread Peter Feigl
Add sections about the new S-Expression output format (--format=sexp) to the notmuch-search, notmuch-reply and notmuch-show man pages. --- man/man1/notmuch-reply.1 | 14 ++ man/man1/notmuch-search.1 | 15 --- man/man1/notmuch-show.1 | 36 -

[PATCH v3 4/5] Adding tests for --format=sexp.

2012-12-06 Thread Peter Feigl
Add basic tests, the same as for json, for the S-Expression output format. --- test/notmuch-test | 1 + test/sexp | 48 2 files changed, 49 insertions(+) create mode 100755 test/sexp diff --git a/test/notmuch-test b/test/notmuch-test inde

[PATCH v3 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Peter Feigl
This patch uses the new S-Expression printer in the notmuch CLI (show, search and reply). You can now use --format=sexp for any of them. --- devel/schemata | 8 +++- notmuch-reply.c | 5 + notmuch-search.c | 6 +- notmuch-show.c | 35 +++ 4 files

[PATCH v3 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Peter Feigl
All the structured output functions in notmuch-reply and notmuch-show are renamed to a generic name (as they do not contain any json-specific code anyway). This patch is a preparation to actually using the new S-Expression sprinter in notmuch-reply and notmuch-show. --- notmuch-client.h | 8 -

[PATCH v3 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Peter Feigl
This commit adds a structured output printer for Lisp S-Expressions. Later commits will use this printer in notmuch search, show and reply. The structure is the same as json, but: - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) - maps are written as p-lists: (:key "value" :other-key "oth

[PATCH v3 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Peter Feigl
This patch series adds a new output format "sexp" to notmuch-reply, notmuch-show and notmuch-search. These are useful for the Android mobile client and perhaps other Lisp programs as well. After the switch to a generic structured output printer, which was committed some months ago, these patches ju

[PATCH v3 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > This patch series adds a new output format "sexp" to notmuch-reply, > notmuch-show and notmuch-search. These are useful for the Android mobile > client and perhaps other Lisp programs as well. > After the switch to a generic structured output printer, whi

[PATCH v3 5/5] Updating man pages for new S-Expression output format.

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > Add sections about the new S-Expression output format (--format=sexp) to > the notmuch-search, notmuch-reply and notmuch-show man pages. > --- > man/man1/notmuch-reply.1 | 14 ++ > man/man1/notmuch-search.1 | 15 --- > man/man1/no

[PATCH v3 4/5] Adding tests for --format=sexp.

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > Add basic tests, the same as for json, for the S-Expression output > format. > --- > test/notmuch-test | 1 + > test/sexp | 48 > 2 files changed, 49 insertions(+) > create mode 100755 test/sexp >

Re: [PATCH v4 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Austin Clements
Just a nit: It would be nice to also replace _json with _sprinter in devel/schemata (those cross-references are always out of date anyway, but might as well try). On Thu, 06 Dec 2012, Peter Feigl wrote: > All the structured output functions in notmuch-reply and notmuch-show > are renamed to a gen

Re: [PATCH v4 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Austin Clements
On Thu, 06 Dec 2012, Peter Feigl wrote: > This commit adds a structured output printer for Lisp > S-Expressions. Later commits will use this printer in notmuch search, > show and reply. > > The structure is the same as json, but: > - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) > - maps

Re: [PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Tomi Ollila
On Thu, Dec 06 2012, Peter Feigl wrote: > This patch uses the new S-Expression printer in the notmuch CLI (show, > search and reply). You can now use --format=sexp for any of them. > --- > devel/schemata | 8 +++- > notmuch-reply.c | 5 + > notmuch-search.c | 6 +- > notmuch-sh

Re: [PATCH v4 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Tomi Ollila
On Thu, Dec 06 2012, Peter Feigl wrote: > All the structured output functions in notmuch-reply and notmuch-show > are renamed to a generic name (as they do not contain any json-specific > code anyway). This patch is a preparation to actually using the new > S-Expression sprinter in notmuch-reply

Re: [PATCH v4 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Tomi Ollila
On Thu, Dec 06 2012, Peter Feigl wrote: > This commit adds a structured output printer for Lisp > S-Expressions. Later commits will use this printer in notmuch search, > show and reply. > > The structure is the same as json, but: > - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) > - map

Re: [PATCH 1/3] test: fix count test

2012-12-06 Thread Michal Nazarewicz
On Wed, Dec 05 2012, Jani Nikula wrote: > diff --git a/test/count b/test/count > index 300b171..ecae40e 100755 > --- a/test/count > +++ b/test/count > @@ -6,6 +6,11 @@ add_email_corpus > > SEARCH="\"*\"" > > +test_begin_subtest "check the query" > +test_expect_equal \ > +"`notmuch count $

[PATCH v4 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show to generic -sprinter functions.

2012-12-06 Thread Peter Feigl
All the structured output functions in notmuch-reply and notmuch-show are renamed to a generic name (as they do not contain any json-specific code anyway). This patch is a preparation to actually using the new S-Expression sprinter in notmuch-reply and notmuch-show. --- notmuch-client.h | 8 -

[PATCH v4 4/5] Adding tests for --format=sexp.

2012-12-06 Thread Peter Feigl
Add basic tests, the same as for json, for the S-Expression output format. --- test/notmuch-test | 1 + test/sexp | 48 2 files changed, 49 insertions(+) create mode 100755 test/sexp diff --git a/test/notmuch-test b/test/notmuch-test inde

[PATCH v4 5/5] Updating man pages for new S-Expression output format.

2012-12-06 Thread Peter Feigl
Add sections about the new S-Expression output format (--format=sexp) to the notmuch-search, notmuch-reply and notmuch-show man pages. --- man/man1/notmuch-reply.1 | 14 ++ man/man1/notmuch-search.1 | 15 --- man/man1/notmuch-show.1 | 36 -

[PATCH v4 1/5] Adding an S-expression structured output printer.

2012-12-06 Thread Peter Feigl
This commit adds a structured output printer for Lisp S-Expressions. Later commits will use this printer in notmuch search, show and reply. The structure is the same as json, but: - arrays are written as lists: ("foo" "bar" "baaz" 1 2 3) - maps are written as p-lists: (:key "value" :other-key "oth

[PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-06 Thread Peter Feigl
This patch uses the new S-Expression printer in the notmuch CLI (show, search and reply). You can now use --format=sexp for any of them. --- devel/schemata | 8 +++- notmuch-reply.c | 5 + notmuch-search.c | 6 +- notmuch-show.c | 35 +++ 4 files

[PATCH v4 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Peter Feigl
This patch series adds a new output format "sexp" to notmuch-reply, notmuch-show and notmuch-search. These are useful for the Android mobile client, Emacs and perhaps other Lisp programs as well. After the switch to a generic structured output printer, which was committed some months ago, these pat

Re: [PATCH v3 0/5] New output format sexp (Lisp S-Expressions)

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > This patch series adds a new output format "sexp" to notmuch-reply, > notmuch-show and notmuch-search. These are useful for the Android mobile > client and perhaps other Lisp programs as well. > After the switch to a generic structured output printer, whi

Re: [PATCH v3 5/5] Updating man pages for new S-Expression output format.

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > Add sections about the new S-Expression output format (--format=sexp) to > the notmuch-search, notmuch-reply and notmuch-show man pages. > --- > man/man1/notmuch-reply.1 | 14 ++ > man/man1/notmuch-search.1 | 15 --- > man/man1/no

Re: [PATCH v3 4/5] Adding tests for --format=sexp.

2012-12-06 Thread Mark Walters
On Thu, 06 Dec 2012, Peter Feigl wrote: > Add basic tests, the same as for json, for the S-Expression output > format. > --- > test/notmuch-test | 1 + > test/sexp | 48 > 2 files changed, 49 insertions(+) > create mode 100755 test/sexp >