From e43bd4f5b2960204b76457c1fac2bb9190994a06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Jan=C3=ADk?= Date: Thu, 13 Jun 2002 15:00:02 +0000 Subject: [PATCH] *** empty log message *** --- src/ChangeLog | 18 ++++++++++++++++++ src/sysdep.c | 6 +++--- src/w32inevt.c | 6 +++--- src/xterm.h | 6 +++--- 4 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 575082cc43..aadab0cfc9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/sysdep.c b/src/sysdep.c index c7e4aba3a8..383be4b9df 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2011,7 +2011,7 @@ kbd_input_ast () 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 @@ read_input_waiting () 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 @@ read_input_waiting () 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 --git a/src/w32inevt.c b/src/w32inevt.c index df9e0d48a4..6a0b5e5f1a 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c @@ -426,7 +426,7 @@ key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev, int *isdead) 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 @@ key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev, int *isdead) } else { - emacs_ev->kind = non_ascii_keystroke; + emacs_ev->kind = NON_ASCII_KEYSTROKE_EVENT; XSETINT (emacs_ev->code, event->wVirtualKeyCode); } @@ -584,7 +584,7 @@ do_mouse_event (MOUSE_EVENT_RECORD *event, 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 --git a/src/xterm.h b/src/xterm.h index a91c51ce0b..a0da573f80 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -905,11 +905,11 @@ struct scroll_bar - (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, -- 2.20.1