changeset 30976:d5e13d726a9c

(do_completion): Try again if we rewrite the input string, but no completion was done, so that any completion message will be correct.
author Miles Bader <miles@gnu.org>
date Sun, 20 Aug 2000 17:10:13 +0000
parents c007b25bad3d
children 14c0286b43b5
files src/minibuf.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Sun Aug 20 13:29:38 2000 +0000
+++ b/src/minibuf.c	Sun Aug 20 17:10:13 2000 +0000
@@ -1616,6 +1616,17 @@
     {
       Fdelete_field (make_number (ZV)); /* Some completion happened */
       Finsert (1, &completion);
+
+      if (! completedp)
+	/* The case of the string changed, but that's all.  We're not
+	   sure whether this is a unique completion or not, so try again
+	   using the real case (this shouldn't recurse again, because
+	   the next time try-completion will return either `t' or the
+	   exact string).  */
+	{
+	  UNGCPRO;
+	  return do_completion ();
+	}
     }
 
   /* It did find a match.  Do we match some possibility exactly now? */