diff options
| author | Miles Bader | 2000-08-20 17:12:03 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-08-20 17:12:03 +0000 |
| commit | 6e69ab8c7b605d6ec0d05c6378dcd26f5a8ac835 (patch) | |
| tree | 721e0294c02164d758daea1a7c8e3d890218565b /src | |
| parent | 511bd4eb0b86480b119e624e7d23bab0edcacf81 (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | src/minibuf.c | 11 |
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 @@ | |||
| 1 | 2000-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 | |||
| 1 | 2000-08-20 Gerd Moellmann <gerd@gnu.org> | 7 | 2000-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? */ |