From 11740ce56d3344730e50e69e6a1c3bcde30d3f35 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 5 Dec 2007 07:09:53 +0000 Subject: [PATCH] Require individual files if needed when compiling, rather than esh-maint. Collect any require statements. Leave provide at start. Move any commentary to start. --- lisp/ChangeLog | 33 +++++++++++++++++++++++++++++++++ lisp/eshell/esh-var.el | 28 ++++++++++++++++------------ 2 files changed, 49 insertions(+), 12 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index baddff10bac..b37987cb895 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,38 @@ 2007-12-05 Glenn Morris + * eshell/em-alias.el (pcomplete-stub): Define for compiler. + (pcomplete-here): Autoload it. + + * eshell/em-basic.el (print-func): No need to define for compiler. + + * eshell/esh-cmd.el (eshell-debug-command): + * eshell/esh-io.el (eshell-print): Move definitions before use. + + * eshell/esh-module.el (eshell-load-defgroups): Eval and compile. + + * eshell/esh-util.el (top-level): Don't require pp. Use + condition-case rather than ignore-errors. + + * eshell/eshell.el (eshell-buffer-name): Define for compiler. + + * eshell/em-alias.el, eshell/em-banner.el, eshell/em-basic.el + * eshell/em-cmpl.el, eshell/em-dirs.el, eshell/em-glob.el + * eshell/em-hist.el, eshell/em-ls.el, eshell/em-pred.el + * eshell/em-prompt.el, eshell/em-rebind.el, eshell/em-script.el + * eshell/em-smart.el, eshell/em-term.el, eshell/em-unix.el + * eshell/em-xtra.el, eshell/esh-cmd.el, eshell/esh-test.el + * eshell/esh-util.el, eshell/eshell.el: 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. + + * eshell/esh-arg.el, eshell/esh-ext.el, eshell/esh-io.el: + * eshell/esh-mode.el, eshell/esh-module.el, eshell/esh-opt.el: + * eshell/esh-proc.el, eshell/esh-var.el: + Require individual files if needed when compiling, rather than + esh-maint. Collect any require statements. Leave provide at start. + Move any commentary to start. + * emacs-lisp/bytecomp.el (byte-compile-declare-function): Remove declared function from byte-compile-noruntime-functions. diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el index 7c04b5a942a..dbc8802a9c5 100644 --- a/lisp/eshell/esh-var.el +++ b/lisp/eshell/esh-var.el @@ -22,18 +22,6 @@ ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. -(provide 'esh-var) - -(eval-when-compile (require 'esh-maint)) - -(defgroup eshell-var nil - "Variable interpolation is introduced whenever the '$' character -appears unquoted in any argument (except when that argument is -surrounded by single quotes). It may be used to interpolate a -variable value, a subcommand, or even the result of a Lisp form." - :tag "Variable handling" - :group 'eshell) - ;;; Commentary: ;; These are the possible variable interpolation syntaxes. Also keep @@ -118,9 +106,25 @@ variable value, a subcommand, or even the result of a Lisp form." ;; contains the exit code of the last command (0 or 1 for Lisp ;; functions, based on successful completion). +(provide 'esh-var) + +(eval-when-compile + (require 'pcomplete) + (require 'esh-test) + (require 'esh-util) + (require 'esh-opt) + (require 'esh-mode)) (require 'env) (require 'ring) +(defgroup eshell-var nil + "Variable interpolation is introduced whenever the '$' character +appears unquoted in any argument (except when that argument is +surrounded by single quotes). It may be used to interpolate a +variable value, a subcommand, or even the result of a Lisp form." + :tag "Variable handling" + :group 'eshell) + ;;; User Variables: (defcustom eshell-var-load-hook '(eshell-var-initialize) -- 2.39.2