unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: <craven@gmx.net>
To: notmuch@notmuchmail.org
Subject: [PATCH v6 0/3] notmuch-reply: Structured Formatters
Date: Mon, 16 Jul 2012 10:34:59 +0200	[thread overview]
Message-ID: <1342427702-23316-1-git-send-email-craven@gmx.net> (raw)
In-Reply-To: <20120714020954.GD31670@mit.edu>

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 structures like
lists, maps, strings and numbers.

The new code in sprinter.h and sprinter-json.c can be used instead of
the current ad-hoc output in all parts of notmuch, a patch for
notmuch-search.c is included.

In a later patch, all other parts of notmuch should be adapted to the
structured formatters, and the creation of formatters should be
centralised (to make adding new formatters easier).

A "structured" formatter is provided for notmuch-search that prints the
current text format. This removes almost all the special-casing from
notmuch-search.c.

  reply	other threads:[~2012-07-17  6:04 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 10:02 [PATCH] Added better support for multiple structured output formats craven
2012-07-10 10:48 ` [PATCH] FIXED: " craven
2012-07-10 12:45   ` Mark Walters
2012-07-10 13:30     ` [PATCH] v2: " craven
2012-07-10 17:34       ` Mark Walters
2012-07-10 19:13       ` Austin Clements
2012-07-11  8:26         ` [PATCH v3 0/3] Structured Formatters craven
2012-07-11  8:26           ` [PATCH v3 1/3] Add support for structured output formatters craven
2012-07-11  8:26           ` [PATCH v3 2/3] Adding a structured formatter for JSON craven
2012-07-11  8:26           ` [PATCH v3 3/3] Use the JSON structure printer in notmuch-search craven
2012-07-13  8:11         ` [PATCH v5 0/3] notmuch-reply: Structured Formatters Peter Feigl
2012-07-13  8:11           ` [PATCH v5 1/3] Add support for structured output formatters Peter Feigl
2012-07-14  1:46             ` Austin Clements
2012-07-13  8:11           ` [PATCH v5 2/3] Add structured output formatter for JSON and text Peter Feigl
2012-07-14  2:02             ` Austin Clements
2012-07-13  8:11           ` [PATCH v5 3/3] Use the structured formatters in notmuch-search.c Peter Feigl
2012-07-14  2:09             ` Austin Clements
2012-07-16  8:34               ` craven [this message]
2012-07-16  8:35                 ` [PATCH v6 1/3] Add support for structured output formatters craven
2012-07-16  8:35                 ` [PATCH v6 2/3] Add structured output formatter for JSON and plain text craven
2012-07-18 19:48                   ` Austin Clements
2012-07-20  6:36                     ` notmuch-reply: Structured Formatters craven
2012-07-20  6:36                       ` [PATCH v7 1/3] Add support for structured output formatters craven
2012-07-20  9:09                         ` Tomi Ollila
2012-07-20  9:13                           ` craven
2012-07-20  6:36                       ` [PATCH v7 2/3] Add structured output formatter for JSON and plain text (but don't use them yet) craven
2012-07-22 16:08                         ` Austin Clements
2012-07-20  6:36                       ` =?\x10\x10?q?=5BPATCH=20v7=203/3=5D=20Use=20the=20structured=20formatters=20in=20notmuch-search=2Ec=2E?= craven
2012-07-20  8:23                         ` [PATCH v7 3/3] Use the structured formatters in notmuch-search.c craven
2012-07-20  9:14                         ` Tomi Ollila
2012-07-22 16:13                       ` notmuch-reply: Structured Formatters Austin Clements
2012-07-16  8:35                 ` [PATCH v6 3/3] Use the structured formatters in notmuch-search.c craven
2012-07-18 19:56                   ` Austin Clements
2012-07-13  8:17           ` Proof of concept: S-Expression format craven
2012-07-10 17:04     ` [PATCH] FIXED: Added better support for multiple structured output formats Jameson Graef Rollins
2012-07-10 17:28       ` Austin Clements
2012-07-10 17:40         ` Jameson Graef Rollins
2012-07-10 22:45       ` deprecating legacy text output David Bremner
2012-07-10 16:58   ` [PATCH] FIXED: Added better support for multiple structured output formats Jameson Graef Rollins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342427702-23316-1-git-send-email-craven@gmx.net \
    --to=craven@gmx.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).