mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-03 04:21:28 -08:00
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.
This commit is contained in:
parent
8c023e5ea1
commit
bac632aaec
2 changed files with 6 additions and 2 deletions
|
|
@ -3152,7 +3152,8 @@ t when called interactively."
|
|||
(python-shell--encode-string string)
|
||||
(python-shell--encode-string (or (buffer-file-name)
|
||||
"<string>")))))
|
||||
(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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue