# HG changeset patch # User Pavel Jank # Date 1023980402 0 # Node ID 863817d7e734784d1f55a96d62fda88657ef675e # Parent 9484de301252255fe99ad923fec664b38fac18b4 *** empty log message *** diff -r 9484de301252 -r 863817d7e734 src/ChangeLog --- a/src/ChangeLog Thu Jun 13 14:59:38 2002 +0000 +++ b/src/ChangeLog Thu Jun 13 15:00:02 2002 +0000 @@ -1,3 +1,21 @@ +2002-06-13 Pavel Jan,Bm(Bk + + * macterm.c, macmenu.c, msdos.c, sysdep.c, termhooks.h, xterm.h + * xsmfns.c, w32term.c, w32menu.c, w32inevt.c: Rename enum event_kind + as follows: ascii_keystroke to ASCII_KEYSTROKE_EVENT, + multibyte_char_keystroke to MULTIBYTE_CHAR_KEYSTROKE_EVENT, + non_ascii_keystroke to NON_ASCII_KEYSTROKE_EVENT, timer_event to + TIMER_EVENT, mouse_click to MOUSE_CLICK_EVENT, mouse_wheel to + MOUSE_WHEEL_EVENT, language_change_event to LANGUAGE_CHANGE_EVENT, + scroll_bar_click to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click + to W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to + SELECTION_REQUEST_EVENT, selection_clear_event to + SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT, + delete_window_event to DELETE_WINDOW_EVENT, iconify_event to + ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT, + menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to + DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT. + 2002-06-12 Pavel Jan,Bm(Bk * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind. diff -r 9484de301252 -r 863817d7e734 src/sysdep.c --- a/src/sysdep.c Thu Jun 13 14:59:38 2002 +0000 +++ b/src/sysdep.c Thu Jun 13 15:00:02 2002 +0000 @@ -2011,7 +2011,7 @@ if (c >= 0) { struct input_event e; - e.kind = ascii_keystroke; + e.kind = ASCII_KEYSTROKE_EVENT; XSETINT (e.code, c); e.frame_or_window = selected_frame; kbd_buffer_store_event (&e); @@ -2680,7 +2680,7 @@ kbd_buffer_store_event (&buf[i]); /* Don't look at input that follows a C-g too closely. This reduces lossage due to autorepeat on C-g. */ - if (buf[i].kind == ascii_keystroke + if (buf[i].kind == ASCII_KEYSTROKE_EVENT && buf[i].code == quit_char) break; } @@ -2691,7 +2691,7 @@ nread = read (fileno (stdin), buf, 1); /* Scan the chars for C-g and store them in kbd_buffer. */ - e.kind = ascii_keystroke; + e.kind = ASCII_KEYSTROKE_EVENT; e.frame_or_window = selected_frame; e.modifiers = 0; for (i = 0; i < nread; i++) diff -r 9484de301252 -r 863817d7e734 src/w32inevt.c --- a/src/w32inevt.c Thu Jun 13 14:59:38 2002 +0000 +++ b/src/w32inevt.c Thu Jun 13 15:00:02 2002 +0000 @@ -426,7 +426,7 @@ if (lispy_function_keys[event->wVirtualKeyCode] == 0) { - emacs_ev->kind = ascii_keystroke; + emacs_ev->kind = ASCII_KEYSTROKE_EVENT; if (!NILP (Vw32_recognize_altgr) && (event->dwControlKeyState & LEFT_CTRL_PRESSED) @@ -468,7 +468,7 @@ } else { - emacs_ev->kind = non_ascii_keystroke; + emacs_ev->kind = NON_ASCII_KEYSTROKE_EVENT; XSETINT (emacs_ev->code, event->wVirtualKeyCode); } @@ -584,7 +584,7 @@ if (event->dwButtonState == button_state) return 0; - emacs_ev->kind = mouse_click; + emacs_ev->kind = MOUSE_CLICK_EVENT; /* Find out what button has changed state since the last button event. */ but_change = button_state ^ event->dwButtonState; diff -r 9484de301252 -r 863817d7e734 src/xterm.h --- a/src/xterm.h Thu Jun 13 14:59:38 2002 +0000 +++ b/src/xterm.h Thu Jun 13 15:00:02 2002 +0000 @@ -905,11 +905,11 @@ - (f)->output_data.x->internal_border_width))) -/* If a struct input_event has a kind which is selection_request_event - or selection_clear_event, then its contents are really described +/* If a struct input_event has a kind which is SELECTION_REQUEST_EVENT + or SELECTION_CLEAR_EVENT, then its contents are really described by this structure. */ -/* For an event of kind selection_request_event, +/* For an event of kind SELECTION_REQUEST_EVENT, this structure really describes the contents. **Don't make this struct longer!** If it overlaps the frame_or_window field of struct input_event,