diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 4d24f970792..b7b471d6d46 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1726,6 +1726,9 @@ cleaning up all windows currently displaying the buffer to be killed. */) | |||
| 1726 | if (!BUFFER_LIVE_P (b)) | 1726 | if (!BUFFER_LIVE_P (b)) |
| 1727 | return Qnil; | 1727 | return Qnil; |
| 1728 | 1728 | ||
| 1729 | if (thread_check_current_buffer (b)) | ||
| 1730 | return Qnil; | ||
| 1731 | |||
| 1729 | /* Query if the buffer is still modified. */ | 1732 | /* Query if the buffer is still modified. */ |
| 1730 | if (INTERACTIVE && !NILP (BVAR (b, filename)) | 1733 | if (INTERACTIVE && !NILP (BVAR (b, filename)) |
| 1731 | && BUF_MODIFF (b) > BUF_SAVE_MODIFF (b)) | 1734 | && BUF_MODIFF (b) > BUF_SAVE_MODIFF (b)) |