aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2011-10-11 13:32:38 -0400
committerStefan Monnier2011-10-11 13:32:38 -0400
commit127827c013b6b4fc78ee1362a695b7a7e8890e02 (patch)
tree8b47327f1f967a7dca692aec86d56e77ed59d967 /src
parent7ce7717b874fe51d4137cbff99ae922e38082938 (diff)
downloademacs-127827c013b6b4fc78ee1362a695b7a7e8890e02.tar.gz
emacs-127827c013b6b4fc78ee1362a695b7a7e8890e02.zip
* minibuf.c (Finternal_complete_buffer): Fix last change.
Fixes: debbugs:9709
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/minibuf.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9cef045c029..f659c1157a1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * minibuf.c (Finternal_complete_buffer): Fix last change (bug#9709).
4
12011-10-08 Glenn Morris <rgm@gnu.org> 52011-10-08 Glenn Morris <rgm@gnu.org>
2 6
3 * callint.c (Fcall_interactively): Give a more explicit error for the 7 * callint.c (Fcall_interactively): Give a more explicit error for the
diff --git a/src/minibuf.c b/src/minibuf.c
index f082cc01d97..a44a6376472 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1859,9 +1859,10 @@ The arguments STRING and PREDICATE are as in `try-completion',
1859 /* First, look for a non-internal buffer in `res'. */ 1859 /* First, look for a non-internal buffer in `res'. */
1860 while (CONSP (bufs) && SREF (XCAR (bufs), 0) == ' ') 1860 while (CONSP (bufs) && SREF (XCAR (bufs), 0) == ' ')
1861 bufs = XCDR (bufs); 1861 bufs = XCDR (bufs);
1862 if (NILP (bufs) && EQ (Flength (res), Flength (Vbuffer_alist))) 1862 if (NILP (bufs))
1863 /* All bufs are internal, so don't trip them out. */ 1863 return (EQ (Flength (res), Flength (Vbuffer_alist))
1864 return res; 1864 /* If all bufs are internal don't strip them out. */
1865 ? res : bufs);
1865 res = bufs; 1866 res = bufs;
1866 while (CONSP (XCDR (bufs))) 1867 while (CONSP (XCDR (bufs)))
1867 if (SREF (XCAR (XCDR (bufs)), 0) == ' ') 1868 if (SREF (XCAR (XCDR (bufs)), 0) == ' ')