]> git.eshelyaron.com Git - emacs.git/commit
Fix Python completion failure under certain conditions
authorkobarity <kobarity@gmail.com>
Mon, 10 Oct 2022 13:24:17 +0000 (22:24 +0900)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 11 Oct 2022 00:29:42 +0000 (02:29 +0200)
commitb0585441a321a144f2bbdc269b3cfc6c14bab7cf
treef5ca93b995d817a6c3a90f22d7de399f67470198
parent36ab1644964ae5a933bd9808536f60d4ae64c99f
Fix Python completion failure under certain conditions

* lisp/progmodes/python.el (python-shell-send-string-no-output):
Save and restore `comint-last-prompt-overlay' or `comint-last-prompt'.
* test/lisp/progmodes/python-tests.el (python-tests-shell-wait-for-prompt):
New helper function.
(python-tests-with-temp-buffer-with-shell): New helper macro.
(python-shell-completion-1, python-shell-completion-native-1)
(python-shell-completion-native-with-ffap-1)
(python-shell-completion-native-with-eldoc-1): New tests (bug#58389).
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el