From: Giuseppe Scrivano Date: Thu, 8 Oct 2009 20:37:30 +0000 (+0200) Subject: Handle the thread_notify_kill_buffer return code. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c3aebd7c9277cbc2dbe64ce693da7ab8c2213af9;p=emacs.git Handle the thread_notify_kill_buffer return code. --- 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. */