]> git.eshelyaron.com Git - emacs.git/commitdiff
Require individual files if needed when compiling, rather than
authorGlenn Morris <rgm@gnu.org>
Wed, 5 Dec 2007 07:07:39 +0000 (07:07 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 5 Dec 2007 07:07:39 +0000 (07:07 +0000)
esh-maint.  Collect any require statements.  Move provide statement to
end.  Move any commentary to start.
(eshell-buffer-name): Define for compiler.

lisp/eshell/eshell.el

index 8ee925c23cda92435b1e6db4306913e18056bddf..58bc72a3ea9d2c1c34a0a8e9117d950bc092b1c1 100644 (file)
 ;; will only have to read in this one file, which will greatly speed
 ;; things up.
 
-(require 'esh-mode)
+(eval-when-compile
+  (require 'cl)
+  (require 'esh-util))
 (require 'esh-util)
-(eval-when-compile (require 'esh-maint))
+(require 'esh-mode)
 
 (defgroup eshell nil
   "Eshell is a command shell implemented entirely in Emacs Lisp.  It
@@ -243,6 +245,7 @@ the tasks accomplished by such tools."
 ;;;_* User Options
 ;;
 ;; The following user options modify the behavior of Eshell overall.
+(defvar eshell-buffer-name)
 
 (defsubst eshell-add-to-window-buffer-names ()
   "Add `eshell-buffer-name' to `same-window-buffer-names'."