]> git.eshelyaron.com Git - emacs.git/commit
Detect the readline support for Python shell completion
authorLiu Hui <liuhui1610@gmail.com>
Mon, 26 Feb 2024 10:46:36 +0000 (18:46 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 09:04:29 +0000 (10:04 +0100)
commite257da70ffcec39fafc93b95f1afa21860fa6424
treef5713ed2e85528d24fac5f92f991ebc07e8566c3
parentdb4704d73adebff69939c8ee7b6ca193d5e8897c
Detect the readline support for Python shell completion

* lisp/progmodes/python.el
(python-shell-comint-watch-for-first-prompt-output-filter):
Detect the readline support.
(python-shell-readline-completer-delims): Update docstring.
(python-shell-completion-native-setup): Move the readline
detection code to ...
(python-shell-readline-detect): ... new function.
(python-shell-completion-native-turn-on-maybe): Skip if Python
has no readline support.
(python-shell-completion-at-point): Respect the delimiter of
readline completer in non-native completion.
* test/lisp/progmodes/python-tests.el
(python-shell-completion-at-point-1)
(python-shell-completion-at-point-native-1)
(python-completion-at-point-1, python-completion-at-point-2)
(python-completion-at-point-pdb-1)
(python-completion-at-point-while-running-1)
(python-completion-at-point-native-1)
(python-completion-at-point-native-2)
(python-completion-at-point-native-with-ffap-1)
(python-completion-at-point-native-with-eldoc-1): Skip tests if
Python has no readline support.
(python-shell-completion-at-point-jedi-completer): Add test for
non-native Python shell completion. (bug#68559)

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