X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/7ad8fe5e2876518a8f33b80050f98dab4ff78398..7cef3569a3d872ea5be07a529b68910bf1d8b790:/lisp/eshell/esh-module.el diff --git a/lisp/eshell/esh-module.el b/lisp/eshell/esh-module.el index dd5244752c..2e3c6b8b7b 100644 --- a/lisp/eshell/esh-module.el +++ b/lisp/eshell/esh-module.el @@ -1,7 +1,6 @@ ;;; esh-module.el --- Eshell modules -;; Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, -;; 2008 Free Software Foundation, Inc. +;; Copyright (C) 1999-2000, 2002-2012 Free Software Foundation, Inc. ;; Author: John Wiegley ;; Keywords: processes @@ -37,14 +36,16 @@ customizing the variable `eshell-modules-list'." ;; load the defgroup's for the standard extension modules, so that ;; documentation can be provided when the user customize's -;; `eshell-modules-list'. -(require 'esh-groups) +;; `eshell-modules-list'. We use "(progn (defgroup ..." in each file +;; to force the autoloader into including the entire defgroup, rather +;; than an abbreviated version. +(load "esh-groups" nil 'nomessage) ;;; User Variables: (defcustom eshell-module-unload-hook '(eshell-unload-extension-modules) - "*A hook run when `eshell-module' is unloaded." + "A hook run when `eshell-module' is unloaded." :type 'hook :group 'eshell-module) @@ -62,7 +63,7 @@ customizing the variable `eshell-modules-list'." eshell-script eshell-term eshell-unix) - "*A list of optional add-on modules to be loaded by Eshell. + "A list of optional add-on modules to be loaded by Eshell. Changes will only take effect in future Eshell buffers." :type (append (list 'set ':tag "Supported modules") @@ -93,12 +94,11 @@ customization group. Example: `eshell-cmpl' for that module." (defun eshell-unload-extension-modules () "Unload any memory resident extension modules." - (eshell-for module (eshell-subgroups 'eshell-module) + (dolist (module (eshell-subgroups 'eshell-module)) (if (featurep module) (ignore-errors (message "Unloading %s..." (symbol-name module)) (unload-feature module) (message "Unloading %s...done" (symbol-name module)))))) -;; arch-tag: 97a3fa16-9d08-40e6-bc2c-36bd70986507 ;;; esh-module.el ends here