diff options
| -rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 1a41affc58f..f7a0c018d63 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3525,6 +3525,7 @@ record_char (c) | |||
| 3525 | If you, dear reader, have a better idea, you've got the source. :-) */ | 3525 | If you, dear reader, have a better idea, you've got the source. :-) */ |
| 3526 | if (dribble) | 3526 | if (dribble) |
| 3527 | { | 3527 | { |
| 3528 | BLOCK_INPUT; | ||
| 3528 | if (INTEGERP (c)) | 3529 | if (INTEGERP (c)) |
| 3529 | { | 3530 | { |
| 3530 | if (XUINT (c) < 0x100) | 3531 | if (XUINT (c) < 0x100) |
| @@ -3550,6 +3551,7 @@ record_char (c) | |||
| 3550 | } | 3551 | } |
| 3551 | 3552 | ||
| 3552 | fflush (dribble); | 3553 | fflush (dribble); |
| 3554 | UNBLOCK_INPUT; | ||
| 3553 | } | 3555 | } |
| 3554 | } | 3556 | } |
| 3555 | 3557 | ||
| @@ -10436,7 +10438,9 @@ If FILE is nil, close any open dribble file. */) | |||
| 10436 | { | 10438 | { |
| 10437 | if (dribble) | 10439 | if (dribble) |
| 10438 | { | 10440 | { |
| 10441 | BLOCK_INPUT; | ||
| 10439 | fclose (dribble); | 10442 | fclose (dribble); |
| 10443 | UNBLOCK_INPUT; | ||
| 10440 | dribble = 0; | 10444 | dribble = 0; |
| 10441 | } | 10445 | } |
| 10442 | if (!NILP (file)) | 10446 | if (!NILP (file)) |