]> git.eshelyaron.com Git - emacs.git/commit
Fix navigation in the *Completions* buffer and enable more tests (bug#54374)
authorJuri Linkov <juri@linkov.net>
Fri, 27 May 2022 16:13:09 +0000 (19:13 +0300)
committerJuri Linkov <juri@linkov.net>
Fri, 27 May 2022 16:13:09 +0000 (19:13 +0300)
commit6c4d767019c69e0c3a6b464a5856eb7655022e38
tree86fb516bab83c645ebad05c5edb023afebd4226c
parent4df20e2f14ac6f1bae2730e2f9afed8e83dd78de
Fix navigation in the *Completions* buffer and enable more tests (bug#54374)

* lisp/ido.el: Use first-completion instead of next-completion.

* lisp/minibuffer.el (completion--insert): Put completion--string
text property on prefix and suffix as well.

* lisp/simple.el (first-completion, last-completion): New commands.
(next-completion): Rewrite to fix many bugs reported in
bug#54374, bug#55289, bug#55430.
(choose-completion): Use the text property completion--string that
allows to select a completion when point is on its prefix or suffix.
(switch-to-completions): Use first-completion instead of next-completion,
and last-completion instead of previous-completion.

* test/lisp/minibuffer-tests.el (completion-auto-select-test)
(completion-auto-wrap-test, completions-header-format-test)
(completions-affixation-navigation-test): Uncomment fixed lines.
lisp/ido.el
lisp/minibuffer.el
lisp/simple.el
test/lisp/minibuffer-tests.el