From: William Casarin Date: Sat, 4 Apr 2020 20:41:41 +0000 (-0700) Subject: emacs/tree: add notmuch-tree-archive-thread-then-exit X-Git-Tag: archive/debian/0.30_rc0-1~61 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=86f3cc265a89d939facb3d29fec9b2d451500836 emacs/tree: add notmuch-tree-archive-thread-then-exit This is the notmuch-tree version of notmuch-show-archive-thread-then-exit Signed-off-by: William Casarin --- diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 02bdd1ee..470cd517 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -617,6 +617,12 @@ message will be \"unarchived\", i.e. the tag changes in (notmuch-tree-archive-message unarchive) (notmuch-tree-next-matching-message)) +(defun notmuch-tree-archive-thread-then-exit () + "Archive all messages in the current buffer, then exit notmuch-tree." + (interactive) + (notmuch-tree-archive-thread) + (notmuch-tree-quit t)) + (defun notmuch-tree-archive-message-then-next-or-exit () "Archive current message, then show next open message in current thread.