[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 9be4998 2/3: with-editor-emulate-terminal: Ins
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-editor 9be4998 2/3: with-editor-emulate-terminal: Insert all strings |
Date: |
Thu, 28 Oct 2021 17:58:03 -0400 (EDT) |
branch: elpa/with-editor
commit 9be49982041e0799ea2dc2905c38f7b89eb6f450
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
with-editor-emulate-terminal: Insert all strings
Previously we tried to avoid displaying the "WITH-EDITOR" instruction
on stdout but that also means that strings that do not end with a
newline character are not processes immediately and that caused `term'
to freeze. Calling `term-emulate-terminal' unconditionally avoids
that, but causes the "WITH-EDITOR" to be displayed.
---
with-editor.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/with-editor.el b/with-editor.el
index 2aa8fc9..e079e81 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -757,8 +757,8 @@ This works in `shell-mode', `term-mode', `eshell-mode' and
(defun with-editor-emulate-terminal (process string)
"Like `term-emulate-terminal' but also handle edit requests."
- (when (with-editor-sleeping-editor-filter process string)
- (term-emulate-terminal process string)))
+ (with-editor-sleeping-editor-filter process string)
+ (term-emulate-terminal process string))
(defvar with-editor-envvars '("EDITOR" "GIT_EDITOR" "HG_EDITOR"))