diff options
| author | kobarity | 2026-01-11 17:49:29 +0900 |
|---|---|---|
| committer | Eli Zaretskii | 2026-01-17 15:05:33 +0200 |
| commit | c97b8e6650fa28f44e36e200f966046ffe99fe0f (patch) | |
| tree | b2979240a3ffba0c741a9590cc65d04c83655d22 /java | |
| parent | 6e37af1fe89316fa921539340fcce9af94e9e69d (diff) | |
| download | emacs-c97b8e6650fa28f44e36e200f966046ffe99fe0f.tar.gz emacs-c97b8e6650fa28f44e36e200f966046ffe99fe0f.zip | |
Improve non-native completion in Python mode
Previously, both the definition of __PYTHON_EL_get_completions
and the call to __PYTHON_EL_get_completions were sent to the
inferior Python each time
'python-shell-completion-get-completions' was executed.
However, there is no need to send the definition every time as
long as the definition remains unchanged. We improved this so
that the definition of __PYTHON_EL_get_completions is only sent
during the inferior Python initialization; it is no longer sent
during 'python-shell-completion-get-completions' execution.
* lisp/progmodes/python.el
(python-shell-completion-send-setup-code): New function.
(python-shell-first-prompt-hook): Add the above new function.
(python-shell-completion-get-completions): Omit sending
'python-shell-completion-setup-code'. (Bug#80182)
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions