summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorMichael Heerdegen <michael_heerdegen@web.de>2022-06-21 13:41:51 +0200
committerMichael Heerdegen <michael_heerdegen@web.de>2022-06-26 16:41:30 +0200
commitedf6f5d0cae97de10c914c6e94dc5b35f06ec33c (patch)
tree65a96878659df4a77e9e3bbe24f84c61a76b4887 /lisp/term.el
parent8f5d9d0abd0f5078646bc85c7a4d480b32057a47 (diff)
downloademacs-edf6f5d0cae97de10c914c6e94dc5b35f06ec33c.tar.gz
Fix Bug#56110 (switching from line-mode to char-mode)
* lisp/term.el (term-char-mode): Make `add-function' override the correct place (the buffer local variable `term-input-sender').
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/term.el b/lisp/term.el
index 94bf13e9736..a8e44b4c34f 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1467,10 +1467,10 @@ process."
(when (> (point) pmark)
(unwind-protect
(progn
- (add-function :override term-input-sender #'term-send-string)
+ (add-function :override (local 'term-input-sender) #'term-send-string)
(end-of-line)
(term-send-input))
- (remove-function term-input-sender #'term-send-string))))
+ (remove-function (local 'term-input-sender) #'term-send-string))))
(term-update-mode-line)))
(defun term-line-mode ()