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

Restore compatibility of legacy autocompletion API.