mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Silence many eshell compilation warnings
* lisp/eshell/em-tramp.el: Adjust requires. (eshell-parse-command): Autoload. * lisp/eshell/em-xtra.el: Adjust requires. (eshell-parse-command): Autoload. * lisp/eshell/esh-ext.el: Adjust requires. (eshell-parse-command, eshell-close-handles): Autoload. * lisp/eshell/esh-io.el: Adjust requires. (eshell-output-filter): Autoload. * lisp/eshell/esh-util.el: No need to load tramp when compiling. (tramp-file-name-structure, ange-ftp-ls, ange-ftp-file-modtime): Declare. (eshell-parse-ange-ls): Require ange-ftp and tramp. * lisp/eshell/em-alias.el, lisp/eshell/em-banner.el, lisp/eshell/em-basic.el: * lisp/eshell/em-cmpl.el, lisp/eshell/em-glob.el, lisp/eshell/em-pred.el: * lisp/eshell/em-prompt.el, lisp/eshell/em-rebind.el, lisp/eshell/em-smart.el: * lisp/eshell/em-term.el, lisp/eshell/esh-arg.el, lisp/eshell/esh-mode.el: * lisp/eshell/esh-opt.el, lisp/eshell/esh-proc.el: * lisp/eshell/esh-var.el: Adjust requires. * lisp/eshell/eshell.el: Do not require esh-util twice. (eshell-add-input-to-history): Declare. (eshell-command): Check history module is active before using it.
This commit is contained in:
parent
d361bc10dc
commit
f87b128460
22 changed files with 78 additions and 30 deletions
|
|
@ -33,10 +33,12 @@
|
|||
|
||||
(provide 'esh-ext)
|
||||
|
||||
(require 'esh-util)
|
||||
|
||||
(eval-when-compile
|
||||
(require 'cl-lib)
|
||||
(require 'esh-io)
|
||||
(require 'esh-cmd))
|
||||
(require 'esh-util)
|
||||
(require 'esh-opt)
|
||||
|
||||
(defgroup eshell-ext nil
|
||||
|
|
@ -103,6 +105,8 @@ wholly ignored."
|
|||
:type '(choice file (const nil))
|
||||
:group 'eshell-ext)
|
||||
|
||||
(autoload 'eshell-parse-command "esh-cmd")
|
||||
|
||||
(defsubst eshell-invoke-batch-file (&rest args)
|
||||
"Invoke a .BAT or .CMD file on DOS/Windows systems."
|
||||
;; since CMD.EXE can't handle forward slashes in the initial
|
||||
|
|
@ -179,6 +183,8 @@ This bypasses all Lisp functions and aliases."
|
|||
(error "%s: external command not found"
|
||||
(substring command 1))))))
|
||||
|
||||
(autoload 'eshell-close-handles "esh-io")
|
||||
|
||||
(defun eshell-remote-command (command args)
|
||||
"Insert output from a remote COMMAND, using ARGS.
|
||||
A remote command is something that executes on a different machine.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue