# HG changeset patch # User Glenn Morris # Date 1196838059 0 # Node ID 14174df2455d3590f33698ad4bd9982c75f739d3 # Parent ad15f913bd02241c1875561e7b7b16800d0f908c Require individual files if needed when compiling, rather than esh-maint. Collect any require statements. Move provide statement to end. Move any commentary to start. diff -r ad15f913bd02 -r 14174df2455d lisp/eshell/em-dirs.el --- a/lisp/eshell/em-dirs.el Wed Dec 05 07:00:41 2007 +0000 +++ b/lisp/eshell/em-dirs.el Wed Dec 05 07:00:59 2007 +0000 @@ -22,20 +22,6 @@ ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. -(provide 'em-dirs) - -(eval-when-compile (require 'esh-maint)) -(require 'eshell) - -(defgroup eshell-dirs nil - "Directory navigation involves changing directories, examining the -current directory, maintaining a directory stack, and also keeping -track of a history of the last directory locations the user was in. -Emacs does provide standard Lisp definitions of `pwd' and `cd', but -they lack somewhat in feel from the typical shell equivalents." - :tag "Directory navigation" - :group 'eshell-module) - ;;; Commentary: ;; The only special feature that Eshell offers in the last-dir-ring. @@ -57,9 +43,21 @@ ;; Eshell sessions. It is a separate mechanism from `pushd' and ;; `popd', and the two may be used at the same time. +;;; Code: + +(require 'eshell) (require 'ring) (require 'esh-opt) +(defgroup eshell-dirs nil + "Directory navigation involves changing directories, examining the +current directory, maintaining a directory stack, and also keeping +track of a history of the last directory locations the user was in. +Emacs does provide standard Lisp definitions of `pwd' and `cd', but +they lack somewhat in feel from the typical shell equivalents." + :tag "Directory navigation" + :group 'eshell-module) + ;;; User Variables: (defcustom eshell-dirs-load-hook '(eshell-dirs-initialize) @@ -566,7 +564,7 @@ (write-region (point-min) (point-max) file nil 'no-message)))))))) -;;; Code: +(provide 'em-dirs) ;;; arch-tag: 1e9c5a95-f1bd-45f8-ad36-55aac706e787 ;;; em-dirs.el ends here