X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=2dcef98167c9e0e1162d515bdf8829de687099f0;hb=f563f5ab660f2bb1a76aee203413219784e6ea9d;hp=619337b4461ffd1b2e2bb479e0eeee4c3ecf7228;hpb=d273263d16433344cac77f54862c77535bf51e6a;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 619337b4..2dcef981 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1135,6 +1135,16 @@ is t, hide the part initially and show the button." (make-variable-buffer-local 'notmuch-show-previous-subject) (defun notmuch-show-choose-duplicate (duplicate) + "Display message file with index DUPLICATE in place of the current one. + +Message file indices are based on the order the files are +discovered by `notmuch new' (and hence are somewhat arbitrary), +and correspond to those passed to the \"\\-\\-duplicate\" arguments +to the CLI. + +When called interactively, the function will prompt for the index +of the file to display. An error will be signaled if the index +is out of range." (interactive "Nduplicate: ") (let ((count (length (notmuch-show-get-prop :filename)))) (when (or (> duplicate count)