Commit 4caf4844 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(eshell): Avoid warnings about eshell-mode.

parent 369a47a4
......@@ -374,11 +374,10 @@ buffer selected (or created)."
;; `same-window-buffer-names', which is done when Eshell is loaded
(assert (and buf (buffer-live-p buf)))
(pop-to-buffer buf)
(unless (fboundp 'eshell-mode)
(if (fboundp 'eshell-mode)
(unless (eq major-mode 'eshell-mode)
(error "`eshell-auto' must be loaded before Eshell can be used"))
(unless (eq major-mode 'eshell-mode)
(assert (eq major-mode 'eshell-mode))
(defun eshell-return-exits-minibuffer ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment