From unknown Sun Jun 22 11:32:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25670 <25670@debbugs.gnu.org> To: bug#25670 <25670@debbugs.gnu.org> Subject: Status: Feature request: ignore --help in --script mode Reply-To: bug#25670 <25670@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:32:39 +0000 retitle 25670 Feature request: ignore --help in --script mode reassign 25670 emacs submitter 25670 Cl=C3=A9ment Pit--Claudel severity 25670 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 16:01:38 2017 Received: (at submit) by debbugs.gnu.org; 9 Feb 2017 21:01:38 +0000 Received: from localhost ([127.0.0.1]:33491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbvqU-0005Hw-Hv for submit@debbugs.gnu.org; Thu, 09 Feb 2017 16:01:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbvqT-0005Hj-0s for submit@debbugs.gnu.org; Thu, 09 Feb 2017 16:01:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbvqM-0002l4-W2 for submit@debbugs.gnu.org; Thu, 09 Feb 2017 16:01:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbvqM-0002l0-TJ for submit@debbugs.gnu.org; Thu, 09 Feb 2017 16:01:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbvqL-000704-TC for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 16:01:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbvqH-0002kY-3J for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 16:01:29 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:60961) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbvqG-0002k1-P3 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 16:01:25 -0500 Received: from [18.111.113.197] ([18.111.113.197]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.184]) with ESMTPSA (Nemesis) id 0Mg7K1-1coE4N2CLV-00NUGq for ; Thu, 09 Feb 2017 22:01:22 +0100 To: bug-gnu-emacs@gnu.org From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Subject: Feature request: ignore --help in --script mode Message-ID: Date: Thu, 9 Feb 2017 16:00:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BWPlmguwRF4pR4gaMxs9PH9CaDOUXdtFT" X-Provags-ID: V03:K0:u7CQnmfZQriUp0UelXWuUXyI+WkjrUHVwouRPlkN9QQhD9uK1Cd dK7B/dGeBb+3CqFH9Pq3A4dgR5wDqLjVScjRGPlNxJ0WfLnby8EbGYMlF4M0zYsk50unF0k vIZ7O0Fa388+F418W0i7i/0Ks7cbjmPjWWURrp8rbKMdEZ2QeVeuK7gMsz/uu/QJR8B6MdT 12pFzvYJ6DuyzoB/87jWA== X-UI-Out-Filterresults: notjunk:1;V01:K0:76PXlr4p1Oo=:pHsAuq/QvNMk6055WSPl+P 6QXsqP8JLpIibfbHj8zAfNKqG/XZhYKTX7oDZn6kfyOoeCyvNU2iuYHUlFN9Bpy/lND8BaEvm pcd96Cvq9L6ZoHTytsdJ/Q+yjaGx9q2zWslQbo8Cg4phyBjezPT3CwOtZoeJ25gcaHuSh6AiZ FAQv1v0mvaO0CBtLgTqaE8xb5w8+O2v9FM93ayiJT5K/PAHADv4xjotHV3PZo0sU9EsjfzC8V z8bSk7rgj3a+NKP9iU6uN/txWfwOi273NIWkyD3PnVD5xffeOIN1CUdqRU7cKKXVqWk0zF+Yn uubsH71OTHCackA8mr+1/RG4jwEEYGa0La6onAOVowQhf1Upbg+Yy7fUgEZpCpN9pQvkNypg8 g01QU9Wnx/9R/Oi0/U3Zpf95JN6zdsv7r8JYR2edAPdhNQUxhQbdO43NGc8HsmpfB5Ow5eRYQ nqeIJPSQN4H7LT6VvGbtRiUatNOc7LxTGYYbxUO08+kRlBfst2ecwHsGxVJ+bTmjJDkB9dF8Y 0Hs+5YQi8uZbDeXBCEnjhKLdN3PiXxH6kfukg6zz3IumOtsOVzi443GoUAR/osAIc7ZMshsVd arF1at0aMU1m608ogB2HypIhUncnobFE7o5JIS8TX8hOU/SpjP+kBcu8DVG8kcayiv/Sicjzh 2hYIf9BjJjg8YnWEeiNn3d8iFk0ozoLCw+TPiEAgMRaRaJ8524UeY+celk/BQIDHKayA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --BWPlmguwRF4pR4gaMxs9PH9CaDOUXdtFT Content-Type: multipart/mixed; boundary="HxepK7wKRBnWFUtsFkJUispBuIFt6etRA"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: Subject: Feature request: ignore --help in --script mode --HxepK7wKRBnWFUtsFkJUispBuIFt6etRA Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi bug-gnu-emacs, Event with --script, Emacs still displays its help when passed --help. T= his is confusing for users (they might write emacs --script some-script.e= l --help expecting to get help on the script, but instead they get Emacs'= help), and it force ELisp scripts to use --usage or some other harder-to= -guess synonym. Could this be changed so that emacs --script a.el --help does not show Em= acs' help? More generally, could we guarantee that options that appear *after* "--sc= ript" aren't processed by Emacs itself (and instead left to the script)? = Or would that break things? Thanks! Cl=C3=A9ment. --HxepK7wKRBnWFUtsFkJUispBuIFt6etRA-- --BWPlmguwRF4pR4gaMxs9PH9CaDOUXdtFT 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 iQIcBAEBCAAGBQJYnNiLAAoJEPqg+cTm90wjVhwP/R7J+g1updA0+cHCYNdDWbmi Qb5847qGCyCCkRLRpKk8zPwmOe8Jl5Uq0h0QtAS3YYLiFbGQ09J2pL3r6L+/OJSF AE2JnOjLuSl5o4zb37/zID6pBTv6zSVVa2+yHlBviqWJkB52H984kfXgiEs7bdHJ 7Nh9Z6kRy/fzuExKGcnpzAA6OcDztt3F6Ogki2h9tqtHGgOVxnuD6cldLUC1IdPa EY0kdEzJlg0ZSY/VH1atcvegX05yzU/Ie5aG7VtrZzYLmR11j9wR205ncAt0oquj uDFgztndwYxK6SM9tnzVte0WUuxEHHEB6k+0Xw8daKQ8k++3yWsjXN+rSldJ7zTd PzdFqdr9pSRtqbyIFnCVZ3e9qUjga1F4wPBolVxPl8KnQUuUJFq7RrM6wSRzf8ca v/98m1DG5a4FUCajbwbWsOKNM3oEBHW4izBYrw5ggag2U22yKXdOAiqz0yM9OYdM MXwvJRmfXg5JB+s1KjnWFaBHvposcU+tZn50IZFUgkNZnZ1Z5KzUv2njJMbrQuTv fJx9WOcyBUJogz2l8sneU8r7oWRDdvjjeIy+qqZeO+iw7NHsX9cyXYLqAhK79T7b CI78xfvSm/wHg6yW9s0RjW/gbUYZdkfaHLcCglFz16GhkunnOBklSZW5Is7m/5ir vKpgGDJwOglNoDV6erXe =63JF -----END PGP SIGNATURE----- --BWPlmguwRF4pR4gaMxs9PH9CaDOUXdtFT-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 23:41:00 2017 Received: (at 25670) by debbugs.gnu.org; 10 Feb 2017 04:41:00 +0000 Received: from localhost ([127.0.0.1]:33666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc312-0004EH-Kz for submit@debbugs.gnu.org; Thu, 09 Feb 2017 23:41:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc311-0004E4-7j for 25670@debbugs.gnu.org; Thu, 09 Feb 2017 23:40:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc30v-00051X-FA for 25670@debbugs.gnu.org; Thu, 09 Feb 2017 23:40:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc30t-00050z-1A; Thu, 09 Feb 2017 23:40:51 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cc30s-00043u-3r; Thu, 09 Feb 2017 23:40:50 -0500 From: Glenn Morris To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Subject: Re: bug#25670: Feature request: ignore --help in --script mode References: X-Spook: Pork Shelter-in-place Salmonella Black out Radiation X-Ran: x/u#Wq/0eoIIT/v(>-h:;3QIPWJDQ (=?utf-8?Q?=22Cl=C3=A9ment?= Pit--Claudel"'s message of "Thu, 9 Feb 2017 16:00:59 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25670 Cc: 25670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) AFAICS a simple shell-script wrapper removes the need for --script altogether, so it's hard to get motivated to improve it. Eg #!/bin/sh ... --help parsing goes here ... exec emacs -batch -l script.el From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 10:05:30 2017 Received: (at 25670) by debbugs.gnu.org; 10 Feb 2017 15:05:30 +0000 Received: from localhost ([127.0.0.1]:34883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccClN-00045d-TX for submit@debbugs.gnu.org; Fri, 10 Feb 2017 10:05:30 -0500 Received: from mail-pg0-f47.google.com ([74.125.83.47]:33671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccClM-00045R-NV for 25670@debbugs.gnu.org; Fri, 10 Feb 2017 10:05:29 -0500 Received: by mail-pg0-f47.google.com with SMTP id 204so11252882pge.0 for <25670@debbugs.gnu.org>; Fri, 10 Feb 2017 07:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=m/6BmXq0FojBK/BSRNiwyX9SmXTmz4I9OGMkTXMId2M=; b=oFaTSikJMF0AtGmgP3c4xzupzOIEL79hOUdGKKlfEvfJpKqNlvSMId/LAniqlV3quQ e9HdizKCbUc98X4joulRaWV2b4Tcdw5Aka/uMOJQSrCNVhMimEOZ9iIYX2n1UL8k4mQ1 AC+6XsU1DVseQYFgS2Bvod4BsPE35e86cyhGA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=m/6BmXq0FojBK/BSRNiwyX9SmXTmz4I9OGMkTXMId2M=; b=X8Sl8u/4lQ0VXfOmoALjwbkP9XUJ+U6b0t0I9k5rVRvGnIt9mIuG3EL0xpQGtzSlcu N61E34dI8FxWNM7gH9uMdeHCQ/iskhhCgEkPfPTuM0XV2T4CnNEnxlD5pZoNNyj+1huJ LoSwbLC76CGrXAn8L+wL5VLxhob87m0xa9MI3Q0y89lvnkpmDzjNMxo0I/kP66krOZi2 8vccDpw1qRQHlTGGx17yHbq022KK4LWLVYWNpWqhIzwBbW9q2eYY6nhDPNvcSnlH0B44 Dmgr7EpuWt//+Yu290l7hLRrxDnNhYHoPJ+4S2eqzc9Hx5KIf0XgRIpkAozOSXjax5p8 munw== X-Gm-Message-State: AMke39naWt/7pztoAiRb/f644Hfb/GobWPPEruzzSDPoRuN6WSCAkyPoS97/vB0mFgQMVg== X-Received: by 10.98.147.207 with SMTP id r76mr10722068pfk.111.1486739122995; Fri, 10 Feb 2017 07:05:22 -0800 (PST) Received: from flea (c-98-229-60-157.hsd1.ma.comcast.net. [98.229.60.157]) by smtp.gmail.com with ESMTPSA id u129sm71475pfb.130.2017.02.10.07.05.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Feb 2017 07:05:21 -0800 (PST) From: Ted Zlatanov To: =?iso-8859-1?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#25670: Feature request: ignore --help in --script mode Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Fri, 10 Feb 2017 10:05:20 -0500 In-Reply-To: (=?iso-8859-1?Q?=22Cl=E9ment?= Pit--Claudel"'s message of "Thu, 9 Feb 2017 16:00:59 -0500") Message-ID: <87bmuakrwv.fsf@flea> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 25670 Cc: 25670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) On Thu, 9 Feb 2017 16:00:59 -0500 Cl=C3=A9ment Pit--Claudel wrote:=20 CP> More generally, could we guarantee that options that appear *after* "--= script" aren't processed by Emacs itself (and instead left to the script)? = Or would that break things? Typically I've seen "--" used to indicate the end of parseable options. Would it help? If so, I think it makes sense to support that in Emacs. There may be other future uses of it besides scripting. Ted From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 11:53:08 2017 Received: (at 25670-done) by debbugs.gnu.org; 10 Feb 2017 16:53:08 +0000 Received: from localhost ([127.0.0.1]:34934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccERY-0006Zd-9D for submit@debbugs.gnu.org; Fri, 10 Feb 2017 11:53:08 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:64009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccERW-0006Z8-0u for 25670-done@debbugs.gnu.org; Fri, 10 Feb 2017 11:53:06 -0500 Received: from [18.26.2.123] ([18.26.2.123]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.168]) with ESMTPSA (Nemesis) id 0Lmyme-1bvCWV0q3I-00h5Qx; Fri, 10 Feb 2017 17:52:59 +0100 Subject: Re: bug#25670: Feature request: ignore --help in --script mode To: Ted Zlatanov References: <87bmuakrwv.fsf@flea> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: <6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com> Date: Fri, 10 Feb 2017 11:52:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <87bmuakrwv.fsf@flea> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hBBfqEIe7jN1H5cXqdcah9DUGR1ocgJu5" X-Provags-ID: V03:K0:aCtQdihOmIjPDqI55/pxE3zJdljzY3av2piRGK8v3xsiJusoIQ7 hbkP787iH48gFf1T/avTKuSkz0xXZ8/Cs8Iu9dEQeQ1P1Ia3alHNNuPq5P8XuNfbdVKhXiq uKoGKofQlN+ykV1scVYQAvq3LOsEp1ummJIkM2BeeyWIApw8BgX2zEWRx+q6LUbI1mGRMfD L4aaz9n2LEN4PM7PouFNA== X-UI-Out-Filterresults: notjunk:1;V01:K0:zldI9UYUt1c=:GQIFy2ORSqRKOG1zCGUf73 d8UA67DsZPotNi+CqEVd4wpWlcoLQLf0cHAbpJf7rVsFfI2CuM/jo+mU192W9ALaDdsNHJarU UxSp0tOLYYSkEDcvPaYLdaGCMbDbsY+hQXpmUMV+/EPo1MqPuboPTWiqYiAEGmJEJ5SEYqD4o L/HEpcUVpCfr1CqsEHXHk3Krg4Wh4f2EixpIXXnGNaHLLgCXYR3+zlJalZatpyKJHBFtOz8f6 F3F65FHD5xw2by7A0WiyShOsD6N787seJwBKwAqzqnlpv+63Prdlj36Nhcf0SvQEZabLKdkF6 Y4ftIE6RgPGB6toXvMG5Eqmn15TRJwjCg1/HE5/zHzHmXhTMi+tlElQ9H5A+2BMqun6gV9QZB Ysd0d8IsT1WH4gUVcW2xyHhMCJ6wtzCLc4yfoFti7r8WjaQ/Ig/GR04zWkW89YdX411KnvsSc +jKat9JqIGHzloMBrRQQvCiC8NT5iGn6tQK2V9jB8Bzuq+rSbhi/evXlzIkweLLV1uOK7pa9q R5+URbrrHJX1SnlKgY3pf0yjRdmJ+192g4acv/bwfi6PRWvLoRgUR44xGwj9O5ueOKGfN6jy/ fSeACkGpVKNQGT4cLJnq/eY9i+L/1EAk1mFc71vTzuuK3AQRI3IauzS3+9mdwqg4unVCyoyUP J3JNxVrBPTzjCsgjWE6J771tGNObPOVTAYc2Hq1TDt8hY165I6Ji+j8NJdG3mnRpade4= X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 25670-done Cc: 25670-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hBBfqEIe7jN1H5cXqdcah9DUGR1ocgJu5 Content-Type: multipart/mixed; boundary="A11cx5vKcNrt4isueF75BTvB1KVUNrme1"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Ted Zlatanov Cc: 25670-done@debbugs.gnu.org Message-ID: <6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com> Subject: Re: bug#25670: Feature request: ignore --help in --script mode References: <87bmuakrwv.fsf@flea> In-Reply-To: <87bmuakrwv.fsf@flea> --A11cx5vKcNrt4isueF75BTvB1KVUNrme1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-02-10 10:05, Ted Zlatanov wrote: > On Thu, 9 Feb 2017 16:00:59 -0500 Cl=C3=A9ment Pit--Claudel wrote:=20 >=20 > CP> More generally, could we guarantee that options that appear *after*= "--script" aren't processed by Emacs itself (and instead left to the scr= ipt)? Or would that break things? >=20 > Typically I've seen "--" used to indicate the end of parseable options.= > Would it help? Yes! And in fact it seems to work :) Neat. $ emacs -Q --batch --eval '(print argv)' -- --help ("--" "--help") I see now that it was mentioned in http://www.lunaryorn.com/posts/emacs-s= cript-pitfalls.html. Not sure how I missed it. Thanks Ted! Cl=C3=A9ment. --A11cx5vKcNrt4isueF75BTvB1KVUNrme1-- --hBBfqEIe7jN1H5cXqdcah9DUGR1ocgJu5 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 iQIcBAEBCAAGBQJYne/jAAoJEPqg+cTm90wj5B8P/1DZwQAt6mrgyoZBPXrKvVCw H7Xq67JeTBmVv8eTDXLUlq+lS6Zhk6BL0LcVIl+NZM4gflvB1q/DHHR9Srk3DUP4 Vnq+Bm91E4tQGxEs0jZMHEh7+rwLxFs3f9+ZsZnm7K/K1YWC0VU6oZ1iEAoLSA/p cDZR/oBOc9FgTvo3XY0vDk3iOFDsC0be7BsKxsQT9xF+B3Toeq7Z7uPn7fRbyN9D o3R/qJQZVaYEu0+bguQ5v073Cc5UiaDabL/HTWZAiw5f6R9TOE16CGujxWlDth84 jVYuLv8lGdyzWRz2zzjFR044huMvOUI1ospVz5vZL9unvrjynMexxbZiISGxmK+9 8iUpHrkYrQGRM4mo6v5CckWmzsB1gsmr3ADYs0NC0/lY+3e+AHvMgjnjOh4bLMZ4 OJ7v86fXkQvh/qAQlU/8eRfs09yCklQpz1fcRaSjMExszSWj5dPUABWYL9e6kSWx 6q0KEYHi7J1kAADBoi+pWyaEOURJ7aKI2DJ8AfHlRM+GrFOOVphpoNW7yeR6k1Ze dQCYMkuQOaDsA9PM2SDxMeJTBydw+qpxwl9hM+AKy7ee5SWkRs0ASuFHqx4xChP1 +pRK9sfifnQN0HGJJsl2gzAvWuM6gzui2GRZKpvegQMMHG4O2ALubFJdGsUUCigW gy0/kDFdq/g+jXwnldbp =Ay2l -----END PGP SIGNATURE----- --hBBfqEIe7jN1H5cXqdcah9DUGR1ocgJu5-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 12:36:33 2017 Received: (at 25670) by debbugs.gnu.org; 10 Feb 2017 17:36:33 +0000 Received: from localhost ([127.0.0.1]:34967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccF7Y-0007bT-Uo for submit@debbugs.gnu.org; Fri, 10 Feb 2017 12:36:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccF7X-0007bH-TC for 25670@debbugs.gnu.org; Fri, 10 Feb 2017 12:36:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccF7S-0003k9-6X for 25670@debbugs.gnu.org; Fri, 10 Feb 2017 12:36:26 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccF7S-0003k4-3D; Fri, 10 Feb 2017 12:36:26 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ccF7R-0007dx-L5; Fri, 10 Feb 2017 12:36:25 -0500 From: Glenn Morris To: 25670@debbugs.gnu.org Subject: Re: bug#25670: Feature request: ignore --help in --script mode References: <87bmuakrwv.fsf@flea> <6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com> X-Spook: North Korea TB Radioactive DDOS Execution counter X-Ran: Erbp2pxE-:|ycRY<-@D[#|5o0h<3Of^mw)$,K"dZ:8RWbCkNGse~tH4!GP&^{8}hDaSQAD X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 10 Feb 2017 12:36:25 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25670 Cc: clement.pitclaudel@live.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Cl=C3=A9ment Pit--Claudel wrote: > $ emacs -Q --batch --eval '(print argv)' -- --help > ("--" "--help") 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 -- for them, you are already using a wrapper. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 15:24:12 2017 Received: (at 25670) by debbugs.gnu.org; 10 Feb 2017 20:24:13 +0000 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 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 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 Subject: Re: bug#25670: Feature request: ignore --help in --script mode To: Glenn Morris , 25670@debbugs.gnu.org References: <87bmuakrwv.fsf@flea> <6e731e53-dc69-f68e-aa52-82ba89c9c518@live.com> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: <9a2862f6-941c-ab22-4a80-d3b63525ca99@live.com> Date: Fri, 10 Feb 2017 15:23:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i58aaSxBR91pmM77uimuRNIitFXeknWgg" 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-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 25670 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) 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-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 18 04:58:41 2017 Received: (at 25670) by debbugs.gnu.org; 18 Feb 2017 09:58:41 +0000 Received: from localhost ([127.0.0.1]:44166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf1mr-0004R2-G5 for submit@debbugs.gnu.org; Sat, 18 Feb 2017 04:58:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf1mp-0004Qq-On for 25670@debbugs.gnu.org; Sat, 18 Feb 2017 04:58:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cf1mh-0007gW-Fq for 25670@debbugs.gnu.org; Sat, 18 Feb 2017 04:58:34 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf1mh-0007gP-CN; Sat, 18 Feb 2017 04:58:31 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4862 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cf1mg-0005wq-KU; Sat, 18 Feb 2017 04:58:31 -0500 Date: Sat, 18 Feb 2017 11:59:00 +0200 Message-Id: <83fujbrfa3.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel In-reply-to: (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Thu, 9 Feb 2017 16:00:59 -0500) Subject: Re: bug#25670: Feature request: ignore --help in --script mode References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25670 Cc: 25670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Clément Pit--Claudel > Date: Thu, 9 Feb 2017 16:00:59 -0500 > > Event with --script, Emacs still displays its help when passed --help. This is confusing for users (they might write emacs --script some-script.el --help expecting to get help on the script, but instead they get Emacs' help), and it force ELisp scripts to use --usage or some other harder-to-guess synonym. > > Could this be changed so that emacs --script a.el --help does not show Emacs' help? What should be done with --help in that case? (In general, I'd expect such script not to use --help or --version at all.) > More generally, could we guarantee that options that appear *after* "--script" aren't processed by Emacs itself (and instead left to the script)? Or would that break things? Which other options should be processed when --script is given? Are there any requirements for what command-line-args-left should have when the script is loaded? IOW, it is not clear to me what are the expectations in this use case. Please take a look at how the command-line arguments are processed at startup, in emacs.c and in startup.el, and make a more detailed proposal. Then we could see if it's easy to implement without potentially breaking anything. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 18 08:46:24 2017 Received: (at 25670) by debbugs.gnu.org; 18 Feb 2017 13:46:24 +0000 Received: from localhost ([127.0.0.1]:44365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf5LE-0003LA-I6 for submit@debbugs.gnu.org; Sat, 18 Feb 2017 08:46:24 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:51607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf5LC-0003Kv-R5 for 25670@debbugs.gnu.org; Sat, 18 Feb 2017 08:46:23 -0500 Received: from [18.189.114.32] ([18.189.114.32]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.184]) with ESMTPSA (Nemesis) id 0MYNd3-1csVcM1bOL-00VBLu; Sat, 18 Feb 2017 14:46:15 +0100 Subject: Re: bug#25670: Feature request: ignore --help in --script mode To: Eli Zaretskii References: <83fujbrfa3.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: <3d353b59-a76e-9be5-fe36-f9e6ee077343@live.com> Date: Sat, 18 Feb 2017 08:46:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <83fujbrfa3.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="blfsGjih27FgIW1PtqWmorgmR9cf8mlGO" X-Provags-ID: V03:K0:lwM96EMaayAS48iMS1ilxUro6d1gtbPltnTKet4U8G1wqZqoujX isRffK3U70Fh95kbpCw//STKMFHBTX+fzc2keW5os2yxoEtSlSHeunwUQnKgb7fEUs4gwLD YM8stHED+wPlkDgTgPyU7RnK11z7ldkU8XaJDz6R/Y4viDNNVd3yZQWOHZpgyRaMS6xzxhq SXzV52WQuWfTqy0UNTnJg== X-UI-Out-Filterresults: notjunk:1;V01:K0:8kI13rTRnbE=:ck8NeXxOhG5KC47jLVJucI Em5WM0vAGuP+ymThcDcpA54NWS43tPbvzyGF2EzC1w8kHy33Bi/58divWqfjSIlooQ4XwcmwG KvVgb5yGRdFwmDj9zZ0cTdvcDD3+CkxcOSP1hEO5RUAhZaD45A33rk5OMvo4gII4LlFdOxRf6 FPiTCHtv/jgKc1PTsPc7VoIFUbB9OBd7BKjeaPk8pcWFXH3bWgwrFLVAxlUJ1hO6vg/559lRG GU7megDLGvG3PtKRPjkelskjz8mz1YNgukdsCzZ3Ezl9SvwNkOoTcZx/Gfr6Fp2RJhiT2XKfh mhbl6ME649l3QvW/K6Cw1c6TJ7QgZJceFsZB2JKC9IeUycSKbotKGmnukYsXB0dRDoo6XGD3Q lTcXgBXnDPQxqwbmrzIfgVEW9BITdT53ZxBGCIqZ3T0WxWAFEt8qfyXLxjK2Ec/mJYtI6OH7u DECurUKmUitFbL0gCXE0u9djjXRVeNkb2A0R1bT/UsAht1/eSBhmu11FwGwBfmIf1uK+4/7pK RM67Kkb7WOo5RY2CNKwDs6iIZnegakO8GerbRIS+zfLjBG3keTQFTwzBSu/9z4XN3mM32FpO6 mRd2IzdCgnKH37TuEd89zN+jeHQXEFnJ9JqFu5hNyL1L+3x1Mj/6CID3OpfOYKWAy1CJ2rNZO jz8ePZMoUmHpXRlmh3OIu9kTpHVJv65O/U20LQQY7rvFtvbkcZX7EPaAZFggDWQtidr8= X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 25670 Cc: 25670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --blfsGjih27FgIW1PtqWmorgmR9cf8mlGO Content-Type: multipart/mixed; boundary="Hf7pgLGRTc0JBi2JLvbEGm9QRjLRguIce"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Eli Zaretskii Cc: 25670@debbugs.gnu.org Message-ID: <3d353b59-a76e-9be5-fe36-f9e6ee077343@live.com> Subject: Re: bug#25670: Feature request: ignore --help in --script mode References: <83fujbrfa3.fsf@gnu.org> In-Reply-To: <83fujbrfa3.fsf@gnu.org> --Hf7pgLGRTc0JBi2JLvbEGm9QRjLRguIce Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-02-18 04:59, Eli Zaretskii wrote: > IOW, it is not clear to me what are the expectations in this use case. > Please take a look at how the command-line arguments are processed at > startup, in emacs.c and in startup.el, and make a more detailed > proposal. Then we could see if it's easy to implement without > potentially breaking anything. Ted's pointer to Emacs' support for "--" solved this problem for me: when= I pass "--" before "--help", Emacs doesn't process "--". So I don't --s= cript to be special-cased any more :) Cl=C3=A9ment. --Hf7pgLGRTc0JBi2JLvbEGm9QRjLRguIce-- --blfsGjih27FgIW1PtqWmorgmR9cf8mlGO 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 iQIcBAEBCAAGBQJYqFAfAAoJEPqg+cTm90wjHKoQAKoembSGTyWrm4prHR9zD7JQ DFZHPdwt75oInFF/l8GvuAGRxPXo+GnHYVqbES/4CpkzP5lUhVoJBbG/DPTe0qVE l1/s/qgWi89x/9Sqx+eOKjQ1ZTLrYCq03jMvo0nUlnUFIFO8QHzfosQAWgi+MwBm WuMZ8Im98sEeV+RmW5hC8+wKtoUfQ2nbitoVtGHghArBtdLzQJz+mVEkJ3oxWyUP w42VUFEPWk6ZZjVwuSLAD6OYkQVhs9EBz/FZrvjKi+mJCfXxl9Fp9mrgY7PCY+JB 1fwh+dLDJ/PcKMiqmymADoJ5ayCbKZAIySlYllAZlN+Wo/VJxzfYseEL7gpnxXpw wYlauk6YgFbFH3Uu5EJAV5gLM0rjzyCbCCN5HTfdjTUgvTiRpw6Q/xVWdl9VqtLw r5x1usdDBb4z7akY0Gx14eD882poCD4oSJ5v1XyvhMVkjjZgZ+slJkZGH2FMGXkM Oe0sVU3p0LTvBqa+JiPZgNMU35kICTE7WTky9TLwSf0Fsg44sxQOkTDF1nCNQ0VC vHaeL95CJTz8taCDoFjyUwHF/SvZ70stLTv6zx/sZIQdI7xPIZia7DbmlkozfJuv cXxDL+kr8C8Fj3Ev7K5BlKPRtAsTQjf18/5rPn9eNMpBKEK3hQn1rBc8cq3XAPUZ ww+mRF3UnfWawXwuSSGP =zuTV -----END PGP SIGNATURE----- --blfsGjih27FgIW1PtqWmorgmR9cf8mlGO-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 18 09:17:58 2017 Received: (at 25670) by debbugs.gnu.org; 18 Feb 2017 14:17:58 +0000 Received: from localhost ([127.0.0.1]:44400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf5pl-00043i-TF for submit@debbugs.gnu.org; Sat, 18 Feb 2017 09:17:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf5pk-00043V-90 for 25670@debbugs.gnu.org; Sat, 18 Feb 2017 09:17:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cf5pb-0003Dr-0a for 25670@debbugs.gnu.org; Sat, 18 Feb 2017 09:17:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf5pa-0003Dn-Tp; Sat, 18 Feb 2017 09:17:46 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2977 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cf5pa-0003Tl-7E; Sat, 18 Feb 2017 09:17:46 -0500 Date: Sat, 18 Feb 2017 16:18:17 +0200 Message-Id: <83vas7popi.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel In-reply-to: <3d353b59-a76e-9be5-fe36-f9e6ee077343@live.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Sat, 18 Feb 2017 08:46:07 -0500) Subject: Re: bug#25670: Feature request: ignore --help in --script mode References: <83fujbrfa3.fsf@gnu.org> <3d353b59-a76e-9be5-fe36-f9e6ee077343@live.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25670 Cc: 25670@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 25670@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Sat, 18 Feb 2017 08:46:07 -0500 > > Ted's pointer to Emacs' support for "--" solved this problem for me: when I pass "--" before "--help", Emacs doesn't process "--". So I don't --script to be special-cased any more :) OK, thanks. From unknown Sun Jun 22 11:32:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 19 Mar 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator