emacs-friendly completion command for ghci; part of #5687. Patch from hvr.