Mercurial > emacs
comparison src/sysdep.c @ 45804:863817d7e734
*** empty log message ***
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Thu, 13 Jun 2002 15:00:02 +0000 |
parents | 01b93e5e53a7 |
children | c6d9317e4393 |
comparison
equal
deleted
inserted
replaced
45803:9484de301252 | 45804:863817d7e734 |
---|---|
2009 if (! stop_input) | 2009 if (! stop_input) |
2010 queue_kbd_input (); | 2010 queue_kbd_input (); |
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); |
2018 } | 2018 } |
2019 if (input_available_clear_time) | 2019 if (input_available_clear_time) |
2678 for (i = 0; i < nread; i++) | 2678 for (i = 0; i < nread; i++) |
2679 { | 2679 { |
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 } |
2687 } | 2687 } |
2688 else | 2688 else |
2689 { | 2689 { |
2690 char buf[3]; | 2690 char buf[3]; |
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++) |
2698 { | 2698 { |
2699 /* Convert chars > 0177 to meta events if desired. | 2699 /* Convert chars > 0177 to meta events if desired. |