diff options
| author | Karoly Lorentey | 2004-02-25 03:29:37 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-02-25 03:29:37 +0000 |
| commit | 46aab6b1e106cc1bc6d71ddcfc2aa84f0ae37f30 (patch) | |
| tree | e46c9cd7a1e72153fb73aba660e35a02d1d60246 | |
| parent | 174ab5e4da94159a401998d9006477638ce87a46 (diff) | |
| download | emacs-46aab6b1e106cc1bc6d71ddcfc2aa84f0ae37f30.tar.gz emacs-46aab6b1e106cc1bc6d71ddcfc2aa84f0ae37f30.zip | |
Revert patch-93, that was the real culprit. Reapply patch-97.
src/keyboard.c (read_avail_input): Don't BLOCK_INPUT.
src/xterm.c (XTread_socket): Don't try to handle a new event if the
input buffer is full.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-99
| -rw-r--r-- | src/keyboard.c | 10 | ||||
| -rw-r--r-- | src/xterm.c | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 9c41fa91351..2c6edc68f99 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6589,14 +6589,6 @@ read_avail_input (expected) | |||
| 6589 | int err; | 6589 | int err; |
| 6590 | struct display *d; | 6590 | struct display *d; |
| 6591 | 6591 | ||
| 6592 | if (interrupt_input_blocked) | ||
| 6593 | { | ||
| 6594 | interrupt_input_pending = 1; | ||
| 6595 | return -1; | ||
| 6596 | } | ||
| 6597 | |||
| 6598 | BLOCK_INPUT; | ||
| 6599 | |||
| 6600 | /* Loop through the available displays, and call their input hooks. */ | 6592 | /* Loop through the available displays, and call their input hooks. */ |
| 6601 | d = display_list; | 6593 | d = display_list; |
| 6602 | while (d) | 6594 | while (d) |
| @@ -6669,8 +6661,6 @@ read_avail_input (expected) | |||
| 6669 | if (err && !nread) | 6661 | if (err && !nread) |
| 6670 | nread = -1; | 6662 | nread = -1; |
| 6671 | 6663 | ||
| 6672 | UNBLOCK_INPUT; | ||
| 6673 | |||
| 6674 | return nread; | 6664 | return nread; |
| 6675 | } | 6665 | } |
| 6676 | 6666 | ||
diff --git a/src/xterm.c b/src/xterm.c index 321e9fa3f2f..90356b2ed2f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7209,6 +7209,12 @@ XTread_socket (display, bufp, numchars, expected) | |||
| 7209 | { | 7209 | { |
| 7210 | int finish; | 7210 | int finish; |
| 7211 | 7211 | ||
| 7212 | if (numchars <= 1) | ||
| 7213 | { | ||
| 7214 | /* The input buffer is full; read the rest next time. */ | ||
| 7215 | break; | ||
| 7216 | } | ||
| 7217 | |||
| 7212 | XNextEvent (dpyinfo->display, &event); | 7218 | XNextEvent (dpyinfo->display, &event); |
| 7213 | 7219 | ||
| 7214 | #ifdef HAVE_X_I18N | 7220 | #ifdef HAVE_X_I18N |