* lisp/eshell/em-ls.el:
* lisp/eshell/esh-cmd.el:
* lisp/eshell/esh-mode.el:
* lisp/eshell/esh-ext.el: Remove superfluous 'declare-function' calls.
* lisp/eshell/esh-proc.el (pcomplete): Require this explicitly instead
of transitively.
(cherry picked from commit
ffc70962ca5fea86afcd984caa7770ab87a452a2)
(eshell-do-ls (nconc switches (list target)))))))))
-(declare-function eshell-extended-glob "em-glob" (glob))
(declare-function dired-read-dir-and-switches "dired" (str))
(declare-function dired-goto-next-file "dired" ())
;;; Code:
(require 'esh-util)
-(require 'eldoc)
(require 'esh-arg)
(require 'esh-proc)
(require 'esh-module)
(require 'esh-io)
(require 'esh-ext)
+
+(require 'eldoc)
(require 'generator)
+(require 'pcomplete)
(eval-when-compile
- (require 'cl-lib)
- (require 'pcomplete))
-
-(declare-function pcomplete--here "pcomplete"
- (&optional form stub paring form-only))
+ (require 'cl-lib))
(defgroup eshell-cmd nil
"Executing an Eshell command is as simple as typing it in and \
;;; Code:
-(require 'esh-util)
-
(eval-when-compile (require 'cl-lib))
(require 'esh-io)
(require 'esh-arg)
(require 'esh-opt)
+(require 'esh-proc)
+(require 'esh-util)
(defgroup eshell-ext nil
"External commands are invoked when operating system executables are
(setq list (cdr list)))
file)))
-;; This file provides itself then eval-when-compile loads files that require it.
-;; This causes spurious "might not be defined at runtime" warnings.
-(declare-function eshell-search-path "esh-ext" (name))
-
(defcustom eshell-windows-shell-file
(if (eshell-under-windows-p)
(if (string-match "\\(cmdproxy\\|sh\\)\\.\\(com\\|exe\\)"
(cl-assert interp)
(if (functionp (car interp))
(apply (car interp) (append (cdr interp) args))
- (require 'esh-proc)
- (declare-function eshell-gather-process-output "esh-proc" (command args))
(eshell-gather-process-output
(car interp) (append (cdr interp) args)))))
(defun eshell-send-eof-to-process ()
"Send EOF to the currently-running \"head\" process."
(interactive)
- (require 'esh-mode)
- (declare-function eshell-send-input "esh-mode"
- (&optional use-region queue-p no-newline))
(eshell-send-input nil nil t)
(when (eshell-head-process)
(process-send-eof (eshell-head-process))))
(require 'esh-io)
(require 'esh-util)
+(require 'pcomplete)
+
(defgroup eshell-proc nil
"When Eshell invokes external commands, it always does so
asynchronously, so that Emacs isn't tied up waiting for the process to