From bac632aaec3add5c8ecaf75ea481b93ac8c1a2cb Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 9 Sep 2021 20:08:56 +0300 Subject: Fix a recent change wrt 'comint-max-line-length' * lisp/progmodes/python.el (python-shell-send-string): Only heed 'comint-max-line-length' for subprocesses with which we communicate via PTYs. (Bug#49822) * lisp/comint.el (comint-max-line-length): Doc fix. Add a value for MS-Windows. --- lisp/progmodes/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/progmodes/python.el') diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 8f7bb7a8b60..3fc2700663f 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -3152,7 +3152,8 @@ t when called interactively." (python-shell--encode-string string) (python-shell--encode-string (or (buffer-file-name) ""))))) - (if (<= (string-bytes code) comint-max-line-length) + (if (or (null (process-connection-type process)) + (<= (string-bytes code) comint-max-line-length)) (comint-send-string process code) (let* ((temp-file-name (with-current-buffer (process-buffer process) (python-shell--save-temp-file string))) -- cgit v1.2.1