Function: window-prev-buffers
window-prev-buffers is a function defined in window.c.
Signature
(window-prev-buffers &optional WINDOW)
Documentation
Return buffers previously shown in WINDOW.
WINDOW must be a live window and defaults to the selected one.
The return value is a list of elements (BUFFER WINDOW-START POS), where BUFFER is a buffer, WINDOW-START is the start position of the window for that buffer, and POS is a window-specific point value.
In rare ocasions BUFFER may have been already killed. It's therefore advisable to always check the return value for the occurrence of dead buffers before using it.
Source Code
// Defined in /usr/src/emacs/src/window.c
{
return decode_live_window (window)->prev_buffers;
}