Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 61 / 59113f0d65217e0293b0f9a77f78bba4264ea6
1 Return-Path: <too@guru-group.fi>\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 CFEF46DE0B26\r
6  for <notmuch@notmuchmail.org>; Sun,  4 Oct 2015 06:47:38 -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.177\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.177 tagged_above=-999 required=5 tests=[AWL=0.717, \r
12  RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id SQj1TdyWrmz3 for <notmuch@notmuchmail.org>;\r
17  Sun,  4 Oct 2015 06:47:36 -0700 (PDT)\r
18 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
19  by arlo.cworth.org (Postfix) with ESMTP id 3E2846DE014A\r
20  for <notmuch@notmuchmail.org>; Sun,  4 Oct 2015 06:47:36 -0700 (PDT)\r
21 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
22  id 91BFB100269; Sun,  4 Oct 2015 16:47:37 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: notmuch@notmuchmail.org\r
25 Subject: [PATCH] notmuch-emacs-mua: set EMACS{,\r
26  CLIENT} variables to defaults when empty\r
27 Date: Sun,  4 Oct 2015 16:47:36 +0300\r
28 Message-Id: <1443966456-16562-1-git-send-email-tomi.ollila@iki.fi>\r
29 X-Mailer: git-send-email 2.0.0\r
30 Cc: tomi.ollila@iki.fi\r
31 X-BeenThere: notmuch@notmuchmail.org\r
32 X-Mailman-Version: 2.1.18\r
33 Precedence: list\r
34 List-Id: "Use and development of the notmuch mail system."\r
35  <notmuch.notmuchmail.org>\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
37  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
39 List-Post: <mailto:notmuch@notmuchmail.org>\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
42  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
43 X-List-Received-Date: Sun, 04 Oct 2015 13:47:38 -0000\r
44 \r
45 ... in addition to doing this when these variables are unset.\r
46 \r
47 It is more useful to use defaults (emacs or emacsclient) than empty\r
48 string as a command name.\r
49 ---\r
50 \r
51 Without this:\r
52 \r
53 $ EMACS= ./notmuch-emacs-mua\r
54 ./notmuch-emacs-mua: line 150: exec: --: invalid option\r
55 exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]\r
56 zsh: exit 2     EMACS= ./notmuch-emacs-mua\r
57 \r
58  notmuch-emacs-mua | 4 ++--\r
59  1 file changed, 2 insertions(+), 2 deletions(-)\r
60 \r
61 diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua\r
62 index 016fa12613c4..4404cd7c33b8 100755\r
63 --- a/notmuch-emacs-mua\r
64 +++ b/notmuch-emacs-mua\r
65 @@ -30,8 +30,8 @@ escape ()\r
66      printf -v $2 '%s' "${__escape_arg__//\"/\\\"}"\r
67  }\r
68  \r
69 -EMACS=${EMACS-emacs}\r
70 -EMACSCLIENT=${EMACSCLIENT-emacsclient}\r
71 +EMACS=${EMACS:-emacs}\r
72 +EMACSCLIENT=${EMACSCLIENT:-emacsclient}\r
73  \r
74  PRINT_ONLY=\r
75  NO_WINDOW=\r
76 -- \r
77 2.0.0\r
78 \r