emacs: fix handling of company's "doc-buffer" command.

Related to #238: hitting <F1> now works "as expected".