• Jim Blandy's avatar
    * xdisp.c: #include "termhooks.h". · 30c566e4
    Jim Blandy authored
    	(redisplay, redisplay_window): Use set_vertical_scrollbar_hook,
    	condemn_scrollbars_hook, redeem_scrollbar_hook, and
    	judge_scrollbars_hook to make scrollbars redisplay properly.
    
    	It's a pain to remember that you can't assign to FRAME->visible.
    	Let's change all references to the `visible' member of struct
    	frame to use the accessor macros, and then write a setter for the
    	`visible' field that does the right thing.
    	* frame.h (FRAME_VISIBLE_P): Make this not an l-value.
    	(FRAME_SET_VISIBLE): New macro.
    	* frame.c (make_terminal_frame, Fdelete_frame): Use FRAME_SET_VISIBLE.
    	(Fframe_visible_p, Fvisible_frame_list): Use FRAME_VISIBLE_P and
    	FRAME_ICONIFIED_P.
    	* dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P and
    	FRAME_GARBAGED_P accessors.
    	* xdisp.c (redisplay): Use the FRAME_VISIBLE_P accessor.
    	* xfns.c (x_set_foreground_color, x_set_background_color,
    	x_set_cursor_color, x_set_border_pixel, x_set_icon_type): Use the
    	FRAME_VISIBLE_P accessor.
    	(Fx_create_frame): Use FRAME_SET_VISIBILITY.
    	* xterm.c (clear_cursor, x_display_bar_cursor,
    	x_display_box_cursor): Use FRAME_SET_VISIBILITY.
    30c566e4
xdisp.c 68.3 KB