Redirects the standard input, output, and error output to the buffer. (When an expression is being evaluated by do-eval, the output is automatically redirected; takeover does not need to be called.) This is called when the edit is created.