choose-completion: Retain the suffix after completion boundary
authorDmitry Gutov <dmitry@gutov.dev>
Thu, 9 May 2024 02:30:32 +0000 (05:30 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Thu, 9 May 2024 02:31:10 +0000 (05:31 +0300)
commitff3f17ca3cdd9e82355942f577e7807acc76ddcd
tree1dd7a56ee654ff6b5bdb3a266e9bf9c0a2ea627f
parent8bc4292673dfc04ce781e242596779809f1a3634
choose-completion: Retain the suffix after completion boundary

* lisp/minibuffer.el (completion-base-suffix):
Remove as not optimal after all (bug#48356).
(completion--replace): Use insert-before-markers-and-inherit.
(minibuffer-completion-help): Don't set completion-base-affixes,
implement the same logic more optimally by local search and
querying for field boundaries.  Also fix the problem with
completion table, predicate and extra-props being looked up in the
wrong buffer.
(minibuffer-next-completion, minibuffer-choose-completion):
Don't bind completion-use-base-affixes anymore.

* lisp/simple.el (completion-base-affixes)
(completion-use-base-affixes): Remove.
(completion-list-insert-choice-function):
Don't pass them through anymore.
lisp/minibuffer.el
lisp/simple.el