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

diff --git a/e6/21bebdd1d62163009c59730b08849dc151e47a b/e6/21bebdd1d62163009c59730b08849dc151e47a
new file mode 100644 (file)
index 0000000..b31af62
--- /dev/null
@@ -0,0 +1,103 @@
+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 72868431FDD\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Oct 2013 20:23:08 -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 bsaxyoafJ9ET for <notmuch@notmuchmail.org>;\r
+       Sat,  5 Oct 2013 20:23:03 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu\r
+       [18.9.25.14])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5B914431FBF\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Oct 2013 20:22:57 -0700 (PDT)\r
+X-AuditID: 1209190e-b7f828e0000009cf-ad-5250d7912b8a\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+       by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 59.3A.02511.197D0525; Sat,  5 Oct 2013 23:22:57 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r963MrPM018344; \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 r963MprK024418\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-00037o-Ol; Sat, 05 Oct 2013 23:22:51 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/6] emacs: `notmuch-mua-new-reply' is also not interactive\r
+Date: Sat,  5 Oct 2013 23:22:44 -0400\r
+Message-Id: <1381029768-11883-3-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+NgFtrMIsWRmVeSWpSXmKPExsUixG6nrjvxekCQwcJuTovrN2cyOzB6PFt1\r
+       izmAMYrLJiU1J7MstUjfLoEro6VrC1vBLY6Kxz/vsDcwzmPvYuTkkBAwkfjyZyGULSZx4d56\r
+       ti5GLg4hgX2MEnueN7FCOBsYJeZe+skO4dxmkjh98CozhDOXUeLLmguMIP1sAhoS2/YvB7NF\r
+       BKQldt6dDdTOwcEsoCbxp0sFJCws4C2x/stesHUsAqoS75qawcp5BRwkft3ezQRxhpLEwlPb\r
+       WEFsTgFHic2n3oDVCAHVXF/+nHECI/8CRoZVjLIpuVW6uYmZOcWpybrFyYl5ealFusZ6uZkl\r
+       eqkppZsYQWHDKcm3g/HrQaVDjAIcjEo8vDN9AoKEWBPLiitzDzFKcjApifJOvwoU4kvKT6nM\r
+       SCzOiC8qzUktPsQowcGsJMLLUgCU401JrKxKLcqHSUlzsCiJ897ksA8SEkhPLEnNTk0tSC2C\r
+       ycpwcChJ8IZdA2oULEpNT61Iy8wpQUgzcXCCDOcBGh4OUsNbXJCYW5yZDpE/xagoJc6bAJIQ\r
+       AElklObB9cLi+hWjONArwrwVIFU8wJQA1/0KaDAT0OAoCV+QwSWJCCmpBkZWvvTC7RFzvkyp\r
+       rjr4O//ax0B5lvnV2/596lvsdJs/1L5I02LSVe1u30j3K1frlPSeCF7liE3kPeSv6bNNe2vO\r
+       xQxJ9VWvrfafe5kXs+jG5G3pq9cc3NrJ9FXhz/LSkowq+eqK629W8p1naZGO+JjXMHvqTqWX\r
+       f+bM1+1pyjD+PFPR/V9sloASS3FGoqEWc1FxIgDlLLLExgIAAA==\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:08 -0000\r
+\r
+Like `notmuch-mua-new-forward-message', this is meant to be invoked\r
+programmatically by something that can provide a reasonable query\r
+string.\r
+\r
+In fact, `notmuch-mua-new-reply's interactive specification didn't\r
+match its arguments, so it wouldn't have worked interactively.\r
+---\r
+ emacs/notmuch-mua.el | 7 +++++--\r
+ 1 file changed, 5 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
+index dbb0dae..f6006ee 100644\r
+--- a/emacs/notmuch-mua.el\r
++++ b/emacs/notmuch-mua.el\r
+@@ -340,8 +340,11 @@ the From: address first."\r
+     (notmuch-mua-forward-message)))\r
\r
+ (defun notmuch-mua-new-reply (query-string &optional prompt-for-sender reply-all)\r
+-  "Invoke the notmuch reply window."\r
+-  (interactive "P")\r
++  "Compose a reply to the message identified by QUERY-STRING.\r
++\r
++If PROMPT-FOR-SENDER is non-nil, the user will be prompted for\r
++the From: address first.  If REPLY-ALL is non-nil, the message\r
++will be addressed to all recipients of the source message."\r
+   (let ((sender\r
+        (when prompt-for-sender\r
+          (notmuch-mua-prompt-for-sender))))\r
+-- \r
+1.8.4.rc3\r
+\r