aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/window.c b/src/window.c
index 0f5aeb0cda9..94b9f8a451f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1667,8 +1667,9 @@ DEFUN ("window-prev-buffers", Fwindow_prev_buffers, Swindow_prev_buffers,
1667 doc: /* Return buffers previously shown in WINDOW. 1667 doc: /* Return buffers previously shown in WINDOW.
1668WINDOW must be a live window and defaults to the selected one. 1668WINDOW must be a live window and defaults to the selected one.
1669 1669
1670The return value is either nil or a list of <buffer, window-start, 1670The return value is a list of elements (BUFFER WINDOW-START POS),
1671window-point> triples where buffer was previously shown in WINDOW. */) 1671where BUFFER is a buffer, WINDOW-START is the start position of the
1672window for that buffer, and POS is a window-specific point value. */)
1672 (Lisp_Object window) 1673 (Lisp_Object window)
1673{ 1674{
1674 return decode_window (window)->prev_buffers; 1675 return decode_window (window)->prev_buffers;
@@ -1677,11 +1678,11 @@ window-point> triples where buffer was previously shown in WINDOW. */)
1677DEFUN ("set-window-prev-buffers", Fset_window_prev_buffers, 1678DEFUN ("set-window-prev-buffers", Fset_window_prev_buffers,
1678 Sset_window_prev_buffers, 2, 2, 0, 1679 Sset_window_prev_buffers, 2, 2, 0,
1679 doc: /* Set WINDOW's previous buffers to PREV-BUFFERS. 1680 doc: /* Set WINDOW's previous buffers to PREV-BUFFERS.
1680WINDOW must be a live window and defaults to the selected one. Return 1681WINDOW must be a live window and defaults to the selected one.
1681PREV-BUFFERS.
1682 1682
1683PREV-BUFFERS should be either nil or a list of <buffer, window-start, 1683PREV-BUFFERS should be a list of elements (BUFFER WINDOW-START POS),
1684window-point> triples where buffer was previously shown in WINDOW. */) 1684where BUFFER is a buffer, WINDOW-START is the start position of the
1685window for that buffer, and POS is a window-specific point value. */)
1685 (Lisp_Object window, Lisp_Object prev_buffers) 1686 (Lisp_Object window, Lisp_Object prev_buffers)
1686{ 1687{
1687 return decode_window (window)->prev_buffers = prev_buffers; 1688 return decode_window (window)->prev_buffers = prev_buffers;
@@ -1699,11 +1700,8 @@ WINDOW must be a live window and defaults to the selected one. */)
1699DEFUN ("set-window-next-buffers", Fset_window_next_buffers, 1700DEFUN ("set-window-next-buffers", Fset_window_next_buffers,
1700 Sset_window_next_buffers, 2, 2, 0, 1701 Sset_window_next_buffers, 2, 2, 0,
1701 doc: /* Set WINDOW's next buffers to NEXT-BUFFERS. 1702 doc: /* Set WINDOW's next buffers to NEXT-BUFFERS.
1702WINDOW must be a live window and defaults to the selected one. Return 1703WINDOW must be a live window and defaults to the selected one.
1703NEXT-BUFFERS. 1704NEXT-BUFFERS should be a list of buffers. */)
1704
1705NEXT-BUFFERS should be either nil or a list of buffers that have been
1706recently re-shown in WINDOW. */)
1707 (Lisp_Object window, Lisp_Object next_buffers) 1705 (Lisp_Object window, Lisp_Object next_buffers)
1708{ 1706{
1709 return decode_window (window)->next_buffers = next_buffers; 1707 return decode_window (window)->next_buffers = next_buffers;