]> git.eshelyaron.com Git - emacs.git/commit
Make it easier to use Emacs as a script interpreter
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 18 Apr 2022 10:58:54 +0000 (12:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 18 Apr 2022 10:59:03 +0000 (12:59 +0200)
commitfac640ee8608748f0c4b867080d554c1b94121bd
treec246d33bea0a7b08204d892cb17969147bca6404
parent89a5aa4ca791b3ffefb0a5d464fa433f310a8398
Make it easier to use Emacs as a script interpreter

* doc/emacs/cmdargs.texi (Initial Options): Document -x.
* lisp/startup.el (command-line-1): Add new -scripteval.
(command-line--eval-script): New function.

* src/emacs.c (main): Transform -x to -scripteval.
(standard_args): Add -x (bug#20682).
doc/emacs/cmdargs.texi
etc/NEWS
lisp/startup.el
src/emacs.c