]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle the thread_notify_kill_buffer return code.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Thu, 8 Oct 2009 20:37:30 +0000 (22:37 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Thu, 8 Oct 2009 20:37:30 +0000 (22:37 +0200)
src/buffer.c

index 7be468f4b902a17e1e9a43fc706046f325157589..01531ca8c740d71b55c6e2974ec0b29f6fd69cea 100644 (file)
@@ -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.  */