• Jim Blandy's avatar
    * keyboard.c (kbd_buffer_get_event): Protect assignment to · 3c370943
    Jim Blandy authored
    	Vlast_event_frame in a "#ifdef MULTI_FRAME" clause.
    	Use the term `scroll bar', instead of `scrollbar'.
    	* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
    	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
    	xterm.c, xterm.h: Terminology changed.
            Don't generate switch-frame events by checking Vlast_event_frame;
    	use a separate variable for that bookkeeping.  In order to
    	generate them properly, we may need to fiddle with it.
    	* keyboard.c (internal_last_event_frame): New variable.
    	(command_loop_1): Check internal_last_event_frame, not
    	(read_char, kbd_buffer_store_event): Set both Vlast_event_frame and
    	(kbd_buffer_get_event): Check internal_last_event_frame to decide
    	whether to generate a switch-frame event.  Set Vlast_event_frame
    	after each event.
    	(init_keyboard): Initialize both Vlast_event_frame and
    	* keyboard.h (internal_last_event_frame): Add extern declaration
    	for this.
    	* frame.c (Vlast_event_frame): Remove external declaration for
    	(Fselect_frame): Set internal_last_event_frame to Qnil to force a
    	switch-frame event, not Vlast_event_frame; the latter is supposed
    	to convey information to the user.
    	* keyboard.c (syms_of_keyboard): Doc fix for unread_command_events.
keyboard.c 123 KB