mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
term-set-escape-char: Remove old binding from term-raw-escape-map
* lisp/term.el (term-set-escape-char): When replacing the escape char, remove the binding of the old escape char in term-raw-escape-map.
This commit is contained in:
parent
4ae315f7c3
commit
25e69968b0
@ -1052,11 +1052,10 @@ underlying shell."
|
||||
"Change `term-escape-char' and keymaps that depend on it."
|
||||
(when term-escape-char
|
||||
;; Undo previous term-set-escape-char.
|
||||
(define-key term-raw-map term-escape-char 'term-send-raw))
|
||||
(define-key term-raw-map term-escape-char 'term-send-raw)
|
||||
(define-key term-raw-escape-map term-escape-char nil t))
|
||||
(setq term-escape-char (if (vectorp key) key (vector key)))
|
||||
(define-key term-raw-map term-escape-char term-raw-escape-map)
|
||||
;; FIXME: If we later call term-set-escape-char again with another key,
|
||||
;; we should undo this binding.
|
||||
(define-key term-raw-escape-map term-escape-char 'term-send-raw))
|
||||
|
||||
(term-set-escape-char (or term-escape-char ?\C-c))
|
||||
|
Loading…
Reference in New Issue
Block a user