1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 15:52:00 -08:00
emacs/test/lisp
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
..
align-resources Support lua-ts-mode in align.el 2023-10-21 12:25:25 +02:00
auth-source-resources
bookmark-resources
calc Fix 'calc-math-read-preprocess-string' test (bug#66944). 2024-01-29 14:50:45 +02:00
calendar Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
cedet Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
custom-resources
dired-resources/insert-directory
emacs-lisp Use defvar for variables that are not constant 2024-02-07 11:13:56 -05:00
emulation ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
epg-resources Replace aging OpenPGP artifacts in the epg tests. 2022-10-06 14:53:39 +02:00
erc ; Fix my last commit 2024-02-04 13:20:21 +01:00
eshell In Eshell, don't expand quoted tildes into a user's home directory 2024-01-28 16:02:05 -08:00
faces-resources ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
files-resources
gnus Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
hfy-cmap-resources
image Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
international Use defvar for variables that are not constant 2024-02-07 11:13:56 -05:00
loadhist-resources ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mail ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mh-e Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
minibuffer-resources
net Prefer \` and \' when matching the beg/end of string 2024-02-07 11:17:35 -05:00
nxml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
obsolete ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
org ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
pcmpl-linux-resources
play ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
progmodes Respect the delimiter of completer in Python shell completion 2024-02-08 14:09:42 +02:00
saveplace-resources
so-long-tests ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
term ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
textmodes Use forward-line instead of next-line in noninteractive test 2024-01-14 14:17:41 +01:00
time-resources
url Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
use-package Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
vc Don't open a new line for long defuns being inserted at column 0 2024-01-29 15:45:47 +08:00
xdg-resources
abbrev-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
align-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
allout-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
allout-widgets-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ansi-color-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ansi-osc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
apropos-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
arc-mode-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
auth-source-pass-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
auth-source-tests.el Use slot names rather than their :initargs 2024-02-07 11:11:38 -05:00
autoinsert-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
autorevert-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
battery-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
bookmark-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
buff-menu-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
button-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
calculator-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
char-fold-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
color-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
comint-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
completion-preview-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
completion-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
cus-edit-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
custom-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dabbrev-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
delim-col-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
descr-text-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
desktop-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dired-aux-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
dired-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
dired-x-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dnd-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
dom-tests.el ; Use HTML entities for reserved characters in 'dom-print' 2024-01-20 11:40:22 +02:00
edmacro-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
electric-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
elide-head-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
env-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
epg-config-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
epg-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
faces-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ffap-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
filenotify-tests.el (file-notify--test-wait-event): Rename from file-notify--test-read-event 2024-02-07 11:20:46 -05:00
files-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
files-x-tests.el Handle local default directory in connection-local-value 2024-01-07 12:39:47 +01:00
find-cmd-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
font-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
format-spec-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
help-fns-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
help-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
help-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
hfy-cmap-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
hi-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
hl-line-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
htmlfontify-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ibuffer-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ido-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-file-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
imenu-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
info-tests.el Add option Info-url-alist 2024-01-27 12:18:17 +02:00
info-xref-tests.el Fix info-xref-tests 2024-01-13 20:38:34 +02:00
isearch-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
jit-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
json-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
jsonrpc-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
kmacro-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
loadhist-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
lpr-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ls-lisp-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
man-tests.el Fix man-tests.el 2024-01-11 17:27:04 +02:00
md4-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
minibuffer-tests.el * test/lisp/minibuffer-tests.el (completion-test--pcm-bug38458): New test 2024-02-07 11:15:59 -05:00
misc-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
mouse-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mwheel-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
newcomment-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
obarray-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
paren-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
password-cache-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
pcmpl-linux-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
pcomplete-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
proced-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
ps-print-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
register-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
repeat-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
replace-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rot13-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
saveplace-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
scroll-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
server-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ses-tests.el Fix recent ses-tests mistakes (bug#5852) 2024-01-14 14:17:41 +01:00
shadowfile-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
shell-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
simple-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
sort-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
soundex-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
startup-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
subr-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
tab-bar-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tabify-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tar-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tempo-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
term-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
thingatpt-tests.el ; Ensure 'thing-at-point-looking-at' finds full match 2024-02-08 13:46:06 +02:00
thread-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
time-stamp-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
time-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
timezone-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
uniquify-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
version-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
wdired-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
whitespace-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
wid-edit-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
x-dnd-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
xdg-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
xml-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
xt-mouse-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
yank-media-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00