1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 15:52:00 -08:00
emacs/test/lisp/progmodes
Liu Hui 0b9c7148fd Respect the delimiter of completer in Python shell completion
* lisp/progmodes/python.el: (python-shell-completion-setup-code): Fix
the completion code of IPython.  Change the return value to JSON string
and ...
(python-shell-completion-get-completions): ... simplify parsing.
(inferior-python-mode): Update docstring.
(python-shell-readline-completer-delims): New variable indicating the
word delimiters of readline completer.
(python-shell-completion-native-setup): Set the completer delimiter.
(python-shell-completion-native-get-completions): Convert output string
to completions properly.
(python-shell--get-multiline-input)
(python-shell--extra-completion-context)
(python-shell-completion-extra-context): New functions.
(python-shell-completion-at-point): Send text beginning from the line
start if the completion backend does not need word splitting.  Remove
the detection of import statement because it is not needed anymore.
Create proper completion table based on completions returned from
different backends.

* test/lisp/progmodes/python-tests.el (python-tests--completion-module)
(python-tests--completion-parameters)
(python-tests--completion-extra-context): New helper functions.
(python-shell-completion-at-point-jedi-completer)
(python-shell-completion-at-point-ipython): New tests.  (bug#68559)
2024-02-08 14:09:42 +02:00
..
c-ts-mode-resources ; Spelling fixes 2024-01-29 00:22:37 -08:00
cperl-mode-resources ;cperl-mode.el: Do not mistake a left-shift operator for a here-doc. 2023-10-14 18:22:11 +02:00
elisp-mode-resources lisp/emacs-lisp/lisp-mode.el: Fix parser state corruption. 2021-11-08 07:38:41 +01:00
elixir-ts-mode-resources ; Fix typos 2024-01-28 17:11:51 +01:00
flymake-resources Keep and report "foreign" diangnostics in flymake-cc Flymake backend 2021-09-14 12:22:15 +01:00
go-ts-mode-resources Fix switch statement indentation for go-ts-mode (bug#61238) 2023-02-04 19:26:05 +01:00
heex-ts-mode-resources Add heex-ts-mode (Bug#61996) 2023-03-12 17:40:06 +02:00
java-ts-mode-resources Backport: Add more java indentation tests 2023-11-21 16:26:54 +02:00
js-resources Add indentation rules for bracketless statements in js-ts-mode 2023-12-12 03:13:12 +02:00
lua-ts-mode-resources Support indented continuation lines in lua-ts-mode 2024-01-11 21:51:23 +01:00
project-resources Bring back the project--value-in-dir logic 2022-12-09 18:19:36 +02:00
ruby-mode-resources Merge from origin/emacs-29 2023-12-30 04:51:17 -05:00
sh-script-resources Fix indentation and fontification in shell-script (Bug#26217) 2023-10-14 11:00:15 -04:00
typescript-ts-mode-resources Fix typescript-ts-mode indentation for switch statements 2023-11-29 16:32:24 +02:00
xref-resources Speed up xref rendering for matches on very long lines 2021-03-08 04:25:15 +02:00
asm-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
autoconf-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
bat-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
bug-reference-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
c-ts-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
cc-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
compile-tests.el Make Compilation mode recognize Lua errors 2024-01-10 14:48:00 +01:00
cperl-mode-tests.el ; cperl-mode-tests.el: Adapt to recent changes in cperl-mode.el 2024-01-09 19:14:56 +01:00
eglot-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
elisp-mode-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
elixir-ts-mode-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
etags-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
executable-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
f90-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
flymake-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
gdb-mi-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
glasses-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
go-ts-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
grep-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
heex-ts-mode-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
hideshow-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
java-ts-mode-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
js-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
lua-ts-mode-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
octave-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
opascal-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
pascal-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
perl-mode-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
project-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ps-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
python-tests.el Respect the delimiter of completer in Python shell completion 2024-02-08 14:09:42 +02:00
ruby-mode-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ruby-ts-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
scheme-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sh-script-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
sql-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
subword-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tcl-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
typescript-ts-mode-tests.el typescript-ts-mode: Skip test if tsx grammar missing 2024-01-20 21:10:51 -08:00
which-func-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
xref-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00