[Fix #670] Save point between two inserts to popup buffer.

Patch solves first part of #670. If you visited popup buffer when Emacs was inserting the text, output got messed up. Small improvement: if the point was at the end of the buffer, move it like in *shell* or *grep* buffers.