emacs: fixed detection of prefix in company.