• Jim Blandy's avatar
    * term.c (set_vertical_scrollbar_hook, condemn_scrollbars_hook, · 371fbaeb
    Jim Blandy authored
    	redeem_scrollbar_hook, judge_scrollbars_hook): Removed dumbo
    	"externs" from these.  They're supposed to be real definitions.
    	* termhooks.h (mouse_position_hook): Doc fix.
    	(set_vertical_scrollbar_hook): This doesn't return anything any
    	more, and doesn't take a struct scrollbar * argument any more.
    	(condemn_scrollbars_hook, redeem_scrollbar_hook,
    	judge_scrollbars_hook): Doc fixes.
    	* term.c (mouse_position_hook): Doc fix.
    	(set_vertical_scrollbar_hook): This doesn't return
    	anything any more.  Doc fixes.
    	* keyboard.c (kbd_buffer_get_event): Receive the scrollbar's
    	window from *mouse_position_hook and pass it to
    	make_lispy_movement, instead of working with a pointer to a struct
    	(make_lispy_event): We don't need a window_from_scrollbar function
    	anymore; we are given the window directly in *EVENT.
    	Unify the code which generates
    	text-area mouse clicks and scrollbar clicks; use the same code to
    	distinguish clicks from drags on the scrollbar as in the text area.
    	Distinguish clicks from drags by storing a copy of the lispy
    	position list returned as part of the event.
    	(button_down_location): Make this a lisp vector, rather than an
    	array of random structures.
    	(struct mouse_position): Remove this; it's been replaced by a lisp
    	(make_lispy_movement): Accept the scrollbar's window as a
    	parameter, rather than the scrollbar itself.
    	If FRAME is zero, assume that the other arguments are garbage.
    	(syms_of_keyboard): No need to staticpro each window of
    	button_down_location now; just initialize and staticpro it.
    	* window.c (window_from_scrollbar): Function deleted; no longer
    	* xdisp.c (redisplay_window): Just pass the window to
    	set_vertical_scrollbar hook; don't pass the scrollbar object too.
    	* xterm.c (XTmouse_position): Don't return a pointer to the
    	scrollbar for scrollbar motion; instead, return the scrollbar's
term.c 41.4 KB