Function: eshell-load-modules

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

Signature

(eshell-load-modules MODULES)

Documentation

Load Eshell MODULES into memory.

This will cause any global variables they define to be visible so that other modules can take advantage of their functionality if desired.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-module.el.gz
(defun eshell-load-modules (modules)
  "Load Eshell MODULES into memory.
This will cause any global variables they define to be visible so
that other modules can take advantage of their functionality if
desired."
  (let ((verbose eshell-module-loading-messages))
    (dolist (module modules)
      (let ((module-feature-name (eshell-module--feature-name module)))
        (unless (featurep (intern module-feature-name))
          (when verbose (message "Loading %s..." module))
          (condition-case-unless-debug nil
              (progn
                (load module-feature-name nil t)
                (when verbose (message "Loading %s...done" module)))
            (error (when verbose (message "Loading %s...failed" module))
                   (lwarn 'eshell :error
                          "Unable to load Eshell module `%s'"
                          module))))))))