summaryrefslogtreecommitdiff
path: root/src/minibuf.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2011-10-01 20:25:27 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2011-10-01 20:25:27 -0400
commit51553db66b4eb8bc7a0d1a1c3206e097e0cc94fa (patch)
treebd3013fb6aedcd932b223990d6764e13531e0ec9 /src/minibuf.c
parent487ffd7a8cb70b7f6fd1cf60b5d8c09ac7d1e0d7 (diff)
downloademacs-51553db66b4eb8bc7a0d1a1c3206e097e0cc94fa.tar.gz
* src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if
they've been requested explicitly. Fixes: debbugs:9591
Diffstat (limited to 'src/minibuf.c')
-rw-r--r--src/minibuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 341d544ef51..f082cc01d97 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1859,8 +1859,8 @@ 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))
- /* All bufs in `res' are internal, so don't trip them out. */
+ if (NILP (bufs) && EQ (Flength (res), Flength (Vbuffer_alist)))
+ /* All bufs are internal, so don't trip them out. */
return res;
res = bufs;
while (CONSP (XCDR (bufs)))