1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Revert "Fix eshell-mode-map initialization"

It makes eshell-return-exits-minibuffer permanently affect the
eshell-mode-map (Bug#41370).

Do not merge to master, we will fix it properly there.
This commit is contained in:
Noam Postavsky 2020-05-24 20:12:30 -04:00
parent e7a3ed8a6d
commit 478638e470
10 changed files with 100 additions and 165 deletions

View file

@ -155,22 +155,14 @@ treated as a literal character."
:type 'hook
:group 'eshell-arg)
(defvar eshell-arg-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-c M-b") #'eshell-insert-buffer-name)
map))
;;; Functions:
(define-minor-mode eshell-arg-mode
"Minor mode for the arg eshell module.
\\{eshell-arg-mode-map}"
:keymap eshell-arg-mode-map)
(defun eshell-arg-initialize () ;Called from `eshell-mode' via intern-soft!
"Initialize the argument parsing code."
(eshell-arg-mode)
;; This is supposedly run after enabling esh-mode, when eshell-mode-map
;; already exists.
(defvar eshell-command-map)
(define-key eshell-command-map [(meta ?b)] 'eshell-insert-buffer-name)
(set (make-local-variable 'eshell-inside-quote-regexp) nil)
(set (make-local-variable 'eshell-outside-quote-regexp) nil))