+2011-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * minibuf.c (Finternal_complete_buffer): Fix last change (bug#9709).
+
2011-10-08 Glenn Morris <rgm@gnu.org>
* callint.c (Fcall_interactively): Give a more explicit error for the
/* 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))
+ /* If all bufs are internal don't strip them out. */
+ ? res : bufs);
res = bufs;
while (CONSP (XCDR (bufs)))
if (SREF (XCAR (XCDR (bufs)), 0) == ' ')