[PATCH 6/8] CLI: refactor dumping of tags.
[notmuch-archives.git] / 5d / 8c0ef187bb063e68677c653c24ed98fbaf9e4a
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 ED4C86DE158D\r
6  for <notmuch@notmuchmail.org>; Sun,  4 Oct 2015 11:59:45 -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.174\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.174 tagged_above=-999 required=5 tests=[AWL=0.714, \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 0J5Gb679IR13 for <notmuch@notmuchmail.org>;\r
17  Sun,  4 Oct 2015 11:59:43 -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 1C8AE6DE13E2\r
20  for <notmuch@notmuchmail.org>; Sun,  4 Oct 2015 11:59:42 -0700 (PDT)\r
21 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
22  id 2813D100269; Sun,  4 Oct 2015 21:59:44 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: notmuch@notmuchmail.org\r
25 Subject: =?utf-8?q?=5BP=C3=84TCH=5D_notmuch-emacs-mua=3A_set_EMACS=7B=2CCLIENT=7D_variables_to_defaults_when_empty?=\r
26 Date: Sun,  4 Oct 2015 21:59:42 +0300\r
27 Message-Id: <1443985182-20048-1-git-send-email-tomi.ollila@iki.fi>\r
28 X-Mailer: git-send-email 2.0.0\r
29 MIME-Version: 1.0\r
30 Content-Type: text/plain; charset=UTF-8\r
31 Content-Transfer-Encoding: 8bit\r
32 Cc: tomi.ollila@iki.fi\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.18\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37  <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Sun, 04 Oct 2015 18:59:46 -0000\r
46 \r
47 ... in addition to doing this when these variables are unset.\r
48 \r
49 It is more useful to use defaults (emacs or emacsclient) than empty\r
50 string as a command name.\r
51 ---\r
52 \r
53 Without this:\r
54 \r
55 $ EMACS= ./notmuch-emacs-mua\r
56 ./notmuch-emacs-mua: line 150: exec: --: invalid option\r
57 exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]\r
58 zsh: exit 2     EMACS= ./notmuch-emacs-mua\r
59 \r
60  notmuch-emacs-mua | 4 ++--\r
61  1 file changed, 2 insertions(+), 2 deletions(-)\r
62 \r
63 diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua\r
64 index 016fa12613c4..4404cd7c33b8 100755\r
65 --- a/notmuch-emacs-mua\r
66 +++ b/notmuch-emacs-mua\r
67 @@ -30,8 +30,8 @@ escape ()\r
68      printf -v $2 '%s' "${__escape_arg__//\"/\\\"}"\r
69  }\r
70  \r
71 -EMACS=${EMACS-emacs}\r
72 -EMACSCLIENT=${EMACSCLIENT-emacsclient}\r
73 +EMACS=${EMACS:-emacs}\r
74 +EMACSCLIENT=${EMACSCLIENT:-emacsclient}\r
75  \r
76  PRINT_ONLY=\r
77  NO_WINDOW=\r
78 -- \r
79 2.0.0\r
80 \r