1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/test/lisp
Eshel Yaron 00caec8058
New command 'completion-preview-complete'
This command completes the symbol at point up to the longest
common prefix of all completions candidates.  We also add an
indication of the longest common prefix in the completion
preview by highlighting that part of the preview with the
'completion-preview-exact' face.  To facilitate these features
we change the way we store the completion candidates while the
preview is visible, to explicitly keep the common prefix along
with a list of its suffixes.

* lisp/completion-preview.el (completion-preview--try-table):
Return longest common prefix and list of suffixes instead of
list of full candidates.  Add illustrative comment.
(completion-preview--capf-wrapper, completion-preview--update)
(completion-preview--show, completion-preview-insert)
(completion-preview-next-candidate): Adjust.
(completion-preview-common): New face.
(completion-preview-exact): Tweak to distinguish it from
'completion-preview-common'.
(completion-preview-complete): New command.
(completion-preview-active-mode-map): Bind it.
(completion-preview-mode): Mention it in docstring.
(completion-preview-commands): Add 'completion-preview-complete'.
(completion-preview--make-overlay): Simplify.
(completion-preview--internal-command-p): Remove.
(completion-preview-require-certain-commands): Update.
(completion-preview--inhibit-update): New inline function.
(completion-preview--inhibit-update-p): New local variable.
(completion-preview--post-command, completion-preview-hide):
Reset it to nil.

* test/lisp/completion-preview-tests.el
(completion-preview-tests--check-preview): Check the 'face'
property of both the first and last character.  Update callers.
(completion-preview-insert-calls-exit-function)
(completion-preview-complete): New tests.  (Bug#70381)
2024-04-20 14:32:00 +03: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 Fix Icalendar export with ISO dates 2024-04-13 10:52:55 +03:00
cedet Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
custom-resources
dired-resources/insert-directory
emacs-lisp lisp/emacs-lisp/track-changes.el: New file (bug#70077) 2024-04-13 09:43:11 -04:00
emulation ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
epg-resources
erc Fix regression involving erc-query-buffer-p 2024-04-19 13:54:52 -07:00
eshell Support expanding Eshell globs for remote file names 2024-03-07 12:21:06 -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 Update gravatar-tests after URL escaping change (bug#70312) 2024-04-20 11:07:51 +02: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 Complete fix for eww-tests.el 2024-04-20 09:43:30 +02: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 ; On MS-Windows, skip eglot test that creates symlinks 2024-04-20 10:25:12 +03: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 Recognize multicite macros from biblatex 2024-04-13 22:33:24 +02:00
time-resources
url Avoid unnecessary escaping in 'url-build-query-string' 2024-04-18 13:04:13 +03:00
use-package Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
vc ; * test/lisp/vc/vc-git-tests.el: bend doc string quote 2024-03-29 11:53:56 +01:00
xdg-resources
abbrev-tests.el Add a proper type for obarrays 2024-02-23 13:02:27 +01: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 New command 'completion-preview-complete' 2024-04-20 14:32:00 +03: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 Kill process in files-tests before exiting 2024-04-20 13:12:30 +02: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 Fix recent test regressions 2024-03-22 18:44:54 -04: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 bug#69992: Minor improvement to image map transformation logic 2024-03-30 16:35:11 +03:00
imenu-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
info-tests.el In Info-url-alist, add .html extension to %e format-sequence 2024-02-11 09:25:19 +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 ; Avoid byte-compiler warnings in 'ls-lisp-test-bug70271'. 2024-04-09 11:01:52 +03: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 a proper type for obarrays 2024-02-23 13:02:27 +01: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
sqlite-tests.el Fix 'with-sqlite-transaction' 2024-03-11 15:23:55 +02: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 ; Fix 'thing-at-point' edge case involving overlapping matches 2024-02-10 17:39:26 +01: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 Don't error on tabbing to a widget at BOB (bug#69943) 2024-04-18 15:35:49 +02: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