diff options
| author | Chong Yidong | 2011-04-10 17:07:40 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-04-10 17:07:40 -0400 |
| commit | 6f21a3198d25844445ab58a5f08d968197e5ea4e (patch) | |
| tree | 09db6ade3ebe989ccb43ec7ce7591639e83507dc | |
| parent | fde4eb868f9ec91cb3a281f798da2c0ebdadd5a3 (diff) | |
| download | emacs-6f21a3198d25844445ab58a5f08d968197e5ea4e.tar.gz emacs-6f21a3198d25844445ab58a5f08d968197e5ea4e.zip | |
Fix completion-auto-help/icomplete-mode bad interaction (Bug#5849).
* minibuffer.el (completion--do-completion): Avoid the "Next char
not unique" prompt if icomplete-mode is enabled.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c89bb3f281a..cbfbd2b71f1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-04-10 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * minibuffer.el (completion--do-completion): Avoid the "Next char | ||
| 4 | not unique" prompt if icomplete-mode is enabled (Bug#5849). | ||
| 5 | |||
| 1 | 2011-04-10 Stephen Berman <stephen.berman@gmx.net> | 6 | 2011-04-10 Stephen Berman <stephen.berman@gmx.net> |
| 2 | 7 | ||
| 3 | * textmodes/page.el (what-page): Use line-number-at-pos to | 8 | * textmodes/page.el (what-page): Use line-number-at-pos to |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 338ab4e281e..adbb9a6c539 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -574,9 +574,10 @@ E = after completion we now have an Exact match. | |||
| 574 | ;; Show the completion table, if requested. | 574 | ;; Show the completion table, if requested. |
| 575 | (cond | 575 | (cond |
| 576 | ((not exact) | 576 | ((not exact) |
| 577 | (if (case completion-auto-help | 577 | (if (cond (icomplete-mode t) |
| 578 | (lazy (eq this-command last-command)) | 578 | ((eq completion-auto-help 'lazy) |
| 579 | (t completion-auto-help)) | 579 | (eq this-command last-command)) |
| 580 | (t completion-auto-help)) | ||
| 580 | (minibuffer-completion-help) | 581 | (minibuffer-completion-help) |
| 581 | (minibuffer-message "Next char not unique"))) | 582 | (minibuffer-message "Next char not unique"))) |
| 582 | ;; If the last exact completion and this one were the same, it | 583 | ;; If the last exact completion and this one were the same, it |