Re: [PATCH v4 02/16] Move crypto.c into libutil
[notmuch-archives.git] / 92 / 673aa02f97aca8c7d58281119cfb549809031b
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id CA7776DE02CC\r
6  for <notmuch@notmuchmail.org>; Fri,  3 Jun 2016 10:51:01 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.325\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.325 tagged_above=-999 required=5 tests=[AWL=0.245,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13  FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
14  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]\r
15  autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id HCxZ8GZEbgDX for <notmuch@notmuchmail.org>;\r
19  Fri,  3 Jun 2016 10:50:54 -0700 (PDT)\r
20 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com\r
21  [74.125.82.66]) by arlo.cworth.org (Postfix) with ESMTPS id DF8636DE02BF for\r
22  <notmuch@notmuchmail.org>; Fri,  3 Jun 2016 10:50:33 -0700 (PDT)\r
23 Received: by mail-wm0-f66.google.com with SMTP id a136so1034934wme.0\r
24  for <notmuch@notmuchmail.org>; Fri, 03 Jun 2016 10:50:33 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
27  bh=Hw2GOaxAjD3m9JeFcjfju5VfNqECkJpvkJfMNjBH3Lw=;\r
28  b=FG9C6RCNEEI3SBTMRjBlP4+QrvmfljxpmVhcEG50lwWjZZpX/TczFy8lxIXUHA90B2\r
29  epbHVcowFcRHZT5tFFsd9a6p1E6wTc1oDN0f7J2ZVlzpL+DwjzKVtUyDR64qut/+SijY\r
30  eSy3ZFgqOB+ZL1/arg9Qf7MFbo9urwKIkuHKznpunCEmfSghqNe/fe5zK1o1Zk87Lh0P\r
31  hSxMnf4BEA4M6JEdfIeh0NBUrsfyXAxx6fG+2Llx5xXlHxLghi+/igNmnT7ZNYhlRJ4C\r
32  IxIRkC7mZMe0PNLbpkkw1Wq5PUWQHonuFg8L7R2Q7PlfxdAPQGsV0WZ0AkWk475GI19e\r
33  i7Kw==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35  d=1e100.net; s=20130820;\r
36  h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
37  :references;\r
38  bh=Hw2GOaxAjD3m9JeFcjfju5VfNqECkJpvkJfMNjBH3Lw=;\r
39  b=E++y78lPNYzcanD+1OomlevVw48LYs6QXoKRY5METXJ+kW8tTYay8pZzqEZn47J+rl\r
40  +zp1yrwiWYgkedpjl365MWzDQqT8QzydDTKZg2RnlM9QJ0XTKDFjUr2hNkrbgP/Lannt\r
41  1Dzf29DJ5dCeEahJof/SeGHUmX6yxQTZh1Pkj3twieJaGCK9Uu2olr4ZbLWkBnfoEJLf\r
42  cRRLDRmdg6fmOyncya6D+D6eghyXaF5aqMJ5l3LY7iA0eB/N+R+dJghI86bS4erzywiD\r
43  JO+13EeoM6FkEO5ZACoqd/nBXjo3NLZY5deo/snD2JIPs32TUU9uoCO/dL8mwpf1GSvG\r
44  ILpQ==\r
45 X-Gm-Message-State:\r
46  ALyK8tLwwIcOBy6KSl8B2Ed4/fcy8aOXetKvDuNILwf0F/yg0+ScvYNvtyspjHeRA9RPSA==\r
47 X-Received: by 10.194.114.228 with SMTP id jj4mr4583287wjb.121.1464976232483; \r
48  Fri, 03 Jun 2016 10:50:32 -0700 (PDT)\r
49 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
50  by smtp.gmail.com with ESMTPSA id o4sm6759923wjx.45.2016.06.03.10.50.22\r
51  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
52  Fri, 03 Jun 2016 10:50:23 -0700 (PDT)\r
53 From: Mark Walters <markwalters1009@gmail.com>\r
54 To: notmuch@notmuchmail.org\r
55 Subject: [PATCH v2 2/3] emacs: notmuch-check-exit-status bugfix\r
56 Date: Fri,  3 Jun 2016 18:49:54 +0100\r
57 Message-Id: <1464976195-23134-3-git-send-email-markwalters1009@gmail.com>\r
58 X-Mailer: git-send-email 2.1.4\r
59 In-Reply-To: <1464976195-23134-1-git-send-email-markwalters1009@gmail.com>\r
60 References: <1464976195-23134-1-git-send-email-markwalters1009@gmail.com>\r
61 X-BeenThere: notmuch@notmuchmail.org\r
62 X-Mailman-Version: 2.1.20\r
63 Precedence: list\r
64 List-Id: "Use and development of the notmuch mail system."\r
65  <notmuch.notmuchmail.org>\r
66 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
67  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
69 List-Post: <mailto:notmuch@notmuchmail.org>\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
71 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
72  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
73 X-List-Received-Date: Fri, 03 Jun 2016 17:51:01 -0000\r
74 \r
75 This function prints diagnostic information in the event of an\r
76 error. However, one of the callers has an optional :stdin-string\r
77 keyword argument. This causes the error printing routine to error\r
78 itself.\r
79 \r
80 Rather than reach notmuch-check-exit-status about the possible keyword\r
81 arguments (currently only one but could be more in the future) this\r
82 commit just tells notmuch-check-exit-status how to print non-string arguments.\r
83 ---\r
84 \r
85 This is an existing bug in the emacs library which the postpone code\r
86 is liable to hit (if you try to save when the database is locked).\r
87 \r
88 emacs/notmuch-lib.el | 10 ++++++++--\r
89  1 file changed, 8 insertions(+), 2 deletions(-)\r
90 \r
91 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
92 index f05ded6..36a7262 100644\r
93 --- a/emacs/notmuch-lib.el\r
94 +++ b/emacs/notmuch-lib.el\r
95 @@ -790,9 +790,15 @@ You may need to restart Emacs or upgrade your notmuch package."))\r
96                     (insert-file-contents err-file)\r
97                     (unless (eobp)\r
98                       (buffer-string)))))\r
99 +          (command-string\r
100 +           (mapconcat (lambda (arg)\r
101 +                        (shell-quote-argument\r
102 +                         (cond ((stringp arg) arg)\r
103 +                               ((symbolp arg) (symbol-name arg))\r
104 +                               (t "*UNKNOWN ARGUMENT*"))))\r
105 +                      command " "))\r
106            (extra\r
107 -           (concat\r
108 -            "command: " (mapconcat #'shell-quote-argument command " ") "\n"\r
109 +           (concat "command: " command-string "\n"\r
110              (if (integerp exit-status)\r
111                  (format "exit status: %s\n" exit-status)\r
112                (format "exit signal: %s\n" exit-status))\r
113 -- \r
114 2.1.4\r
115 \r