]> git.eshelyaron.com Git - emacs.git/commit
* lisp/minibuffer.el (completion-pcm--optimize-pattern): New function
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 3 Dec 2019 14:45:48 +0000 (09:45 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 3 Dec 2019 14:45:48 +0000 (09:45 -0500)
commit8bea7e9ab4453da71d9766d582089154f31de907
tree4a75058bdaa32160e05e64f47bfabe5b5ec501fe
parenta6b598518c4bf6dfc587cfb2b61fa5fb04b99494
* lisp/minibuffer.el (completion-pcm--optimize-pattern): New function

This fixes bug#38458 where a final `point` in the pattern prevented
the expected normal behavior of point moving after the completion
of the final implicit `any`.

(completion-pcm--find-all-completions)
(completion-substring--all-completions): Use it.
(completion-basic--pattern): Don't both removing "" any more.
(completion-basic-try-completion): Use it as well as
`completion-basic--pattern`.
lisp/minibuffer.el