How can I insert directly the text displayed in the echo area? (also wrongly called the minibuffer).
When I for example run (+ 2 2)
in a buffer and execute it with C-x C-e
it correctly displays the result '2' in the echo area. There is also a '2' in the Messages buffer. I'd like this '2' inserted below the line executed, in the same buffer, or something like that.
Is there a command to, for example, pipe the echo area into the buffer or copy the last line of the Messages buffer into the present working buffer?
C-u C-x C-e
will insert the result into the buffer. Not what you ask, but what you'd like in 2nd paragraph.