C-j at the end of s-expression prints the result in the scratch buffer.
C-j runs the command electric-newline-and-maybe-indent (found in global-map), which is an interactive compiled Lisp function in ‘electric.el’. It is bound to C-j. (electric-newline-and-maybe-indent) Insert a newline. If ‘electric-indent-mode’ is enabled, that’s that, but if it is *disabled* then additionally indent according to major mode. Indentation is done using the value of ‘indent-line-function’. In programming language modes, this is the same as TAB. In some text modes, where TAB inserts a tab, this command indents to the column specified by the function ‘current-left-margin’. [back]