in-buffer completion for emacs