]> git.eshelyaron.com Git - emacs.git/commit
choose-completion: Retain the suffix after completion boundary
authorDmitry Gutov <dmitry@gutov.dev>
Thu, 9 May 2024 02:30:32 +0000 (05:30 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 10 May 2024 13:26:23 +0000 (15:26 +0200)
commitb0589b180b590e659b18225e34b45cfe2e36dc79
tree97b5521b6e98fcb370bd31534b7536668aa391c9
parentdb0d8ca73d2fb0aa6519c68107c7d898bbb564d9
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.

(cherry picked from commit ff3f17ca3cdd9e82355942f577e7807acc76ddcd)
lisp/minibuffer.el
lisp/simple.el