aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index a465153279d..e44b6daf587 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2050,6 +2050,13 @@ cleaning up all windows currently displaying the buffer to be killed. */)
2050 return Qnil; 2050 return Qnil;
2051 } 2051 }
2052 2052
2053 /* Check all threads again, in case a hook changed something. */
2054 if (thread_check_current_buffer (b))
2055 return Qnil;
2056
2057 /* Clean up references to the buffer in threads. */
2058 thread_all_before_buffer_killed (buffer);
2059
2053 /* If the buffer now current is shown in the minibuffer and our buffer 2060 /* If the buffer now current is shown in the minibuffer and our buffer
2054 is the sole other buffer give up. */ 2061 is the sole other buffer give up. */
2055 XSETBUFFER (tem, current_buffer); 2062 XSETBUFFER (tem, current_buffer);