From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs script options Date: Sun, 19 Nov 2023 07:55:54 +0200 Message-ID: <83wmuel21h.fsf@gnu.org> References: <1325582.1700277236@archlinux> <83cyw7o6m3.fsf@gnu.org> <1496758.1700318304@archlinux> <83cyw7m3rr.fsf@gnu.org> <7094.1700336212@archlinux> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Greg Minshall Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 19 06:57:09 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 1r4ant-0007K2-1f for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 06:57:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4an0-00037G-NK; Sun, 19 Nov 2023 00:56:14 -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 1r4amy-000373-UV for emacs-devel@gnu.org; Sun, 19 Nov 2023 00:56:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4amy-0003Ti-Cv; Sun, 19 Nov 2023 00:56:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=nKLc5yJnvC9sza5C/YnK4TKVe2GieU+bsHjhde+riFw=; b=hkfruVo+q77T TrhOBQp6f6GEzofmUvU0V4YchMo+cq1VNIy3e4lM6YL2NcOsjaTo/MFthPZsSEhwPkNqpLLN+TcOu pVAQwSwGnk1QpFz/wmija6vdoZ+04lUiz+m6pNlpm/xFu9r3vzmCaB3hXQ4yh6xe3yfzuILpewdji fr4+CbtT4+YS5YesRCX0DsgdOan1/PUo05tWRIqRqqfo+vPy0RjmZN2kw7fuoStlA/nFCKm4kaUC1 bE8MTWmb9jnMWT56cFMFmzSvRsmeGRnK0CkMVmQ1gCxSqrJTv+GaX6VJOCQRSnZd8pjcQv7P/PpVD epX1leZDef9WPBctriA+4A==; In-Reply-To: <7094.1700336212@archlinux> (message from Greg Minshall on Sat, 18 Nov 2023 11:36:52 -0800) 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:312944 Archived-At: > cc: emacs-devel@gnu.org > From: Greg Minshall > Comments: In-reply-to Eli Zaretskii > message dated "Sat, 18 Nov 2023 18:20:56 +0200." > Date: Sat, 18 Nov 2023 11:36:52 -0800 > > Eli Zaretskii wrote: > > > How would you pass these -F, -d, -V etc. options to Emacs, or use them > > in any other way in the script, whose contents is supposed to be an > > Emacs Lisp program? There's something I'm missing here. I asked my > > question because I thought you had a real-life example of a script you > > wanted to use, but in your response you don't show any such example. > > Can you show it? > > in this case, the -F, -d, -V are aimed at the elisp code running in the > script, not for Emacs itself. So this is about avoiding the need to type "--" before those options which you want to be passed to the Lisp code? Can't you arrange for another script or shell alias that would inject the "--" part before invoking the main script?