emacs: custom prefix function was not used with auto-complete