aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2001-06-19 20:25:18 +0000
committerJohn Wiegley2001-06-19 20:25:18 +0000
commitbb155908ec7d2c8acca9cdf805b418dd052c3ac2 (patch)
treecdb5a349ddba245a204cec23338241d7c64ca7dd
parentf84e9763cdc3706bbd7d33ba30087a7e8f56ec03 (diff)
downloademacs-bb155908ec7d2c8acca9cdf805b418dd052c3ac2.tar.gz
emacs-bb155908ec7d2c8acca9cdf805b418dd052c3ac2.zip
Don't load in esh-util if it's already loaded. Also, added a comment
describing how to greatly speedup Eshell loadup time, by concatenating together all of Eshell's .elc files.
-rw-r--r--lisp/eshell/eshell.el54
1 files changed, 53 insertions, 1 deletions
diff --git a/lisp/eshell/eshell.el b/lisp/eshell/eshell.el
index 8e30d5de48d..f21af456973 100644
--- a/lisp/eshell/eshell.el
+++ b/lisp/eshell/eshell.el
@@ -210,11 +210,63 @@ the tasks accomplished by such tools."
210;; @ 4nt 210;; @ 4nt
211;; @ csh 211;; @ csh
212 212
213;;;_* Speeding up load time
214;;
215;; If you find that Eshell loads too slowly, there is something you
216;; can do to speed it up.
217;;
218;; Create a file, named /tmp/elc, containing this filelist:
219;;
220;; esh-util.elc
221;; eshell.elc
222;; esh-module.elc
223;; esh-var.elc
224;; esh-proc.elc
225;; esh-arg.elc
226;; esh-io.elc
227;; esh-ext.elc
228;; esh-cmd.elc
229;; esh-mode.elc
230;; esh-opt.elc
231;; em-alias.elc
232;; em-banner.elc
233;; em-basic.elc
234;; em-cmpl.elc
235;; em-dirs.elc
236;; em-pred.elc
237;; em-glob.elc
238;; em-hist.elc
239;; em-ls.elc
240;; em-prompt.elc
241;; em-rebind.elc
242;; em-script.elc
243;; em-smart.elc
244;; em-term.elc
245;; em-unix.elc
246;; em-xtra.elc
247;;
248;; The order is very important. Remove from the filelist any features
249;; you don't use. These all begin with "em-". If you don't use
250;; Eshell's key rebinding module, you can remove "em-rebind.elc" from
251;; the filelist. The modules you are currently using are listed in
252;; `eshell-modules-list'.
253;;
254;; Now, concatenating all of the above mentioned .elc files, in that
255;; order, to another file. Here is how to do this on UNIX:
256;;
257;; cat `cat /tmp/elc` > tmp.elc ; mv tmp.elc eshell.elc
258;;
259;; Now your eshell.elc file contains all of the .elc files that make
260;; up Eshell, in the right load order. When you next load Eshell, it
261;; will only have to read in this one file, which will greatly speed
262;; things up.
263
213;;;_* User Options 264;;;_* User Options
214;; 265;;
215;; The following user options modify the behavior of Eshell overall. 266;; The following user options modify the behavior of Eshell overall.
216 267
217(load "esh-util" nil t) 268(unless (featurep 'esh-util)
269 (load "esh-util" nil t))
218 270
219(defsubst eshell-add-to-window-buffer-names () 271(defsubst eshell-add-to-window-buffer-names ()
220 "Add `eshell-buffer-name' to `same-window-buffer-names'." 272 "Add `eshell-buffer-name' to `same-window-buffer-names'."