]> git.eshelyaron.com Git - emacs.git/commit
Fix a race condition when running Eshell startup scripts
authorJim Porter <jporterbugs@gmail.com>
Mon, 21 Oct 2024 21:21:50 +0000 (14:21 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 19:02:35 +0000 (21:02 +0200)
commit7dbf7a39dc545c2ef0a0a49759f9e79c8529272a
tree59eeb914051b33b1a58b1237d95c96aaf4e7ebee
parent8ebb1a90ef7f8e5c05f0d20480c38177468f365f
Fix a race condition when running Eshell startup scripts

Previously, these scripts could run before all the Eshell modules had
fully-initialized.

* lisp/eshell/esh-mode.el (eshell-after-initialize-hook): New hook...
(eshell-mode): ... run it.

* lisp/eshell/em-script.el (eshell-run-startup-scripts): New function...
(eshell-script-initialize): ... add it to
'eshell-after-initialize-hook'.

* etc/NEWS: Announce 'eshell-after-initialize-hook'.

(cherry picked from commit 605f26cf70ab3d7c5ea635c19cd2a280812a4ddc)
etc/NEWS
lisp/eshell/em-script.el
lisp/eshell/esh-mode.el