copying and converting code from code-buffer to edit-buffer works more or less
in outorg.el.