mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
emacs: `notmuch-mua-new-forward-message' is not interactive
`notmuch-mua-new-forward-message' must be called from a buffer containing a raw RFC2822-formatted message to forward. Hence, it's intended to be invoked programmatically through something else that sets up this buffer (like `notmuch-show-forward-message'), not interactively. Remove its interactive specification and update the documentation string to mention the requirements on the current buffer.
This commit is contained in:
parent
cc8c407dfc
commit
0a84aaec6f
1 changed files with 2 additions and 1 deletions
|
@ -327,9 +327,10 @@ the From: address first."
|
||||||
(defun notmuch-mua-new-forward-message (&optional prompt-for-sender)
|
(defun notmuch-mua-new-forward-message (&optional prompt-for-sender)
|
||||||
"Invoke the notmuch message forwarding window.
|
"Invoke the notmuch message forwarding window.
|
||||||
|
|
||||||
|
The current buffer must contain an RFC2822 message to forward.
|
||||||
|
|
||||||
If PROMPT-FOR-SENDER is non-nil, the user will be prompted for
|
If PROMPT-FOR-SENDER is non-nil, the user will be prompted for
|
||||||
the From: address first."
|
the From: address first."
|
||||||
(interactive "P")
|
|
||||||
(if (or prompt-for-sender notmuch-always-prompt-for-sender)
|
(if (or prompt-for-sender notmuch-always-prompt-for-sender)
|
||||||
(let* ((sender (notmuch-mua-prompt-for-sender))
|
(let* ((sender (notmuch-mua-prompt-for-sender))
|
||||||
(address-components (mail-extract-address-components sender))
|
(address-components (mail-extract-address-components sender))
|
||||||
|
|
Loading…
Reference in a new issue