]> git.eshelyaron.com Git - emacs.git/commit
Use base prefix and suffix instead of completion-base-position (bug#49931)
authorJuri Linkov <juri@linkov.net>
Tue, 5 Apr 2022 18:54:11 +0000 (21:54 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 5 Apr 2022 18:54:11 +0000 (21:54 +0300)
commit7aaffe25eb178f69027fb0af844a89a86db4b1f2
tree8ac8f7c00eec18ec96b63141fe3753e8d99f0e7a
parent6a50ff10f7aadb1ec0daee9081df66215369553b
Use base prefix and suffix instead of completion-base-position (bug#49931)

* lisp/minibuffer.el (minibuffer-completion-help):
Set completion-base-affixes from base-prefix and base-suffix.
In completion-list-insert-choice-function handle
string values of start/end as prefix/suffix.

* lisp/simple.el (completion-base-affixes)
(completion-use-base-affixes): New variables.
(choose-completion): Let-bind base-affixes to completion-base-affixes.
Use base-affixes when completion-use-base-affixes is non-nil.
(completion-setup-function): Sync values of base-affixes and
completion-base-affixes.
lisp/minibuffer.el
lisp/simple.el