bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Monnier
Subject: bug#9709: 24.0.90; TAB-completion causes assertion violation
Date: Tue, 11 Oct 2011 13:32:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>  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) == ' ')





reply via email to

[Prev in Thread] Current Thread [Next in Thread]