X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=b0d639bfc5334b1ac5347e021fae5cedc7956dd6;hb=a982773dfb6e8efe1bcee90e888f2560ad006fb5;hp=371e62df95bd9d30b7020768ca6215122dd474d7;hpb=3b63856568a8b0153801386fcc2030b228a5f99d;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 371e62df..b0d639bf 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1431,6 +1431,7 @@ reset based on the original query." (define-key map (kbd "") 'notmuch-show-previous-button) (define-key map (kbd "TAB") 'notmuch-show-next-button) (define-key map "f" 'notmuch-show-forward-message) + (define-key map "F" 'notmuch-show-forward-open-messages) (define-key map "l" 'notmuch-show-filter-thread) (define-key map "r" 'notmuch-show-reply-sender) (define-key map "R" 'notmuch-show-reply) @@ -1858,6 +1859,16 @@ any effects from previous calls to (with-current-notmuch-show-message (notmuch-mua-new-forward-message prompt-for-sender))) +(put 'notmuch-show-forward-open-messages 'notmuch-prefix-doc + "... and prompt for sender") +(defun notmuch-show-forward-open-messages (&optional prompt-for-sender) + "Forward the currently open messages." + (interactive "P") + (let ((open-messages (notmuch-show-get-message-ids-for-open-messages))) + (unless open-messages + (error "No open messages to forward.")) + (notmuch-mua-new-forward-messages open-messages prompt-for-sender))) + (defun notmuch-show-next-message (&optional pop-at-end) "Show the next message.