]> git.eshelyaron.com Git - emacs.git/commit
(completion-all-sorted-completions): Fix history use with boundaries
authorDaniel Mendler <mail@daniel-mendler.de>
Mon, 19 Apr 2021 22:01:44 +0000 (00:01 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 24 Apr 2021 22:15:24 +0000 (18:15 -0400)
commit86d1b4d88f2999d2b0f94619dc53092bddfa0ec0
tree9df3f18479d0b5805901e2686829cabc6ac026be
parentbc026835df38cd6a4a695f18ea9ffe92ec625e65
(completion-all-sorted-completions): Fix history use with boundaries

Preprocess the history (and the default) through the new function
`minibuffer--sort-preprocess-history` to filter out the completion
base for completion tables with boundaries (in particular the file
completion table).

* lisp/minibuffer.el (minibuffer--sort-preprocess-history_: New function.
(completion-all-sorted-completions): Use it.
* test/lisp/minibuffer-tests.el (completion-all-sorted-completions):
Add tests for various combinations of with/without history/base/default.
lisp/minibuffer.el
test/lisp/minibuffer-tests.el