* lisp/eshell/eshell.el: Provide eshell before requiring esh-mode to
avoid a recursive load when esh-mode requires esh-module (which in
turn requires eshell). (Bug #34954)
The double loading can be noticed by entries in 'eshell-load-hook' or
forms passed to (with-eval-after-load 'eshell ...).
(eval-when-compile
(require 'cl-lib))
(require 'esh-util)
+;; Provide eshell before requiring esh-mode, to avoid a recursive load.
+;; (Bug #34954)
+(provide 'eshell)
(require 'esh-mode)
(defgroup eshell nil
(run-hooks 'eshell-load-hook)
-(provide 'eshell)
-
;;; eshell.el ends here