mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 11:58:10 +01:00
emacs: convert to use format-version 3
Keeping the emacs interface running old format-versions makes it impossible to test new format-versions or deprecate old ones.
This commit is contained in:
parent
0aba694c11
commit
b6f87c3085
8 changed files with 9 additions and 8 deletions
|
@ -317,7 +317,7 @@ execution, CALLBACK is called when harvesting finishes."
|
||||||
(when config-query
|
(when config-query
|
||||||
(format " and (%s)" config-query)))
|
(format " and (%s)" config-query)))
|
||||||
from-or-to-me-query))
|
from-or-to-me-query))
|
||||||
(args `("address" "--format=sexp" "--format-version=2"
|
(args `("address" "--format=sexp" "--format-version=3"
|
||||||
,(if sent "--output=recipients" "--output=sender")
|
,(if sent "--output=recipients" "--output=sender")
|
||||||
"--deduplicate=address"
|
"--deduplicate=address"
|
||||||
,query)))
|
,query)))
|
||||||
|
|
|
@ -176,7 +176,7 @@ mutiple parts get a header."
|
||||||
(unless (bolp) (insert "\n")))
|
(unless (bolp) (insert "\n")))
|
||||||
|
|
||||||
(defun notmuch-mua-reply (query-string &optional sender reply-all)
|
(defun notmuch-mua-reply (query-string &optional sender reply-all)
|
||||||
(let ((args '("reply" "--format=sexp" "--format-version=1"))
|
(let ((args '("reply" "--format=sexp" "--format-version=3"))
|
||||||
(process-crypto notmuch-show-process-crypto)
|
(process-crypto notmuch-show-process-crypto)
|
||||||
reply
|
reply
|
||||||
original)
|
original)
|
||||||
|
|
|
@ -30,7 +30,7 @@ A thread is a forest or list of trees. A tree is a two element
|
||||||
list where the first element is a message, and the second element
|
list where the first element is a message, and the second element
|
||||||
is a possibly empty forest of replies.
|
is a possibly empty forest of replies.
|
||||||
"
|
"
|
||||||
(let ((args '("show" "--format=sexp" "--format-version=1")))
|
(let ((args '("show" "--format=sexp" "--format-version=3")))
|
||||||
(if notmuch-show-process-crypto
|
(if notmuch-show-process-crypto
|
||||||
(setq args (append args '("--decrypt"))))
|
(setq args (append args '("--decrypt"))))
|
||||||
(setq args (append args search-terms))
|
(setq args (append args search-terms))
|
||||||
|
|
|
@ -1677,9 +1677,10 @@ current thread."
|
||||||
|
|
||||||
;; dme: Would it make sense to use a macro for many of these?
|
;; dme: Would it make sense to use a macro for many of these?
|
||||||
|
|
||||||
|
;; XXX TODO figure out what to do about multiple filenames
|
||||||
(defun notmuch-show-get-filename ()
|
(defun notmuch-show-get-filename ()
|
||||||
"Return the filename of the current message."
|
"Return the filename of the current message."
|
||||||
(notmuch-show-get-prop :filename))
|
(car (notmuch-show-get-prop :filename)))
|
||||||
|
|
||||||
(defun notmuch-show-get-header (header &optional props)
|
(defun notmuch-show-get-header (header &optional props)
|
||||||
"Return the named header of the current message, if any."
|
"Return the named header of the current message, if any."
|
||||||
|
|
|
@ -917,7 +917,7 @@ the same as for the function notmuch-tree."
|
||||||
(notmuch-tag-clear-cache)
|
(notmuch-tag-clear-cache)
|
||||||
(let ((proc (notmuch-start-notmuch
|
(let ((proc (notmuch-start-notmuch
|
||||||
"notmuch-tree" (current-buffer) #'notmuch-tree-process-sentinel
|
"notmuch-tree" (current-buffer) #'notmuch-tree-process-sentinel
|
||||||
"show" "--body=false" "--format=sexp" "--format-version=2"
|
"show" "--body=false" "--format=sexp" "--format-version=3"
|
||||||
message-arg search-args))
|
message-arg search-args))
|
||||||
;; Use a scratch buffer to accumulate partial output.
|
;; Use a scratch buffer to accumulate partial output.
|
||||||
;; This buffer will be killed by the sentinel, which
|
;; This buffer will be killed by the sentinel, which
|
||||||
|
|
|
@ -994,7 +994,7 @@ the configured default sort order."
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(let ((proc (notmuch-start-notmuch
|
(let ((proc (notmuch-start-notmuch
|
||||||
"notmuch-search" buffer #'notmuch-search-process-sentinel
|
"notmuch-search" buffer #'notmuch-search-process-sentinel
|
||||||
"search" "--format=sexp" "--format-version=2"
|
"search" "--format=sexp" "--format-version=3"
|
||||||
(if oldest-first
|
(if oldest-first
|
||||||
"--sort=oldest-first"
|
"--sort=oldest-first"
|
||||||
"--sort=newest-first")
|
"--sort=newest-first")
|
||||||
|
|
|
@ -1014,7 +1014,7 @@ YYY/notmuch_fail exited with status 1 (see *Notmuch errors* for more details)
|
||||||
=== ERROR ===
|
=== ERROR ===
|
||||||
[XXX]
|
[XXX]
|
||||||
YYY/notmuch_fail exited with status 1
|
YYY/notmuch_fail exited with status 1
|
||||||
command: YYY/notmuch_fail search --format\=sexp --format-version\=2 --sort\=newest-first tag\:inbox
|
command: YYY/notmuch_fail search --format\=sexp --format-version\=3 --sort\=newest-first tag\:inbox
|
||||||
exit status: 1"
|
exit status: 1"
|
||||||
|
|
||||||
test_begin_subtest "Search handles subprocess warnings"
|
test_begin_subtest "Search handles subprocess warnings"
|
||||||
|
|
|
@ -191,7 +191,7 @@ This is an error (see *Notmuch errors* for more details)
|
||||||
=== ERROR ===
|
=== ERROR ===
|
||||||
[XXX]
|
[XXX]
|
||||||
This is an error
|
This is an error
|
||||||
command: YYY/notmuch_fail show --format\\=sexp --format-version\\=1 --exclude\\=false \\' \\* \\'
|
command: YYY/notmuch_fail show --format\\=sexp --format-version\\=3 --exclude\\=false \\' \\* \\'
|
||||||
exit status: 1
|
exit status: 1
|
||||||
stderr:
|
stderr:
|
||||||
This is an error
|
This is an error
|
||||||
|
|
Loading…
Reference in a new issue