]> git.eshelyaron.com Git - emacs.git/commit
Give test-completion's PREDICATE full alist entry
authorNoam Postavsky <npostavs@gmail.com>
Sun, 27 Nov 2016 15:04:48 +0000 (10:04 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 7 Dec 2016 03:20:23 +0000 (22:20 -0500)
commit60fe63015165a03a765852f60367e548c1617f89
treeef14b3f84206cf0ebb499d81b4bec0c5c33fd9e2
parent58e418d2ceb82501f03d9c3316fd0a46faf7f0eb
Give test-completion's PREDICATE full alist entry

Since 2016-06-26 "Fix test-completion with completion-regexp-list", when
calling test-completion with an alist collection, the predicate was
recieving the string value instead of the alist entry (Bug#24966).

* src/minibuf.c (Ftest_completion): Don't modify the found element, just
test STRING against `completion-regexp-list'.
* test/src/minibuf-tests.el: New tests for `try-completion',
`all-completions', and `test-completion'.
src/minibuf.c
test/src/minibuf-tests.el [new file with mode: 0644]