]> git.cworth.org Git - obsolete/notmuch-old/commit
emacs: Split out the incremental json parser into its own function
authorMark Walters <markwalters1009@gmail.com>
Sat, 27 Oct 2012 09:34:10 +0000 (10:34 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 28 Oct 2012 12:41:54 +0000 (09:41 -0300)
commit1dd76ab9b681d6f1f59e7f076015e8f12f45f477
tree4c3fda70a95e7196a48feac682ac3a9cf338f087
parent35ebf0b321da2cfcc6489b39cc3f97c8fc0f1d35
emacs: Split out the incremental json parser into its own function

This patch splits out the incremental json parser into its own
function.

It moves the main logic of the parser to happen inside the parse
buffer rather than inside the results buffer, but makes sure all
results and all errors are displayed in the results buffer.

It also changes the local parser variables from being buffer
local to the results buffer to being buffer local to the parse buffer,
and sets them up automatically so the caller does not need to.

Finally to keep the diff small this patch does not fix the whitespace,
nor complete the code movement (these are done in subsequent patches)
but it should contain all the functional changes.
emacs/notmuch.el