Function: record-window-buffer

Record WINDOW's buffer.
WINDOW must be a live window and defaults to the selected one.