[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs script options
|
From: |
Jens Schmidt |
|
Subject: |
Re: Emacs script options |
|
Date: |
Sun, 19 Nov 2023 22:39:09 +0100 |
|
User-agent: |
Mozilla Thunderbird |
On 2023-11-18 20:49, Greg Minshall wrote:
> 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.
What about this one, which nicely plays with the meaning of ";" in
Emacs and the Bourne shell:
------------------------- test -------------------------
#!/bin/sh
: ; exec emacs --script "$0" -- "$@"
(message "%S" command-line-args-left)
------------------------- test -------------------------
Might not be very portable. And I couldn't cram the lexical-bindings
line in, yet.
- Re: (unknown) -x behavior change, (continued)
Re: Emacs script options, Sebastian Miele, 2023/11/18
- Re: Emacs script options, Greg Minshall, 2023/11/18
- Re: Emacs script options,
Jens Schmidt <=
- Re: Emacs script options, Jens Schmidt, 2023/11/19
- Re: Emacs script options, Greg Minshall, 2023/11/19
- Re: Emacs script options, Jens Schmidt, 2023/11/21
- Re: Emacs script options, Sebastian Miele, 2023/11/22
- Re: Emacs script options, Jens Schmidt, 2023/11/22
- Re: Emacs script options, Greg Minshall, 2023/11/23
- Re: Emacs script options, Jens Schmidt, 2023/11/26
Re: Emacs script options, Sebastian Miele, 2023/11/20
Re: Emacs script options, Jens Schmidt, 2023/11/20
Re: Emacs script options, Sebastian Miele, 2023/11/21