From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#25670: Feature request: ignore --help in --script mode Date: Fri, 10 Feb 2017 15:23:57 -0500 Message-ID: <9a2862f6-941c-ab22-4a80-d3b63525ca99@live.com> References: <87bmuakrwv.fsf@flea> <6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i58aaSxBR91pmM77uimuRNIitFXeknWgg" X-Trace: blaine.gmane.org 1486758432 9849 195.159.176.226 (10 Feb 2017 20:27:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 20:27:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 To: Glenn Morris , 25670@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 21:27:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccHmc-0002Jn-S6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 21:27:07 +0100 Original-Received: from localhost ([::1]:45820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccHmi-00013S-JF for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 15:27:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccHkg-0007gr-Qc for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 15:25:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccHkb-0006q5-U2 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 15:25:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccHkb-0006q0-RR for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 15:25:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ccHkb-0004oL-Lr for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 15:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2017 20:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25670 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25670-submit@debbugs.gnu.org id=B25670.148675825318431 (code B ref 25670); Fri, 10 Feb 2017 20:25:01 +0000 Original-Received: (at 25670) by debbugs.gnu.org; 10 Feb 2017 20:24:13 +0000 Original-Received: from localhost ([127.0.0.1]:35034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccHjo-0004nD-MP for submit@debbugs.gnu.org; Fri, 10 Feb 2017 15:24:12 -0500 Original-Received: from mout.kundenserver.de ([212.227.17.13]:63472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccHjl-0004mx-To for 25670@debbugs.gnu.org; Fri, 10 Feb 2017 15:24:10 -0500 Original-Received: from [18.26.2.123] ([18.26.2.123]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.184]) with ESMTPSA (Nemesis) id 0MaJVA-1crlFr1TK4-00JvL8; Fri, 10 Feb 2017 21:24:03 +0100 In-Reply-To: X-Provags-ID: V03:K0:oqm6quU1CeE9HBro0ztoR2dtj2HBZftiV5nCkiqAqwJvbbYRKPt UyYJSp5NhbnCCx8/3WBVjDbUpt3tLzjwPF62pDPn3K42rNco2EO0tGXZNOqEvNxwBiBNWbU GBV9NoMcsiJlhf6C2oBm4oYvbqz2CpZV14gHomkJSI4b1XwQ4TT9zrAdKUlRBqeR0qymLUI 933+acpnQHjvHPrvB3nLQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:2Aj7cJIDvLE=:RzvTodk2S8JUXatdPnM2jE uT2M6J7gCx+rGIyvM2xF4w5AiX/ra6WK8hg5FK6839SFMyUnoFe/O7dFVz1DskvRm9zMBwL10 qsecuqkTHNfO/3ooAzNLoYaXhO9N9KKGWiwJrp2mScNX2/ewBS0xZI2//lBb7FbvUKrdjiofg 5uw6c647U924Jbl5omES7YqFxF24+dYTOWRzTddC2hO6uI0AY2Noiw5iTnhmc07zR/C+7YQ5V eL7ZPgMqm7wD2+fZLTMX4RHVAQKm6Qj0OPorvQo/hXKtwl7fBi20L/sfWhuP0jzfsiYxvC0QN OtCRGNv3k6BrIWl6tpA6MOzg8jqWiNoaejExcuneBTK7/9mjwZCpZyfcLMO8qaZFLyunqtMYe QLP6lAdg4GSn7DJ4+8siWsrYhIgzzaS76O/yT1JhxFHwXEwp80CFy9yrF7I4uoiHpRz28YN5s PD7z9FG/Gb5CmK5xp319bOMeqys0ekzSWg9NhwnEpa/dUZkn7iY3d0FKAViz8j4vdOPSfMYso DSzu361IphINUsd6crCuqr3sh12c9QM4pr9mpSTUZDpEqdakwVrBJLKgXGyfJoZmWLrAhgSVX owB6uNrU+Whf2QIdZQCKLlOeQ/4w/0G+7KSwU9/NDS/j7zrGJDHeQgZkRJSgwPDd6cH0s2E/N UqU4dVARYpay/tOgzlhNuckz1gIb4hkmCKy8N0lkrA1DyoD1uspZFFthtNgA8R/9T988= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129219 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --i58aaSxBR91pmM77uimuRNIitFXeknWgg Content-Type: multipart/mixed; boundary="xR9qqwNr1nij8wB8OV8Ba6FKmEE9M7tvF"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Glenn Morris , 25670@debbugs.gnu.org Message-ID: <9a2862f6-941c-ab22-4a80-d3b63525ca99@live.com> Subject: Re: bug#25670: Feature request: ignore --help in --script mode References: <87bmuakrwv.fsf@flea> <6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com> In-Reply-To: --xR9qqwNr1nij8wB8OV8Ba6FKmEE9M7tvF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-02-10 12:36, Glenn Morris wrote: > Cl=C3=A9ment Pit--Claudel wrote: >=20 >> $ emacs -Q --batch --eval '(print argv)' -- --help >> ("--" "--help") >=20 > If you can train your users to insert -- before --help, you could get > them to use any other flag for help. And if you are inserting the -- fo= r > them, you are already using a wrapper. I'm using this as my header: #!/bin/sh ":"; exec emacs -Q --script "$0" -- "$@" # -*- mode: emacs-lisp; lexical-= binding: t; -*- I don't understand the wrapper point: I want to do the argument parsing i= n ELisp, not in bash. Did I misunderstand your suggestion? Cl=C3=A9ment. --xR9qqwNr1nij8wB8OV8Ba6FKmEE9M7tvF-- --i58aaSxBR91pmM77uimuRNIitFXeknWgg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYniFdAAoJEPqg+cTm90wjsscP/0PkohlkTTSP242qCPRPfDNv WwzZBtQ+H5MLC/jgyhhX+M07+jSwKzKnc09YW19AxJjJQSikz9B6fBkKbuMip5Ys Wvt4ESK60koST8MWUX8Wlehx05oCYQrY8TFTbsQD3eqb7HGrCvN8LpxaoRBrYeH6 5G6/QW9LU4FYKQKLv1M5ql9iNbykl6NQbwWnuMgL+XulfY+pXb2n+XVQTi9gLYgI udXecSedFX9Q5JmUKDNAKYjnH0+fIhl4xZr5X/uuizMWcC/tXdMMuxby5jeaNfQZ L5/j/UWcTO1dvQrnRTHfuSxMEgQb/pnT0yFyGimfSXrg6KGYCDpWe0Ui81X6cyHk WKYwdnQfVscYYjzM6IzYZM3wZu00OxO48MQx0B4IL47QqvPW0PTonOJ2RbGuME3g t+Wa3Z6jaHwK8X2tq5Ur1HbG/3s8xY4yOSkGqrJuxeaAo+cG2/QEJcTns1VCYG4X jsWwMK1B1FLZEUzvuQnKksXKAeEyzLMjfWzn0s+OT0bJRAX8/DsrktM23NUzu98c I9UDPSPwOtGFq56tEXNk/tNbaJYGjEARd9ErjRuMEi7+CiAaf8yStvPNu4I3gm0o eCa5OTD2eDgIgF3Cm0YmYPoomK15f2LYGRtpFBxtKUFm1NauyjgT1pF4NhRSlxuh X+qI9TaOyVu9xmCkTLec =r1lt -----END PGP SIGNATURE----- --i58aaSxBR91pmM77uimuRNIitFXeknWgg--