[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56110: 27+; switching from line-mode to char-mode
From: |
Michael Heerdegen |
Subject: |
bug#56110: 27+; switching from line-mode to char-mode |
Date: |
Sun, 26 Jun 2022 20:00:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
signal3 <signal3@gmail.com> writes:
> I may literally die from laughter when someone changes it back! See:
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49186
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44087
Oh no - not literally! Anyway - thanks for this important hint.
Is installing this ok for everyone (Lars?)? I don't think anyone will
miss the never intended behavior.
From bf8663415e31abb6b7b96baff2947d9b74b37b1a Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen@web.de>
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
TIA,
Michael.
- bug#56110: 27+; switching from line-mode to char-mode, (continued)
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/25
- bug#56110: 27+; switching from line-mode to char-mode, Stefan Monnier, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Stefan Monnier, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Stefan Monnier, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Andreas Schwab, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, signal3, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode,
Michael Heerdegen <=
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Lars Ingebrigtsen, 2022/06/26
- bug#56110: 27+; switching from line-mode to char-mode, Michael Heerdegen, 2022/06/26