aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c7
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.
1705WINDOW must be a live window and defaults to the selected one. Return 1705WINDOW must be a live window and defaults to the selected one. Return
1706POS. Optional third arg NOFORCE non-nil inhibits next redisplay from 1706POS. Optional third arg NOFORCE non-nil inhibits next redisplay from
1707overriding motion of point in order to display at this exact start. */) 1707overriding motion of point in order to display at this exact start.
1708
1709For reliable setting of WINDOW start position, make sure point is
1710at a position that will be visible when that start is in effect,
1711otherwise there's a chance POS will be disregarded, e.g., if point
1712winds 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);