diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 3ad92331e01..ba23cc6ae33 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1458,7 +1458,16 @@ with SIGHUP. */) | |||
| 1458 | unlock_buffer (b); | 1458 | unlock_buffer (b); |
| 1459 | #endif /* CLASH_DETECTION */ | 1459 | #endif /* CLASH_DETECTION */ |
| 1460 | 1460 | ||
| 1461 | GCPRO1 (buf); | ||
| 1461 | kill_buffer_processes (buf); | 1462 | kill_buffer_processes (buf); |
| 1463 | UNGCPRO; | ||
| 1464 | |||
| 1465 | /* Killing buffer processes may run sentinels which may | ||
| 1466 | have called kill-buffer. */ | ||
| 1467 | |||
| 1468 | if (NILP (b->name)) | ||
| 1469 | return Qnil; | ||
| 1470 | |||
| 1462 | clear_charpos_cache (b); | 1471 | clear_charpos_cache (b); |
| 1463 | 1472 | ||
| 1464 | tem = Vinhibit_quit; | 1473 | tem = Vinhibit_quit; |