Fix strange behavior on context autocomplete (emacs)