Subject: Re: bug#9709: 24.0.90; TAB-completion causes assertion violation

From: Stefan Monnier <[email-masked]>
Date: Tue, 11 Oct 2011 13:32:46 -0400

>  emacs -Q
>  C-x b w TAB

>  => minibuf.c:1866: Emacs fatal error: assertion failed: CONSP ((bufs))

Oops, sorry, should be fixed now, thanks to the patch below,

        Stefan

=== modified file 'src/minibuf.c'
--- src/minibuf.c	2011-10-02 00:25:27 +0000
+++ src/minibuf.c	2011-10-11 15:27:20 +0000
@@ -1859,9 +1859,10 @@
 	  /* First, look for a non-internal buffer in `res'.  */
 	  while (CONSP (bufs) && SREF (XCAR (bufs), 0) == ' ')
 	    bufs = XCDR (bufs);
-	  if (NILP (bufs) && EQ (Flength (res), Flength (Vbuffer_alist)))
-	    /* All bufs are internal, so don't trip them out.  */
-	    return res;
+	  if (NILP (bufs))
+	    return (EQ (Flength (res), Flength (Vbuffer_alist))
+		    /* All bufs are internal, so don't strip them out.  */
+		    ? res : bufs);
 	  res = bufs;
 	  while (CONSP (XCDR (bufs)))
 	    if (SREF (XCAR (XCDR (bufs)), 0) == ' ')