]> git.eshelyaron.com Git - emacs.git/commit
Make `restart-emacs' work when Emacs is started with --chdir
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 18 Apr 2022 09:31:28 +0000 (11:31 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 18 Apr 2022 09:31:28 +0000 (11:31 +0200)
commit088cb6115f9e3c4637b1eafbffa022873a70d7e9
tree54a17c48f8a71ac888b4652763babe53a2cc3e13
parent9fc3b003730b90d88af11a31ea55c38fd733503b
Make `restart-emacs' work when Emacs is started with --chdir

* src/emacs.c (find_emacs_executable): Rename from
load_pdump_find_executable and always define.
(load_pdump): Return the executable.
(main): Store the executable.
(Fkill_emacs): Use the stored executable so that --chdir works
with relative executable names, and so that we attempt to restart
the same executable and not some other Emacs from PATH.
src/emacs.c