diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-12-15 22:17:29 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-12-16 17:22:26 -0400 |
commit | 2cdb3f54f71e5e415a930aaa36452ffe1db04d06 (patch) | |
tree | dd2168a1040091ef787ca1219af2370b4a2e9e08 /emacs/notmuch.el | |
parent | 0df6dcfe7631b032e26c15ebb9627b3699200022 (diff) |
emacs: Use --format-version for search, show, and reply
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r-- | emacs/notmuch.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el index b0fd387e..63387a2d 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -650,6 +650,10 @@ of the result." (insert "Incomplete search results (search process was killed).\n")) (when (eq status 'exit) (insert "End of search results.\n") + ;; For version mismatch, there's no point in + ;; showing the search buffer + (when (or (= exit-status 20) (= exit-status 21)) + (kill-buffer)) (condition-case nil (notmuch-check-async-exit-status proc msg) ;; Suppress the error signal since strange @@ -935,7 +939,7 @@ Other optional parameters are used as follows: (let ((proc (start-process "notmuch-search" buffer notmuch-command "search" - "--format=json" + "--format=json" "--format-version=1" (if oldest-first "--sort=oldest-first" "--sort=newest-first") |