aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-12-14 10:07:35 -0500
committerGravatar David Bremner <bremner@debian.org>2012-12-15 13:47:49 -0400
commitd0ebd6cb53610f0d06014a07cfa405dbe1547430 (patch)
tree6ff2ddd982fd9fe2def252f67b25a8dcc88ec122 /contrib
parent327f30a8f398570a51f9c49cc092c4a95c53ef39 (diff)
emacs: Fix bug in resynchronizing after a JSON parse error
Previously, if the input stream consisted only of an error message, notmuch-json-begin-compound would signal a (wrong-type-argument number-or-marker-p nil) error when reaching the end of the error message. This happened because notmuch-json-scan-to-value would think that it reached a value and put the parser into the 'value state. Even after notmuch-json-begin-compound signaled the syntax error, the parser would remain in this state and when the resynchronization logic reached the end of the buffer, the parser would fail because the 'value state indicates that characters are available. This fixes this problem by restoring the parser's previous state if it encounters a syntax error.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions