* lisp/eshell/em-dirs.el (eshell-variable-aliases-list)
(eshell-directory-name, eshell-mode): Defvar them.
(eshell-dirs-initialize): Require esh-var. (Bug#35203)
(eshell-apply-indices): Declare.
(require 'ring)
(require 'esh-opt)
+(declare-function eshell-apply-indices "esh-var")
+(defvar eshell-variable-aliases-list)
+(defvar eshell-directory-name)
+(defvar eshell-mode)
+
;;;###autoload
(progn
(defgroup eshell-dirs nil
(defun eshell-dirs-initialize ()
"Initialize the builtin functions for Eshell."
+ (require 'esh-var)
(make-local-variable 'eshell-variable-aliases-list)
(setq eshell-variable-aliases-list
(append