[PATCH 1/2] notmuch-emacs-mua: remove -C to keep short options compatible with mutt
[notmuch-archives.git] / f4 / 5ab83508caefd6b9914a671cfda13f3ceb6dcf
1 Return-Path: <jani@nikula.org>\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 olra.theworths.org (Postfix) with ESMTP id 51652431FBD\r
6         for <notmuch@notmuchmail.org>; Sat,  7 Mar 2015 06:30:07 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 1.738\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.738 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id J+GzkJWhB8w0 for <notmuch@notmuchmail.org>;\r
17         Sat,  7 Mar 2015 06:30:03 -0800 (PST)\r
18 Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com\r
19         [209.85.212.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 17D7C431FAE\r
22         for <notmuch@notmuchmail.org>; Sat,  7 Mar 2015 06:30:02 -0800 (PST)\r
23 Received: by wibbs8 with SMTP id bs8so9848235wib.4\r
24         for <notmuch@notmuchmail.org>; Sat, 07 Mar 2015 06:30:02 -0800 (PST)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=1e100.net; s=20130820;\r
27         h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
28         bh=D7oMCs2EZ5G8HthJ3BSVYKNq85MDb4YrkHe0586zmSI=;\r
29         b=Y/I6rvKsMPscqk6TUcP8pOGW7VEIp1ZmZJ3Ck8+9OEAgqjQvEdW/I1XBKJ05JeyGTM\r
30         pbzKEpfQScOmo8IkymgdsZgtzTgh5B2NoLO0MkNYOlA5BzTXGAU4DDU3lT9owJmWm0El\r
31         rkGnj19kT8gbvXaVPtZyEFYMnM3nem5m7qwMGXJja077ufBXCiehhZdAbDLnFy7FxVM9\r
32         OGkXbd4NoBjfv5zPhhV//KUJEVKpyI0nUJmhVcUZEm8y98LNoeQdc4P4VfeysXSq56wJ\r
33         uT0lLXyaoo13VJvTcr1LGQo+TtzE6/CDlQ1AyweGnoM5Y5qX68pjw5cWVCfngZbk1vWd\r
34         cXbg==\r
35 X-Gm-Message-State:\r
36  ALoCoQlOCJIudt29StkAMqxIKnkUYaDtB+4J0kd/3/otx8aDkrGHTsMjJd0FDfDy4PY6L70UgvTS\r
37 X-Received: by 10.180.8.165 with SMTP id s5mr42826249wia.16.1425738602115;\r
38         Sat, 07 Mar 2015 06:30:02 -0800 (PST)\r
39 Received: from localhost (mobile-internet-bcee3b-76.dhcp.inet.fi.\r
40         [188.238.59.76]) by mx.google.com with ESMTPSA id\r
41         bo1sm19590030wjb.15.2015.03.07.06.30.00\r
42         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
43         Sat, 07 Mar 2015 06:30:01 -0800 (PST)\r
44 From: Jani Nikula <jani@nikula.org>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: [PATCH 1/2] notmuch-emacs-mua: remove -C to keep short options\r
47         compatible with mutt\r
48 Date: Sat,  7 Mar 2015 16:30:19 +0200\r
49 Message-Id: <1425738620-6972-1-git-send-email-jani@nikula.org>\r
50 X-Mailer: git-send-email 2.1.4\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Sat, 07 Mar 2015 14:30:07 -0000\r
64 \r
65 Notmuch uses long options exclusively all around. The short options in\r
66 notmuch-emacs-mua are intentionally just a compatible subset of\r
67 mutt(1). Keep it this way, if only to make documenting the fact easy!\r
68 \r
69 The Notmuch style --client long option remains, of course.\r
70 ---\r
71  doc/man1/notmuch-emacs-mua.rst | 2 +-\r
72  notmuch-emacs-mua              | 5 +++--\r
73  2 files changed, 4 insertions(+), 3 deletions(-)\r
74 \r
75 diff --git a/doc/man1/notmuch-emacs-mua.rst b/doc/man1/notmuch-emacs-mua.rst\r
76 index eb47098e11ca..32b728639188 100644\r
77 --- a/doc/man1/notmuch-emacs-mua.rst\r
78 +++ b/doc/man1/notmuch-emacs-mua.rst\r
79 @@ -18,7 +18,7 @@ Supported options for **notmuch-emacs-mua** include\r
80      ``-h, --help``\r
81          Display help.\r
82  \r
83 -    ``-C, --client``\r
84 +    ``--client``\r
85          Use emacsclient, rather than emacs. This will start\r
86          an emacs daemon process if necessary.\r
87  \r
88 diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua\r
89 index b8cbc822fe89..13f67bee4417 100755\r
90 --- a/notmuch-emacs-mua\r
91 +++ b/notmuch-emacs-mua\r
92 @@ -38,7 +38,8 @@ CLIENT_TYPE="-c"\r
93  ELISP="(prog1 'done (require 'notmuch) (notmuch-mua-new-mail)"\r
94  ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))"\r
95  \r
96 -while getopts :s:c:b:i:hC opt; do\r
97 +# Short options compatible with mutt(1).\r
98 +while getopts :s:c:b:i:h opt; do\r
99      # Handle errors and long options.\r
100      case "${opt}" in\r
101         :)\r
102 @@ -79,7 +80,7 @@ while getopts :s:c:b:i:hC opt; do\r
103         --help|h)\r
104             exec man notmuch-emacs-mua\r
105             ;;\r
106 -       --client|C)\r
107 +       --client)\r
108             USE_EMACSCLIENT="yes"\r
109             ;;\r
110         --subject|s)\r
111 -- \r
112 2.1.4\r
113 \r