X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=a09f4ab8f27bb3a8e5684ef3b8f524bc4c32b7f0;hb=b1129d905af5643ffec6a19d6cb1cf76abf9d9ce;hp=cc706924a7efcb9ab9e209c59f4fa641372eb7eb;hpb=5500868bd96f9461a230d16839591cb7ebc035df;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index cc706924..a09f4ab8 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -703,6 +703,7 @@ current buffer, if possible." (when (mm-inlinable-p handle) (set-buffer display-buffer) (mm-display-part handle) + (plist-put part :undisplayer (mm-handle-undisplayer handle)) t)))))) ;;; Generic Utilities @@ -1029,7 +1030,7 @@ status." (defvar-local notmuch-show-process-crypto nil) -(defun notmuch--run-show (search-terms) +(defun notmuch--run-show (search-terms &optional duplicate) "Return a list of threads of messages matching SEARCH-TERMS. A thread is a forest or list of trees. A tree is a two element @@ -1038,6 +1039,8 @@ is a possibly empty forest of replies." (let ((args '("show" "--format=sexp" "--format-version=5"))) (when notmuch-show-process-crypto (setq args (append args '("--decrypt=true")))) + (when duplicate + (setq args (append args (list (format "--duplicate=%d" duplicate))))) (setq args (append args search-terms)) (apply #'notmuch-call-notmuch-sexp args)))