]> git.eshelyaron.com Git - emacs.git/commit
Fix small bug in 'completion-table-subvert'.
authorPhilipp Stephani <phst@google.com>
Fri, 23 Apr 2021 10:52:51 +0000 (12:52 +0200)
committerPhilipp Stephani <phst@google.com>
Fri, 23 Apr 2021 10:52:51 +0000 (12:52 +0200)
commit3806d2168bdc36796d2dfac5f743582f0ce71c72
tree9f6e92bfeb0774addb2572cc6ca4a1dde2751fdd
parent804f5acda4bd947f058c6843e373797202314467
Fix small bug in 'completion-table-subvert'.

Even for a trivial underlying completion table (where the 'boundaries'
action returns nil), we need to provide nontrivial boundaries so that
they match the behavior of 'all-completions'.

* lisp/minibuffer.el (completion-table-subvert): Return boundaries
even for trivial underlying completion table.
* test/lisp/minibuffer-tests.el (completion-table-subvert-test):
Amend unit test to also test boundaries.  While there, also test
the other completion functions.
lisp/minibuffer.el
test/lisp/minibuffer-tests.el