# HG changeset patch # User Richard M. Stallman # Date 816019306 0 # Node ID 8a1986b2cc761fd99b93faea2d50f4ce36d7f329 # Parent b66f0626addbfec5ad742fe723616927f66112e2 (Fwindow_redisplay_end_trigger): New function. (Fset_window_redisplay_end_trigger): Likewise. (syms_of_window): defsubr them. diff -r b66f0626addb -r 8a1986b2cc76 src/window.c --- a/src/window.c Fri Nov 10 15:58:13 1995 +0000 +++ b/src/window.c Fri Nov 10 16:01:46 1995 +0000 @@ -314,6 +314,34 @@ return ncol; } +DEFUN ("window-redisplay-end-trigger", Fwindow_redisplay_end_trigger, + Swindow_redisplay_end_trigger, 0, 1, 0, + "Return WINDOW's redisplay end trigger value.\n\ +See `set-window-redisplay-end-trigger' for more information.") + (window) + Lisp_Object window; +{ + return decode_window (window)->redisplay_end_trigger; +} + +DEFUN ("set-window-redisplay-end-trigger", Fset_window_redisplay_end_trigger, + Sset_window_redisplay_end_trigger, 2, 2, 0, + "Set WINDOW's redisplay end trigger value to VALUE.\n\ +VALUE should be a buffer position (typically a marker) or nil.\n\ +If it is a buffer position, then if redisplay in WINDOW\n\ +reaches a position beyond VALUE, the normal hook\n\ +`redisplay-end-trigger-hook' is run (and then the end-trigger value\n\ +is reset to nil.") + (window, value) + register Lisp_Object window, value; +{ + register struct window *w; + + w = decode_window (window); + w->redisplay_end_trigger = value; + return value; +} + DEFUN ("window-edges", Fwindow_edges, Swindow_edges, 0, 1, 0, "Return a list of the edge coordinates of WINDOW.\n\ \(LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at top left corner of frame.\n\ @@ -3534,6 +3562,8 @@ defsubr (&Swindow_width); defsubr (&Swindow_hscroll); defsubr (&Sset_window_hscroll); + defsubr (&Swindow_redisplay_end_trigger); + defsubr (&Sset_window_redisplay_end_trigger); defsubr (&Swindow_edges); defsubr (&Scoordinates_in_window_p); defsubr (&Swindow_at);