From c3aebd7c9277cbc2dbe64ce693da7ab8c2213af9 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 8 Oct 2009 22:37:30 +0200 Subject: [PATCH] Handle the thread_notify_kill_buffer return code. --- src/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 7be468f4b90..01531ca8c74 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1516,7 +1516,8 @@ with SIGHUP. */) /* Make this buffer not be current. In the process, notice if this is the sole visible buffer and give up if so. */ - thread_notify_kill_buffer (b); + if (NILP (thread_notify_kill_buffer (b))) + return Qnil; /* Notice if the buffer to kill is the sole visible buffer when we're currently in the mini-buffer, and give up if so. */ -- 2.39.5