mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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:
parent
5c7990f251
commit
11a220a3c1
1 changed files with 10 additions and 4 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue