[PATCH 1/6] emacs: `notmuch-mua-new-forward-message' is not interactive
authorAustin Clements <amdragon@MIT.EDU>
Sun, 6 Oct 2013 03:22:43 +0000 (23:22 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:15 +0000 (09:57 -0800)
21/4757ec3cf96d60b0c2d57cd6fb96ae666927ea [new file with mode: 0644]

diff --git a/21/4757ec3cf96d60b0c2d57cd6fb96ae666927ea b/21/4757ec3cf96d60b0c2d57cd6fb96ae666927ea
new file mode 100644 (file)
index 0000000..6ec8232
--- /dev/null
@@ -0,0 +1,104 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 305FD431FD8\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Oct 2013 20:23:32 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id vhi9vboSxaXX for <notmuch@notmuchmail.org>;\r
+       Sat,  5 Oct 2013 20:23:28 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-7.mit.edu (dmz-mailsec-scanner-7.mit.edu\r
+       [18.7.68.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0A978431FDC\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Oct 2013 20:23:05 -0700 (PDT)\r
+X-AuditID: 12074424-b7f528e0000009aa-a8-5250d799c861\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 37.71.02474.997D0525; Sat,  5 Oct 2013 23:23:05 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id r963MsIC012801; \r
+       Sat, 5 Oct 2013 23:22:54 -0400\r
+Received: from drake.dyndns.org\r
+       (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [216.15.114.40]) (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r963Mpag024417\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Sat, 5 Oct 2013 23:22:53 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1VSevj-00037m-Nx; Sat, 05 Oct 2013 23:22:51 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/6] emacs: `notmuch-mua-new-forward-message' is not\r
+       interactive\r
+Date: Sat,  5 Oct 2013 23:22:43 -0400\r
+Message-Id: <1381029768-11883-2-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.8.4.rc3\r
+In-Reply-To: <1381029768-11883-1-git-send-email-amdragon@mit.edu>\r
+References: <1381029768-11883-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixG6nojvzekCQQeN2JYvrN2cyOzB6PFt1\r
+       izmAMYrLJiU1J7MstUjfLoEr43l7C1vBNs6Ku4snsjYwfmbvYuTkkBAwkfj94CMLhC0mceHe\r
+       ejYQW0hgH6PE/O+GXYxcQPYGRom2pesYIZzbTBJTHr1hh3DmMko8eLKAEaSFTUBDYtv+5WC2\r
+       iIC0xM67s1m7GDk4mAXUJP50qYCEhQUCJN7umMoEYrMIqEpsuH+HFcTmFXCQmNLYxgZxhZLE\r
+       wlPbwOKcAo4Sm0+9YYS4yEHi+vLnjBMY+RcwMqxilE3JrdLNTczMKU5N1i1OTszLSy3SNdfL\r
+       zSzRS00p3cQIDhoXlR2MzYeUDjEKcDAq8fDO9AkIEmJNLCuuzD3EKMnBpCTKO/0qUIgvKT+l\r
+       MiOxOCO+qDQntfgQowQHs5IIL0sBUI43JbGyKrUoHyYlzcGiJM57i8M+SEggPbEkNTs1tSC1\r
+       CCYrw8GhJMF75hpQo2BRanpqRVpmTglCmomDE2Q4D9DwSyA1vMUFibnFmekQ+VOMilLivLNB\r
+       EgIgiYzSPLheWFS/YhQHekWYdztIFQ8wIcB1vwIazAQ0OErCF2RwSSJCSqqBMbXjYm3zz5pZ\r
+       rznO9+2ZcYf/V8Kfi1+3VacszjD7133gYxLzqVnebNpnWDfI2wqus9759ueGrFudFxmn3JYM\r
+       0ko/0O5dn9TUXjUnkff8uclnTkxc28rX0XOodrOlk7JbcO3qt6fa67IFP9b0XPS4bPqIY6FS\r
+       zimfw6yua66amPIZnTVY8ifyoBJLcUaioRZzUXEiAKyp+C/FAgAA\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 06 Oct 2013 03:23:32 -0000\r
+\r
+`notmuch-mua-new-forward-message' must be called from a buffer\r
+containing a raw RFC2822-formatted message to forward.  Hence, it's\r
+intended to be invoked programmatically through something else that\r
+sets up this buffer (like `notmuch-show-forward-message'), not\r
+interactively.\r
+\r
+Remove its interactive specification and update the documentation\r
+string to mention the requirements on the current buffer.\r
+---\r
+ emacs/notmuch-mua.el | 3 ++-\r
+ 1 file changed, 2 insertions(+), 1 deletion(-)\r
+\r
+diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
+index d41c0b3..dbb0dae 100644\r
+--- a/emacs/notmuch-mua.el\r
++++ b/emacs/notmuch-mua.el\r
+@@ -327,9 +327,10 @@ the From: address first."\r
+ (defun notmuch-mua-new-forward-message (&optional prompt-for-sender)\r
+   "Invoke the notmuch message forwarding window.\r
\r
++The current buffer must contain an RFC2822 message to forward.\r
++\r
+ If PROMPT-FOR-SENDER is non-nil, the user will be prompted for\r
+ the From: address first."\r
+-  (interactive "P")\r
+   (if (or prompt-for-sender notmuch-always-prompt-for-sender)\r
+       (let* ((sender (notmuch-mua-prompt-for-sender))\r
+            (address-components (mail-extract-address-components sender))\r
+-- \r
+1.8.4.rc3\r
+\r