Restore compatibility of legacy autocompletion API.
Merge pull request #35 from emmanuel-keller/master

Restore compatibility of legacy autocompletion API.