[PATCH 1/6] emacs: notmuch-check-exit-status bugfix
authorMark Walters <markwalters1009@gmail.com>
Fri, 10 Jun 2016 23:02:47 +0000 (00:02 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:03 +0000 (16:22 -0700)
02/106189d86028a368be77ad17ba067df8ffa831 [new file with mode: 0644]

diff --git a/02/106189d86028a368be77ad17ba067df8ffa831 b/02/106189d86028a368be77ad17ba067df8ffa831
new file mode 100644 (file)
index 0000000..2db941a
--- /dev/null
@@ -0,0 +1,111 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 3AA206DE02DD\r
+ for <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 16:03:12 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.335\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.335 tagged_above=-999 required=5 tests=[AWL=0.235,\r
+  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 2UMZPFIhmCcs for <notmuch@notmuchmail.org>;\r
+ Fri, 10 Jun 2016 16:03:04 -0700 (PDT)\r
+Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com\r
+ [74.125.82.66]) by arlo.cworth.org (Postfix) with ESMTPS id 2FB926DE00C9 for\r
+ <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 16:03:04 -0700 (PDT)\r
+Received: by mail-wm0-f66.google.com with SMTP id n184so1713657wmn.1\r
+ for <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 16:03:04 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+ bh=/GFYv7bVXxZw2lNxPhzsyheP6HUNzdAEIAUUIEaEXUM=;\r
+ b=tK2JBN9XeVo9HQCftoccsqRga+GDqT0vMOVTjOl0Wt1e9TVyQEehQMQV3QTRjpBpjO\r
+ 8VbZLYK9EGpFlwCggZxJ93W59gqmWSg/Uu/0GUreykjjB395Bqh9eOcBs0hBr5smL5uj\r
+ 6qJbE2nwoTgCoA7YpONSrMnL9kW95BZyLZfGpSvWWXRVOUqqhLSxyDozQKfV5hdK4XxA\r
+ V9ssBeECat4j+x92KqRw5rB3j94PyqxqhtqVs6gQN4r9EI1G9m3ephtMEorhREhbupkl\r
+ MxY1SNdJHWRYCFLi3jJlkV8SUm3sjaDC6JqlQpDSq/NKHpl0NKdmVlUkf+fNK1APjIii\r
+ h+Yg==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
+ :references;\r
+ bh=/GFYv7bVXxZw2lNxPhzsyheP6HUNzdAEIAUUIEaEXUM=;\r
+ b=DVdsNYoQ0cHpS9siL8x/TtZbD0MQoiRY3Pz33eDR6+5HsuJ9fF2lpPoTF14z/kKRVu\r
+ LKw2+Q6WsV44WbNNuJcd5zV2KviYAttLxBO2omQwAx6M4XrgKGr8IecERal7ptsb8oS9\r
+ CTQxATDftWh3j+Hlz57nZVE42RukKx5SvwtS7Vdna+IQKm0AaYsMJliXSaugtSq1PVB6\r
+ HVsZbR7nHRe03OPQqlZgy46XP9RhZPSesJbxzqGL+Mwe2/z3Z1s6qPuLmVc47PBfczeq\r
+ XN7bk0RBNmV0/1yxgoTZoKmBSaxEq+Wko7QZOY3JpkUORInAKlbWYpMh8GXtHu4U3cA7\r
+ dbUA==\r
+X-Gm-Message-State:\r
+ ALyK8tLJalTRBaeScsin0BslanLGLxcF7Y/DxOX9+6CZxmFc2OQYAN/OFTPkjesbU6jRXg==\r
+X-Received: by 10.28.129.197 with SMTP id c188mr1143892wmd.46.1465599782549;\r
+ Fri, 10 Jun 2016 16:03:02 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by smtp.gmail.com with ESMTPSA id o4sm14423400wjx.45.2016.06.10.16.03.01\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Fri, 10 Jun 2016 16:03:01 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/6] emacs: notmuch-check-exit-status bugfix\r
+Date: Sat, 11 Jun 2016 00:02:47 +0100\r
+Message-Id: <1465599772-10297-2-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 2.1.4\r
+In-Reply-To: <1465599772-10297-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1465599772-10297-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 10 Jun 2016 23:03:12 -0000\r
+\r
+This function prints diagnostic information in the event of an\r
+error. However, one of the callers has an optional :stdin-string\r
+keyword argument. This causes the error printing routine to error\r
+itself.\r
+\r
+Rather than reach notmuch-check-exit-status about the possible keyword\r
+arguments (currently only one but could be more in the future) this\r
+commit just tells notmuch-check-exit-status how to print non-string arguments.\r
+---\r
+ emacs/notmuch-lib.el | 10 ++++++++--\r
+ 1 file changed, 8 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
+index 1781af4..2f015b0 100644\r
+--- a/emacs/notmuch-lib.el\r
++++ b/emacs/notmuch-lib.el\r
+@@ -790,9 +790,15 @@ You may need to restart Emacs or upgrade your notmuch package."))\r
+                   (insert-file-contents err-file)\r
+                   (unless (eobp)\r
+                     (buffer-string)))))\r
++         (command-string\r
++          (mapconcat (lambda (arg)\r
++                       (shell-quote-argument\r
++                        (cond ((stringp arg) arg)\r
++                              ((symbolp arg) (symbol-name arg))\r
++                              (t "*UNKNOWN ARGUMENT*"))))\r
++                     command " "))\r
+          (extra\r
+-          (concat\r
+-           "command: " (mapconcat #'shell-quote-argument command " ") "\n"\r
++          (concat "command: " command-string "\n"\r
+            (if (integerp exit-status)\r
+                (format "exit status: %s\n" exit-status)\r
+              (format "exit signal: %s\n" exit-status))\r
+-- \r
+2.1.4\r
+\r