diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 20 |
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. |
| 1668 | WINDOW must be a live window and defaults to the selected one. | 1668 | WINDOW must be a live window and defaults to the selected one. |
| 1669 | 1669 | ||
| 1670 | The return value is either nil or a list of <buffer, window-start, | 1670 | The return value is a list of elements (BUFFER WINDOW-START POS), |
| 1671 | window-point> triples where buffer was previously shown in WINDOW. */) | 1671 | where BUFFER is a buffer, WINDOW-START is the start position of the |
| 1672 | window 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. */) | |||
| 1677 | DEFUN ("set-window-prev-buffers", Fset_window_prev_buffers, | 1678 | DEFUN ("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. |
| 1680 | WINDOW must be a live window and defaults to the selected one. Return | 1681 | WINDOW must be a live window and defaults to the selected one. |
| 1681 | PREV-BUFFERS. | ||
| 1682 | 1682 | ||
| 1683 | PREV-BUFFERS should be either nil or a list of <buffer, window-start, | 1683 | PREV-BUFFERS should be a list of elements (BUFFER WINDOW-START POS), |
| 1684 | window-point> triples where buffer was previously shown in WINDOW. */) | 1684 | where BUFFER is a buffer, WINDOW-START is the start position of the |
| 1685 | window 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. */) | |||
| 1699 | DEFUN ("set-window-next-buffers", Fset_window_next_buffers, | 1700 | DEFUN ("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. |
| 1702 | WINDOW must be a live window and defaults to the selected one. Return | 1703 | WINDOW must be a live window and defaults to the selected one. |
| 1703 | NEXT-BUFFERS. | 1704 | NEXT-BUFFERS should be a list of buffers. */) |
| 1704 | |||
| 1705 | NEXT-BUFFERS should be either nil or a list of buffers that have been | ||
| 1706 | recently 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; |