]> git.eshelyaron.com Git - emacs.git/commit
Make dedicated keymap and mode for eshell-command (Bug#41370)
authorNoam Postavsky <npostavs@gmail.com>
Mon, 25 May 2020 00:17:40 +0000 (20:17 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 25 May 2020 00:17:40 +0000 (20:17 -0400)
commitb9b8c5e3fa71aea719934ce422fb22734590a8b3
treebf0a6540c5771da947eb2b6818e82c2f08d1d69c
parent3b65fb7658c2717457c033c6704cf3b007804226
Make dedicated keymap and mode for eshell-command (Bug#41370)

Otherwise, we end up permanently modifying eshell-mode-map when
running eshell-command.
* lisp/eshell/eshell.el (eshell-command-mode): New mode, with map to
contain the bindings previously set by eshell-return-exits-minibuffer.
(eshell-return-exits-minibuffer): Make into obsolete alias for
eshell-command-mode.
(eshell-command): Use eshell-command-mode instead of
eshell-return-exits-minibuffer.
lisp/eshell/eshell.el