emacs: add support for stashing the thread id in show view

Add a prefix argument to notmuch-show-stash-message-id to stash thread
id instead of message id.
This commit is contained in:
Jani Nikula 2012-12-07 00:48:05 +02:00 committed by David Bremner
parent 5c7990f251
commit 11a220a3c1

View file

@ -1905,10 +1905,16 @@ thread from search."
(interactive) (interactive)
(notmuch-common-do-stash (notmuch-show-get-from))) (notmuch-common-do-stash (notmuch-show-get-from)))
(defun notmuch-show-stash-message-id () (defun notmuch-show-stash-message-id (&optional stash-thread-id)
"Copy id: query matching the current message to kill-ring." "Copy id: query matching the current message to kill-ring.
(interactive)
(notmuch-common-do-stash (notmuch-show-get-message-id))) If invoked with a prefix argument (or STASH-THREAD-ID is
non-nil), copy thread: query matching the current thread to
kill-ring."
(interactive "P")
(if stash-thread-id
(notmuch-common-do-stash notmuch-show-thread-id)
(notmuch-common-do-stash (notmuch-show-get-message-id))))
(defun notmuch-show-stash-message-id-stripped () (defun notmuch-show-stash-message-id-stripped ()
"Copy message ID of current message (sans `id:' prefix) to kill-ring." "Copy message ID of current message (sans `id:' prefix) to kill-ring."