]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix "M-x eshell"
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Apr 2019 08:01:24 +0000 (11:01 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Apr 2019 08:01:24 +0000 (11:01 +0300)
* 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.

lisp/eshell/em-dirs.el

index 937bc981c537efe23909e7eb227c7437c0d71c33..93b10b5994856a4e7e6e64fff7b468b76b211e69 100644 (file)
 (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
@@ -171,6 +176,7 @@ Thus, this does not include the current directory.")
 
 (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