From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#25671: Feature request: emacs -Q --script as a single binary Date: Fri, 06 May 2022 00:14:53 +0200 Message-ID: <87levfocde.fsf@web.de> References: <878uc8pzyc.fsf@web.de> <874k2qk64p.fsf_-_@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9724"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 25671@debbugs.gnu.org, Glenn Morris , Stefan Monnier , 20682@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 06 00:16:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmjld-0002N9-6e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 May 2022 00:16:13 +0200 Original-Received: from localhost ([::1]:54802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmjlc-0004vC-0j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 May 2022 18:16:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmjlT-0004uq-1B for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 18:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52823) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmjlS-0003BK-PE for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 18:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nmjlS-0001i4-Kz for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 18:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 May 2022 22:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25671 X-GNU-PR-Package: emacs Original-Received: via spool by 25671-submit@debbugs.gnu.org id=B25671.16517889076470 (code B ref 25671); Thu, 05 May 2022 22:16:02 +0000 Original-Received: (at 25671) by debbugs.gnu.org; 5 May 2022 22:15:07 +0000 Original-Received: from localhost ([127.0.0.1]:46715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmjkZ-0001gH-8C for submit@debbugs.gnu.org; Thu, 05 May 2022 18:15:07 -0400 Original-Received: from mout.web.de ([212.227.17.11]:52797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmjkW-0001fP-Qm; Thu, 05 May 2022 18:15:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1651788894; bh=3rs0woCy5GLpdwcYYXDtclNLcdJocu7CFjxiTGrBXYk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=n2GzNjOeg/m0PXc5b7NiE41Fh9uu26XQxYSq1H2I2pT6kcrhq5Owk6W1v/cRDeoou LqnlWWK8I0rKlMyaenh0ToTmVfyJe9ldpe4a1DVdnTAlVPYit9rRFrZZqJbyudzFih 3mormHKA6tQvaAxwdP7uqjnZ7F4cGrUP6AmK6LGQ= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([178.6.28.204]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MUUAM-1nMIuc3f7Y-00Qayf; Fri, 06 May 2022 00:14:54 +0200 In-Reply-To: <874k2qk64p.fsf_-_@gnus.org> (Lars Ingebrigtsen's message of "Mon, 18 Apr 2022 13:01:10 +0200") X-Provags-ID: V03:K1:MFRweml4xTdm2INjGbfJGv2GaXp0gjLV4IVWkyr8hU4bAzKrHWA ZW/+qlSvydhHpfKpTdQojyH6MTErRG+Mi/AbQXAqw69wAuk4TAyuVWHumnOj7mmE3EDb2rM Wc1JZs+TMNSXATBjV26t3MAXznf760JMYK1ilSEU2lbIGDmEbW33/GGEtTb7qPn71l9hWWi oB+vbjytceicNHEl6OdSg== X-UI-Out-Filterresults: notjunk:1;V03:K0:PH9Q3KTYp0I=:2CW8ne/X9AK/vMndVFKv8S iRxofa1i3csTz/b/6Q3lmJpodBfNH7Yb/T8T3J33mHgyyKpQXibuqF5s4uhtO7Wz6cIAiyBJN +IdWukCnEXL8tZ1ZYbyl+p9fhBx79YV+gTdtB0/bakWQf+kOXd5XOKih1nlVHfEkUxJUpAP+r 6/UildP0bznuPbTopf37jWD4jJ9g7n3dJkJmPuAY4URR5rxdGlUrR3j7fCfYm/IFTXOsBs3qk hAn5fI5eurKugROBKIjKvH3edlLKXSwr2Qxio3zPGjeS/QWke5FNIv2ka5/MzaVDZWqZJAYrA EgafSCLMJe71HmlREnUC4dMqKJgxCLq7y/PdD3154w5fa+Ixbb6Y1fvxTRC+4j5nBiN3a/t9J t5sjelIje6w8Vcme0C5vfMYP9Z7a65eKgD0P0onvJf+q1Lf+MXxvUa5spCVg3yzCb1JVi6fr8 aVh62V75Q/OVS/CJj0Aou3HjFMHvsAGUyWsdHSAyTQ1aqUHj6twjOot8XC7jQ82rXurqKtS14 OrNy/+Z4Po+jGTaXopDY427hMYIp0IcHS7YQoyqIG/8xSTqdyzI50m+V4EP8XH/hvc46424n3 hMigwlRFg+4Og/J+tspvQ1i0v/Fqyy5N7hq9aZfW0ySp5XsTtloTaQZ5LxYt6sYhujiw72nej CpitvD795Yk3R2eMOLz8czgo7tlzo0LWXqa/sR/mRsqpIC61c7VOXlY0ws2j6UfXLm/L4IKGF xD1zYBxYpG+znRrbnrsvYTD4RfukQ3hNPuuN9hsS+rMu5f4R+jkG8RwIFwKUt3RYpfasITTX X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231467 Archived-At: Lars Ingebrigtsen writes: > > Amazingly, "-x" is available as an Emacs command-line switch... > > I think that sounds really attractive, so I've added this to Emacs 29. > The new -x switch is like --script, but will kill Emacs when it reaches > the end of the script, and return the value of the final form as the > return value, so you can say use 0 at the end to signal success to the > caller. Thanks - but it doesn't work correctly for me. Contrarily to --script, my init file is being loaded with -x. Does that work correctly for you, Lars? TIA, Michael.