unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/8] JSON-based search-mode
@ 2012-07-03 22:20 Austin Clements
  2012-07-03 22:20 ` [PATCH 1/8] emacs: Clean up notmuch-search-show-result Austin Clements
                   ` (11 more replies)
  0 siblings, 12 replies; 66+ messages in thread
From: Austin Clements @ 2012-07-03 22:20 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

This patch series replaces the text format parser used for search in
Emacs with a parser for the JSON format.  This should address the
escaping and flexibility problems that have plagued the text format.
Like the text format, it supports incremental output.

Patches 1-4 simply clean up the Emacs search code and could be pushed
before the rest of the series.  Patch 5 switches to the JSON plist
representation internally, but retains the text parser.  This requires
some changes to the text parser to keep things working, but don't get
too hung up on them since it's about to get replaced entirely.  Patch
6 adds a test.

Finally, patches 7 and 8 are the real meat.  Patch 7 introduces a
general incremental JSON parser.  For search, we could probably get
away with a simpler, hacky approach, but an incremental JSON parser is
the type of thing you only want to write once---hacky or not---and it
seems like the type of thing that could be useful elsewhere, too.
It's general enough to support things like incremental show buffer
rendering.

Patch 8 rewrites the search output parser to use the JSON format via
this incremental parser.

^ permalink raw reply	[flat|nested] 66+ messages in thread

end of thread, other threads:[~2012-08-03  1:00 UTC | newest]

Thread overview: 66+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-03 22:20 [PATCH 0/8] JSON-based search-mode Austin Clements
2012-07-03 22:20 ` [PATCH 1/8] emacs: Clean up notmuch-search-show-result Austin Clements
2012-07-04  7:53   ` Mark Walters
2012-07-04 16:22     ` Austin Clements
2012-07-04 16:31       ` Tomi Ollila
2012-07-04 20:47   ` Mark Walters
2012-07-04 21:00     ` Austin Clements
2012-07-03 22:20 ` [PATCH 2/8] emacs: Separate search line parsing and display Austin Clements
2012-07-03 22:20 ` [PATCH 3/8] emacs: Move search-target logic to `notmuch-search-show-result' Austin Clements
2012-07-04  8:34   ` Mark Walters
2012-07-04 16:17     ` Austin Clements
2012-07-03 22:20 ` [PATCH 4/8] emacs: Helper for reporting search parsing errors Austin Clements
2012-07-04  8:41   ` Mark Walters
2012-07-03 22:20 ` [PATCH 5/8] emacs: Pass plist to `notmuch-search-show-result' Austin Clements
2012-07-03 22:20 ` [PATCH 6/8] test: New test for incremental search output parsing Austin Clements
2012-07-03 22:20 ` [PATCH 7/8] emacs: Implement an incremental JSON parser Austin Clements
2012-07-05  8:30   ` Mark Walters
2012-07-05 18:36     ` Austin Clements
2012-07-03 22:20 ` [PATCH 8/8] emacs: Switch from text to JSON format for search results Austin Clements
2012-07-05  8:37   ` Mark Walters
2012-07-05 18:58     ` Austin Clements
2012-07-04 16:37 ` [PATCH 0/8] JSON-based search-mode Tomi Ollila
2012-07-05 20:52 ` [PATCH v2 0/9] " Austin Clements
2012-07-05 20:52   ` [PATCH v2 1/9] emacs: Clean up notmuch-search-show-result Austin Clements
2012-07-05 20:52   ` [PATCH v2 2/9] emacs: Separate search line parsing and display Austin Clements
2012-07-05 20:52   ` [PATCH v2 3/9] emacs: Helper for reporting search parsing errors Austin Clements
2012-07-05 20:52   ` [PATCH v2 4/9] emacs: Move search-target logic to `notmuch-search-show-result' Austin Clements
2012-07-05 20:52   ` [PATCH v2 5/9] emacs: Pass plist " Austin Clements
2012-07-05 20:52   ` [PATCH v2 6/9] test: New test for incremental search output parsing Austin Clements
2012-07-05 20:52   ` [PATCH v2 7/9] emacs: Implement an incremental JSON parser Austin Clements
2012-07-05 20:52   ` [PATCH v2 8/9] emacs: Switch from text to JSON format for search results Austin Clements
2012-07-05 20:52   ` [PATCH v2 9/9] News for JSON-based search Austin Clements
2012-07-05 21:44   ` [PATCH v2 0/9] JSON-based search-mode Mark Walters
2012-07-06  0:29     ` Austin Clements
2012-07-07 16:27       ` Mark Walters
2012-07-09 21:42 ` [PATCH v3 " Austin Clements
2012-07-09 21:42   ` [PATCH v3 1/9] emacs: Clean up notmuch-search-show-result Austin Clements
2012-07-13  3:14     ` David Bremner
2012-07-09 21:42   ` [PATCH v3 2/9] emacs: Separate search line parsing and display Austin Clements
2012-07-09 21:42   ` [PATCH v3 3/9] emacs: Helper for reporting search parsing errors Austin Clements
2012-07-09 21:42   ` [PATCH v3 4/9] emacs: Move search-target logic to `notmuch-search-show-result' Austin Clements
2012-07-09 21:42   ` [PATCH v3 5/9] emacs: Pass plist " Austin Clements
2012-07-09 21:42   ` [PATCH v3 6/9] test: New test for incremental search output parsing Austin Clements
2012-07-09 21:42   ` [PATCH v3 7/9] emacs: Implement an incremental JSON parser Austin Clements
2012-07-09 21:42   ` [PATCH v3 8/9] emacs: Switch from text to JSON format for search results Austin Clements
2012-07-09 21:42   ` [PATCH v3 9/9] News for JSON-based search Austin Clements
2012-07-11  6:55   ` [PATCH v3 0/9] JSON-based search-mode Mark Walters
2012-07-11  8:48   ` Tomi Ollila
2012-07-21 17:37 ` [PATCH v4 0/8] emacs: JSON-based search cleanups Austin Clements
2012-07-21 17:37   ` [PATCH v4 1/8] emacs: Record thread search result object in a text property Austin Clements
2012-07-21 17:37   ` [PATCH v4 2/8] emacs: Use text properties instead of overlays for tag coloring Austin Clements
2012-07-21 17:37   ` [PATCH v4 3/8] emacs: Update tags by rewriting the search result line in place Austin Clements
2012-07-21 17:37   ` [PATCH v4 4/8] emacs: Use result text properties for search result iteration Austin Clements
2012-07-21 17:37   ` [PATCH v4 5/8] emacs: Replace other search text properties with result property Austin Clements
2012-07-21 17:37   ` [PATCH v4 6/8] emacs: Allow custom tags formatting Austin Clements
2012-07-21 17:37   ` [PATCH v4 7/8] emacs: Fix navigation of multi-line search result formats Austin Clements
2012-08-02  6:51     ` Jani Nikula
2012-08-02  7:19       ` [PATCH] emacs: fix a bug introduced by the recent search cleanups Mark Walters
2012-08-02  7:59         ` Jani Nikula
2012-08-02 14:22         ` Austin Clements
2012-08-03  1:00         ` David Bremner
2012-07-21 17:37   ` [PATCH v4 8/8] News for " Austin Clements
2012-07-21 17:56   ` [PATCH v4 0/8] emacs: JSON-based " Austin Clements
2012-07-22 15:27   ` Mark Walters
2012-07-22 18:45   ` Jameson Graef Rollins
2012-07-24 12:34   ` David Bremner

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).