diff options
| author | Richard M. Stallman | 1994-10-07 17:40:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-07 17:40:50 +0000 |
| commit | 270c21387d57a67c397397d3246ca64031081bd6 (patch) | |
| tree | 9cf0e43f5720d68bc45224d962d9ad15c4204115 /src | |
| parent | 7fd741024b6d5cdc921ba1f16e0e00f679d74e32 (diff) | |
| download | emacs-270c21387d57a67c397397d3246ca64031081bd6.tar.gz emacs-270c21387d57a67c397397d3246ca64031081bd6.zip | |
(make_gap): Keep input blocked till after we set BEG_ADDR.
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c index 969f70dba6e..833d0065a1b 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -271,11 +271,16 @@ make_gap (increment) | |||
| 271 | 271 | ||
| 272 | BLOCK_INPUT; | 272 | BLOCK_INPUT; |
| 273 | result = BUFFER_REALLOC (BEG_ADDR, (Z - BEG + GAP_SIZE + increment)); | 273 | result = BUFFER_REALLOC (BEG_ADDR, (Z - BEG + GAP_SIZE + increment)); |
| 274 | UNBLOCK_INPUT; | ||
| 275 | 274 | ||
| 276 | if (result == 0) | 275 | if (result == 0) |
| 277 | memory_full (); | 276 | { |
| 277 | UNBLOCK_INPUT; | ||
| 278 | memory_full (); | ||
| 279 | } | ||
| 280 | |||
| 281 | /* We can't unblock until the new address is properly stored. */ | ||
| 278 | BEG_ADDR = result; | 282 | BEG_ADDR = result; |
| 283 | UNBLOCK_INPUT; | ||
| 279 | 284 | ||
| 280 | /* Prevent quitting in move_gap. */ | 285 | /* Prevent quitting in move_gap. */ |
| 281 | tem = Vinhibit_quit; | 286 | tem = Vinhibit_quit; |