]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: `notmuch-mua-new-forward-message' is not interactive
authorAustin Clements <amdragon@MIT.EDU>
Sun, 6 Oct 2013 03:22:43 +0000 (23:22 -0400)
committerDavid Bremner <bremner@debian.org>
Mon, 7 Oct 2013 23:31:16 +0000 (20:31 -0300)
`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.

emacs/notmuch-mua.el

index d41c0b3d92d3cf8e260145038ddcc69093bc4b92..dbb0dae97b43e7370c2b74cb83ffaaf1182464ae 100644 (file)
@@ -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))