]> git.eshelyaron.com Git - emacs.git/commit
Allow escape sequences in Python prompts
authorkobarity <kobarity@gmail.com>
Tue, 11 Jun 2024 16:09:21 +0000 (01:09 +0900)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:31:52 +0000 (19:31 +0200)
commit1b2855cb6562b38aca9db3f1784a2bc64da7f8f4
treed37e8a6db2954cc6e588808944cb8454b333ff88
parent07a6a9200b392a9f717957a139cdce9d38ddde33
Allow escape sequences in Python prompts

* lisp/progmodes/python.el (python-shell-prompt-detect): Use
Python's json package if available, and remove escape sequences
in prompts.
* test/lisp/progmodes/python-tests.el
(python-tests-interpreter-2-6-higher-p): New predicate
function.
(python-shell-prompt-detect-7): New test.  (Bug#71440)

(cherry picked from commit af6e7ed4c1aa5fae34eda3507a4baf8b52c97312)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el