From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Minshall Newsgroups: gmane.emacs.devel Subject: Re: Emacs script options Date: Sat, 18 Nov 2023 11:49:20 -0800 Message-ID: <7953.1700336960@archlinux> References: <1325582.1700277236@archlinux> <8734x2zwnc.fsf@whxvd.name> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5626"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Sebastian Miele Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 18 20:50:34 2023 Return-path: Envelope-to: ged-emacs-devel@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 1r4RKs-0001Dx-C9 for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Nov 2023 20:50:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4RJv-0002Ys-4l; Sat, 18 Nov 2023 14:49:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4RJt-0002YY-29 for emacs-devel@gnu.org; Sat, 18 Nov 2023 14:49:33 -0500 Original-Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.219.209.13] helo=favorite-arawn.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4RJo-0002iM-3E for emacs-devel@gnu.org; Sat, 18 Nov 2023 14:49:32 -0500 Original-Received: from famed-barghest.authn-relay.a.mail.umich.edu (ip-10-0-73-53.us-east-2.compute.internal [10.0.73.53]) by favorite-arawn.relay-egress.a.mail.umich.edu with ESMTPS id 65591546.1462A096.3F8E65BE.1665260; Sat, 18 Nov 2023 14:49:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1700336966; bh=EeDvhw4kD3YqjGiun5l25win929yct/ZQuQxHO7Bh4k=; h=To:cc:From:Subject:In-reply-to:References:Date; b=UhGLKHCFFl7FWf0awLSqLBlXsKApiwMDsQluEgP3LZi3I79+SzLCVw8SYNS7Zi765 TuJkUiysGdo1pg4KKDjLjyaUfmbj64qKh2u7cFDD/kDNOrjnSWP5wYzLkyaHVMtvSj vTYrHs0uil+dPp9oVizcbtzRxIYy7mvwQuQ7eBdB/n2clBRlDZ9q4to0hEkWALxchh KzzJvbmW1HDzAQP/drOY6zi7BCnRr6rDFJno/+iDRg/lI4B59kCGi4eGSw09KkvSQS RSc1OpWNz5NLn9U6BCdCXRs9/49z6pnVb5lvUP5MftV9IVZ7e32l6O+3SfwksPjbyT ua34s/IUDF3nQ== Authentication-Results: famed-barghest.authn-relay.a.mail.umich.edu; iprev=pass policy.iprev=134.16.93.10 (134-016-093-010.res.spectrum.com); auth=pass smtp.auth=minshall Original-Received: from localhost (134-016-093-010.res.spectrum.com [134.16.93.10]) by famed-barghest.authn-relay.a.mail.umich.edu with ESMTPSA id 65591545.F2F68E0.4F578D85.440263; Sat, 18 Nov 2023 14:49:25 -0500 In-reply-to: <8734x2zwnc.fsf@whxvd.name> Comments: In-reply-to Sebastian Miele message dated "Sat, 18 Nov 2023 20:18:00 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 30.0.50 Received-SPF: pass client-ip=18.219.209.13; envelope-from=minshall@umich.edu; helo=favorite-arawn.relay-egress.a.mail.umich.edu X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312928 Archived-At: Sebastian Miele wrote: > On Linux that can be achieved by defining a custom interpreter. E.g., > put the following into =E2=80=98/path/to/emacs-script=E2=80=99: yes, thanks. R has similar (Rscript in R itself; r in littler). for a script writer, it's somewhat of a barrier, wondering how many potential users' machines will have such a script installed; for users, it's one more hurdle between them and making use of a provided script. one could also *imagine* (i.e., i think this could work) a packaging step that would turn one's elisp script into a string and embed it inside a "#!/bin/sh" script that would unquote the string and feed it (along with the command line arguments) to Emacs. if that worked, it at least would remove the minor hurdle of needing the custom interpreter you suggest (since everything -- in my fantaxy -- would be in one file). it seems very messy, though. cheers, Greg