diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 04183abb7c5..dfac3b5b879 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1704,7 +1704,12 @@ DEFUN ("set-window-start", Fset_window_start, Sset_window_start, 2, 3, 0, | |||
| 1704 | doc: /* Make display in WINDOW start at position POS in WINDOW's buffer. | 1704 | doc: /* Make display in WINDOW start at position POS in WINDOW's buffer. |
| 1705 | WINDOW must be a live window and defaults to the selected one. Return | 1705 | WINDOW must be a live window and defaults to the selected one. Return |
| 1706 | POS. Optional third arg NOFORCE non-nil inhibits next redisplay from | 1706 | POS. Optional third arg NOFORCE non-nil inhibits next redisplay from |
| 1707 | overriding motion of point in order to display at this exact start. */) | 1707 | overriding motion of point in order to display at this exact start. |
| 1708 | |||
| 1709 | For reliable setting of WINDOW start position, make sure point is | ||
| 1710 | at a position that will be visible when that start is in effect, | ||
| 1711 | otherwise there's a chance POS will be disregarded, e.g., if point | ||
| 1712 | winds up in a partially-visible line. */) | ||
| 1708 | (Lisp_Object window, Lisp_Object pos, Lisp_Object noforce) | 1713 | (Lisp_Object window, Lisp_Object pos, Lisp_Object noforce) |
| 1709 | { | 1714 | { |
| 1710 | register struct window *w = decode_live_window (window); | 1715 | register struct window *w = decode_live_window (window); |