From bf8663415e31abb6b7b96baff2947d9b74b37b1a Mon Sep 17 00:00:00 2001 From: Michael Heerdegen Date: Sun, 26 Jun 2022 19:14:41 +0200 Subject: [PATCH] `term-char-mode' doc string correction This reverts 16860f6c5f "`term-char-mode' doc string clarification". Making switching to `term-char-mode' send partially given input obviously was changed by accident (in 5653b76d0b "Fix minor compilation issues with cl-lib and lexbind"). See Bug#44087, Bug#49186 and Bug#56110. * lisp/term.el (term-char-mode): Restore the version of the docstring describing the originally intended behavior. Break an overlong line. --- lisp/term.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lisp/term.el b/lisp/term.el index a8e44b4c34..2a7eb72363 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1445,10 +1445,7 @@ term-send-function-key (defun term-char-mode () "Switch to char (\"raw\") sub-mode of term mode. Each character you type is sent directly to the inferior without -intervention from Emacs, except for the escape character (usually C-c). - -This command will send existing partial lines to the terminal -process." +intervention from Emacs, except for the escape character (usually C-c)." (interactive) ;; FIXME: Emit message? Cfr ilisp-raw-message (when (term-in-line-mode) @@ -1467,7 +1464,8 @@ term-char-mode (when (> (point) pmark) (unwind-protect (progn - (add-function :override (local 'term-input-sender) #'term-send-string) + (add-function :override (local 'term-input-sender) + #'term-send-string) (end-of-line) (term-send-input)) (remove-function (local 'term-input-sender) #'term-send-string)))) -- 2.30.2