• Stefan Monnier's avatar
    Eshell: Try to untangle the dependencies; move 'provide's to the end · 0d5e8361
    Stefan Monnier authored
    * lisp/eshell/esh-arg.el: Move defsubst and vars before first use.
    Don't require `esh-mode but esh-util instead.
    
    * lisp/eshell/esh-cmd.el: Require esh-module and esh-io.
    
    * lisp/eshell/esh-ext.el: Don't require esh-proc nor esh-cmd.
    (eshell-external-command): Require esh-proc for
    eshell-gather-process-output.
    
    * lisp/eshell/esh-mode.el: Don't require esh-io nor esh-var, but
    require esh-arg.
    (eshell-directory-name): Move from eshell.el.
    
    * lisp/eshell/esh-module.el: Don't require eshell.
    
    * lisp/eshell/esh-opt.el: Don't require esh-ext at top-level.
    (eshell--do-opts, eshell-show-usage): Require it here instead.
    
    * lisp/eshell/esh-proc.el: Don't require esh-cmd, but require esh-io.
    (eshell-reset-after-proc, eshell-record-process-object)
    (eshell-gather-process-output, eshell-send-eof-to-process):
    Require esh-mode and esh-var here.
    
    * lisp/eshell/esh-var.el: Require esh-module, esh-arg, and esh-io.
    
    * lisp/eshell/eshell.el: Require esh-module, esh-proc, esh-io, and esh-cmd.
    But don't require esh-mode.
    (eshell-directory-name): Move to esh-mode.
    (eshell-return-exits-minibuffer): Don't bind 'return' and 'M-return'
    since we already bind RET and M-RET.
    0d5e8361
em-term.el 13.5 KB