]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix completion-auto-help/icomplete-mode bad interaction (Bug#5849).
authorChong Yidong <cyd@stupidchicken.com>
Sun, 10 Apr 2011 21:07:40 +0000 (17:07 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 10 Apr 2011 21:07:40 +0000 (17:07 -0400)
* minibuffer.el (completion--do-completion): Avoid the "Next char
not unique" prompt if icomplete-mode is enabled.

lisp/ChangeLog
lisp/minibuffer.el

index c89bb3f281a91e37d251a7ef944ec2066eef94ba..cbfbd2b71f1dd09d44d395643d4b8b415bcd491c 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-10  Chong Yidong  <cyd@stupidchicken.com>
+
+       * minibuffer.el (completion--do-completion): Avoid the "Next char
+       not unique" prompt if icomplete-mode is enabled (Bug#5849).
+
 2011-04-10  Stephen Berman <stephen.berman@gmx.net>
 
        * textmodes/page.el (what-page): Use line-number-at-pos to
index 338ab4e281ebc4001ae328142d82010c5b507d12..adbb9a6c539741dc55e97487134f359a5270766b 100644 (file)
@@ -574,9 +574,10 @@ E = after completion we now have an Exact match.
               ;; Show the completion table, if requested.
               (cond
                ((not exact)
-                (if (case completion-auto-help
-                      (lazy (eq this-command last-command))
-                      (t completion-auto-help))
+               (if (cond (icomplete-mode t)
+                         ((eq completion-auto-help 'lazy)
+                          (eq this-command last-command))
+                         (t completion-auto-help))
                     (minibuffer-completion-help)
                   (minibuffer-message "Next char not unique")))
                ;; If the last exact completion and this one were the same, it