Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 305FD431FD8 for ; Sat, 5 Oct 2013 20:23:32 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vhi9vboSxaXX for ; Sat, 5 Oct 2013 20:23:28 -0700 (PDT) Received: from dmz-mailsec-scanner-7.mit.edu (dmz-mailsec-scanner-7.mit.edu [18.7.68.36]) by olra.theworths.org (Postfix) with ESMTP id 0A978431FDC for ; Sat, 5 Oct 2013 20:23:05 -0700 (PDT) X-AuditID: 12074424-b7f528e0000009aa-a8-5250d799c861 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP id 37.71.02474.997D0525; Sat, 5 Oct 2013 23:23:05 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id r963MsIC012801; Sat, 5 Oct 2013 23:22:54 -0400 Received: from drake.dyndns.org (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [216.15.114.40]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r963Mpag024417 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sat, 5 Oct 2013 23:22:53 -0400 Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1VSevj-00037m-Nx; Sat, 05 Oct 2013 23:22:51 -0400 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 1/6] emacs: `notmuch-mua-new-forward-message' is not interactive Date: Sat, 5 Oct 2013 23:22:43 -0400 Message-Id: <1381029768-11883-2-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1381029768-11883-1-git-send-email-amdragon@mit.edu> References: <1381029768-11883-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixG6nojvzekCQQeN2JYvrN2cyOzB6PFt1 izmAMYrLJiU1J7MstUjfLoEr43l7C1vBNs6Ku4snsjYwfmbvYuTkkBAwkfj94CMLhC0mceHe ejYQW0hgH6PE/O+GXYxcQPYGRom2pesYIZzbTBJTHr1hh3DmMko8eLKAEaSFTUBDYtv+5WC2 iIC0xM67s1m7GDk4mAXUJP50qYCEhQUCJN7umMoEYrMIqEpsuH+HFcTmFXCQmNLYxgZxhZLE wlPbwOKcAo4Sm0+9YYS4yEHi+vLnjBMY+RcwMqxilE3JrdLNTczMKU5N1i1OTszLSy3SNdfL zSzRS00p3cQIDhoXlR2MzYeUDjEKcDAq8fDO9AkIEmJNLCuuzD3EKMnBpCTKO/0qUIgvKT+l MiOxOCO+qDQntfgQowQHs5IIL0sBUI43JbGyKrUoHyYlzcGiJM57i8M+SEggPbEkNTs1tSC1 CCYrw8GhJMF75hpQo2BRanpqRVpmTglCmomDE2Q4D9DwSyA1vMUFibnFmekQ+VOMilLivLNB EgIgiYzSPLheWFS/YhQHekWYdztIFQ8wIcB1vwIazAQ0OErCF2RwSSJCSqqBMbXjYm3zz5pZ rznO9+2ZcYf/V8Kfi1+3VacszjD7133gYxLzqVnebNpnWDfI2wqus9759ueGrFudFxmn3JYM 0ko/0O5dn9TUXjUnkff8uclnTkxc28rX0XOodrOlk7JbcO3qt6fa67IFP9b0XPS4bPqIY6FS zimfw6yua66amPIZnTVY8ifyoBJLcUaioRZzUXEiAKyp+C/FAgAA X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2013 03:23:32 -0000 `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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index d41c0b3..dbb0dae 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)) -- 1.8.4.rc3