aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Janík <[email protected]>2002-06-13 15:00:02 +0000
committerPavel Janík <[email protected]>2002-06-13 15:00:02 +0000
commite43bd4f5b2960204b76457c1fac2bb9190994a06 (patch)
tree2f61cbe7b39426b9dc46108c62b2843f53777101
parent3b8f9651533611460efda94051a280ad558fac0c (diff)
*** empty log message ***
-rw-r--r--src/ChangeLog18
-rw-r--r--src/sysdep.c6
-rw-r--r--src/w32inevt.c6
-rw-r--r--src/xterm.h6
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 <[email protected]>
+
+ * 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 <[email protected]>
* 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,