debugging the emacs interface