]> git.eshelyaron.com Git - emacs.git/commit
Consolidate Eshell module loading/unloading code
authorJim Porter <jporterbugs@gmail.com>
Sat, 11 Mar 2023 03:02:26 +0000 (19:02 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 May 2024 14:26:37 +0000 (16:26 +0200)
commit83f6d5a12a6b5663678d8038f949bf3b069933f1
tree916d49788d5c7c2b1d5fce997ff401d6d92e5385
parent95445035ba97671b6c58a5584410e66fcb3de651
Consolidate Eshell module loading/unloading code

This also adds the ability to suppress module loading/unloading
messages, which will be necessary to support running Eshell scripts as
batch scripts.

* lisp/eshell/esh-mode.el (eshell-mode): Move module
loading/initialization to...

* lisp/eshell/esh-module.el (eshell-load-modules)
(eshell-initialize-modules): ... here.
(eshell-module-loading-messages): New option.
(eshell-module--feature-name): Improve docstring.
(eshell-unload-modules): Display a real warning if unable to unload a
module.

* test/lisp/eshell/eshell-tests-helpers.el (with-temp-eshell)
(eshell-command-result-equal):
* test/lisp/eshell/eshell-tests-unload.el (load-eshell): Silence Eshell
loading messages.

(cherry picked from commit 6c2f21e4a6ff65cc1697cb8a6ba0e1ef1a52ae1c)
lisp/eshell/esh-mode.el
lisp/eshell/esh-module.el
test/lisp/eshell/eshell-tests-helpers.el
test/lisp/eshell/eshell-tests-unload.el