aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2000-08-20 17:12:03 +0000
committerMiles Bader2000-08-20 17:12:03 +0000
commit6e69ab8c7b605d6ec0d05c6378dcd26f5a8ac835 (patch)
tree721e0294c02164d758daea1a7c8e3d890218565b /src
parent511bd4eb0b86480b119e624e7d23bab0edcacf81 (diff)
downloademacs-6e69ab8c7b605d6ec0d05c6378dcd26f5a8ac835.tar.gz
emacs-6e69ab8c7b605d6ec0d05c6378dcd26f5a8ac835.zip
(do_completion): Try again if we rewrite the input string, but no
completion was done, so that any completion message will be correct.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/minibuf.c11
2 files changed, 17 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 984cb3e81db..db632de81b4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12000-08-21 Miles Bader <miles@gnu.org>
2
3 * minibuf.c (do_completion): Try again if we rewrite the input
4 string, but no completion was done, so that any completion message
5 will be correct.
6
12000-08-20 Gerd Moellmann <gerd@gnu.org> 72000-08-20 Gerd Moellmann <gerd@gnu.org>
2 8
3 * xfaces.c (lface_equal_p): Compare strings differently. 9 * xfaces.c (lface_equal_p): Compare strings differently.
diff --git a/src/minibuf.c b/src/minibuf.c
index e730f8a91ca..50cd82ae1af 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1616,6 +1616,17 @@ do_completion ()
1616 { 1616 {
1617 Fdelete_field (make_number (ZV)); /* Some completion happened */ 1617 Fdelete_field (make_number (ZV)); /* Some completion happened */
1618 Finsert (1, &completion); 1618 Finsert (1, &completion);
1619
1620 if (! completedp)
1621 /* The case of the string changed, but that's all. We're not
1622 sure whether this is a unique completion or not, so try again
1623 using the real case (this shouldn't recurse again, because
1624 the next time try-completion will return either `t' or the
1625 exact string). */
1626 {
1627 UNGCPRO;
1628 return do_completion ();
1629 }
1619 } 1630 }
1620 1631
1621 /* It did find a match. Do we match some possibility exactly now? */ 1632 /* It did find a match. Do we match some possibility exactly now? */