Commit 127827c0 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* minibuf.c (Finternal_complete_buffer): Fix last change.

Fixes: debbugs:9709
parent 7ce7717b
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
......
......@@ -1859,9 +1859,10 @@ The arguments STRING and PREDICATE are as in `try-completion',
/* 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) == ' ')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment