aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Janík2002-06-13 15:00:02 +0000
committerPavel Janík2002-06-13 15:00:02 +0000
commite43bd4f5b2960204b76457c1fac2bb9190994a06 (patch)
tree2f61cbe7b39426b9dc46108c62b2843f53777101 /src
parent3b8f9651533611460efda94051a280ad558fac0c (diff)
downloademacs-e43bd4f5b2960204b76457c1fac2bb9190994a06.tar.gz
emacs-e43bd4f5b2960204b76457c1fac2bb9190994a06.zip
*** empty log message ***
Diffstat (limited to 'src')
-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 575082cc432..aadab0cfc9f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,21 @@
12002-06-13 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2
3 * macterm.c, macmenu.c, msdos.c, sysdep.c, termhooks.h, xterm.h
4 * xsmfns.c, w32term.c, w32menu.c, w32inevt.c: Rename enum event_kind
5 as follows: ascii_keystroke to ASCII_KEYSTROKE_EVENT,
6 multibyte_char_keystroke to MULTIBYTE_CHAR_KEYSTROKE_EVENT,
7 non_ascii_keystroke to NON_ASCII_KEYSTROKE_EVENT, timer_event to
8 TIMER_EVENT, mouse_click to MOUSE_CLICK_EVENT, mouse_wheel to
9 MOUSE_WHEEL_EVENT, language_change_event to LANGUAGE_CHANGE_EVENT,
10 scroll_bar_click to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click
11 to W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12 SELECTION_REQUEST_EVENT, selection_clear_event to
13 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
14 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
15 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
16 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
17 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT.
18
12002-06-12 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 192002-06-12 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 20
3 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind. 21 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
diff --git a/src/sysdep.c b/src/sysdep.c
index c7e4aba3a82..383be4b9df6 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2011,7 +2011,7 @@ kbd_input_ast ()
2011 if (c >= 0) 2011 if (c >= 0)
2012 { 2012 {
2013 struct input_event e; 2013 struct input_event e;
2014 e.kind = ascii_keystroke; 2014 e.kind = ASCII_KEYSTROKE_EVENT;
2015 XSETINT (e.code, c); 2015 XSETINT (e.code, c);
2016 e.frame_or_window = selected_frame; 2016 e.frame_or_window = selected_frame;
2017 kbd_buffer_store_event (&e); 2017 kbd_buffer_store_event (&e);
@@ -2680,7 +2680,7 @@ read_input_waiting ()
2680 kbd_buffer_store_event (&buf[i]); 2680 kbd_buffer_store_event (&buf[i]);
2681 /* Don't look at input that follows a C-g too closely. 2681 /* Don't look at input that follows a C-g too closely.
2682 This reduces lossage due to autorepeat on C-g. */ 2682 This reduces lossage due to autorepeat on C-g. */
2683 if (buf[i].kind == ascii_keystroke 2683 if (buf[i].kind == ASCII_KEYSTROKE_EVENT
2684 && buf[i].code == quit_char) 2684 && buf[i].code == quit_char)
2685 break; 2685 break;
2686 } 2686 }
@@ -2691,7 +2691,7 @@ read_input_waiting ()
2691 nread = read (fileno (stdin), buf, 1); 2691 nread = read (fileno (stdin), buf, 1);
2692 2692
2693 /* Scan the chars for C-g and store them in kbd_buffer. */ 2693 /* Scan the chars for C-g and store them in kbd_buffer. */
2694 e.kind = ascii_keystroke; 2694 e.kind = ASCII_KEYSTROKE_EVENT;
2695 e.frame_or_window = selected_frame; 2695 e.frame_or_window = selected_frame;
2696 e.modifiers = 0; 2696 e.modifiers = 0;
2697 for (i = 0; i < nread; i++) 2697 for (i = 0; i < nread; i++)
diff --git a/src/w32inevt.c b/src/w32inevt.c
index df9e0d48a4e..6a0b5e5f1a2 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)
426 426
427 if (lispy_function_keys[event->wVirtualKeyCode] == 0) 427 if (lispy_function_keys[event->wVirtualKeyCode] == 0)
428 { 428 {
429 emacs_ev->kind = ascii_keystroke; 429 emacs_ev->kind = ASCII_KEYSTROKE_EVENT;
430 430
431 if (!NILP (Vw32_recognize_altgr) 431 if (!NILP (Vw32_recognize_altgr)
432 && (event->dwControlKeyState & LEFT_CTRL_PRESSED) 432 && (event->dwControlKeyState & LEFT_CTRL_PRESSED)
@@ -468,7 +468,7 @@ key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev, int *isdead)
468 } 468 }
469 else 469 else
470 { 470 {
471 emacs_ev->kind = non_ascii_keystroke; 471 emacs_ev->kind = NON_ASCII_KEYSTROKE_EVENT;
472 XSETINT (emacs_ev->code, event->wVirtualKeyCode); 472 XSETINT (emacs_ev->code, event->wVirtualKeyCode);
473 } 473 }
474 474
@@ -584,7 +584,7 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
584 if (event->dwButtonState == button_state) 584 if (event->dwButtonState == button_state)
585 return 0; 585 return 0;
586 586
587 emacs_ev->kind = mouse_click; 587 emacs_ev->kind = MOUSE_CLICK_EVENT;
588 588
589 /* Find out what button has changed state since the last button event. */ 589 /* Find out what button has changed state since the last button event. */
590 but_change = button_state ^ event->dwButtonState; 590 but_change = button_state ^ event->dwButtonState;
diff --git a/src/xterm.h b/src/xterm.h
index a91c51ce0bf..a0da573f800 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -905,11 +905,11 @@ struct scroll_bar
905 - (f)->output_data.x->internal_border_width))) 905 - (f)->output_data.x->internal_border_width)))
906 906
907 907
908/* If a struct input_event has a kind which is selection_request_event 908/* If a struct input_event has a kind which is SELECTION_REQUEST_EVENT
909 or selection_clear_event, then its contents are really described 909 or SELECTION_CLEAR_EVENT, then its contents are really described
910 by this structure. */ 910 by this structure. */
911 911
912/* For an event of kind selection_request_event, 912/* For an event of kind SELECTION_REQUEST_EVENT,
913 this structure really describes the contents. 913 this structure really describes the contents.
914 **Don't make this struct longer!** 914 **Don't make this struct longer!**
915 If it overlaps the frame_or_window field of struct input_event, 915 If it overlaps the frame_or_window field of struct input_event,