Function: eshell-initialize-modules

eshell-initialize-modules is a byte-compiled function defined in esh-module.el.gz.

Signature

(eshell-initialize-modules MODULES)

Documentation

Initialize Eshell MODULES.

This calls MODULE-load-hook and MODULE-initialize for each MODULE, if they're defined.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-module.el.gz
(defun eshell-initialize-modules (modules)
  "Initialize Eshell MODULES.
This calls `MODULE-load-hook' and `MODULE-initialize' for each
MODULE, if they're defined."
  (dolist (module modules)
    (let ((load-hook (intern-soft (format "%s-load-hook" module)))
          (initfunc (intern-soft (format "%s-initialize" module))))
      (when (and load-hook (boundp load-hook))
        (if (memq initfunc (symbol-value load-hook)) (setq initfunc nil))
        (run-hooks load-hook))
      ;; So we don't need the -initialize functions on the hooks (bug#5375).
      (and initfunc (fboundp initfunc) (funcall initfunc)))))