]> git.eshelyaron.com Git - emacs.git/commit
Better treatment of line length limits for the Python inferior
authorAugusto Stoffel <arstoffel@gmail.com>
Thu, 9 Sep 2021 13:48:37 +0000 (15:48 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 9 Sep 2021 13:48:37 +0000 (15:48 +0200)
commite27385ec372b36822958ebed6792ca806b1a0c3d
tree3e9cbf40e4bbc1df424f5d7dabe95e58db8f80e8
parent2be75990a7ae611e8596a91b5e124dc421ec93b4
Better treatment of line length limits for the Python inferior

* lisp/comint.el (comint-max-line-length): New constant reflecting a
safe maximum line size that can be sent to an inferior process.
* lisp/progmodes/python.el
(python-shell-comint-watch-for-first-prompt-output-filter): Send setup
code to the inferior process only once and at this stage.
(python-shell-eval-setup-code, python-shell-eval-file-setup-code):
Move, unchanged, to an earlier point to avoid byte-compiler warnings.
(python-shell-send-string-no-output): Revert changes of e32c7d2a8d
(python-shell-send-string): Use 'comint-max-line-length' to decide
when to resort to temp files.
(python-shell-send-string, python-shell-send-file): Don't send setup
code each time (bug#49822).
lisp/comint.el
lisp/progmodes/python.el