Fix test-completion with completion-regexp-list

* src/minibuf.c (Ftest_completion): Handle alist COLLECTION with non-nil
completion-regexp-list (Bug #23533).
This commit is contained in:
Noam Postavsky 2016-06-24 20:44:44 -04:00
parent 2989ad9060
commit dd98ee8992

View file

@ -1686,6 +1686,8 @@ the values STRING, PREDICATE and `lambda'. */)
tem = Fassoc_string (string, collection, completion_ignore_case ? Qt : Qnil);
if (NILP (tem))
return Qnil;
else if (CONSP (tem))
tem = XCAR (tem);
}
else if (VECTORP (collection))
{