diff options
author | Austin Clements <amdragon@MIT.EDU> | 2013-10-05 23:22:43 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-10-07 20:31:16 -0300 |
commit | 0a84aaec6fd9b4e36ae27007779ded355fad2558 (patch) | |
tree | 6b46ce51a6000500cde99ec445cf012f8a5dd337 /emacs | |
parent | cc8c407dfc9b5e50b02692077db589d5365bbf1f (diff) |
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.
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/notmuch-mua.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index d41c0b3d..dbb0dae9 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -327,9 +327,10 @@ the From: address first." (defun notmuch-mua-new-forward-message (&optional prompt-for-sender) "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 the From: address first." - (interactive "P") (if (or prompt-for-sender notmuch-always-prompt-for-sender) (let* ((sender (notmuch-mua-prompt-for-sender)) (address-components (mail-extract-address-components sender)) |