]> code.delx.au - gnu-emacs/commitdiff
(Ftry_completion): Don't short circuit if completion-ignore-case is
authorChong Yidong <cyd@stupidchicken.com>
Thu, 8 Mar 2007 14:34:11 +0000 (14:34 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 8 Mar 2007 14:34:11 +0000 (14:34 +0000)
non-nil.

src/minibuf.c

index 5bb91cf73482baf6db33c38e36b0087a38a1f269..1c2cfc4530678bab42c98f11cf9e8f67d856e88b 100644 (file)
@@ -1483,6 +1483,10 @@ is used to further constrain the set of candidates.  */)
                matchcount++;
              bestmatchsize = matchsize;
              if (matchsize <= SCHARS (string)
+                 /* If completion-ignore-case is non-nil, don't
+                    short-circuit because we want to find the best
+                    possible match *including* case differences.  */
+                 && !completion_ignore_case
                  && matchcount > 1)
                /* No need to look any further.  */
                break;