record-window-buffer

record-window-buffer is a compiled Lisp function in `window.el'.

(record-window-buffer &optional WINDOW)

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