* ido.el (ido-exhibit): Handle ido-enter-matching-directory before
authorLeo Liu <sdl.web@gmail.com>
Sat, 13 Jul 2013 00:57:47 +0000 (08:57 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sat, 13 Jul 2013 00:57:47 +0000 (08:57 +0800)
ido-set-matches call.

Fixes: debbugs:6852

lisp/ChangeLog
lisp/ido.el

index 81bcb1d..a6a0850 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-13  Leo Liu  <sdl.web@gmail.com>
+
+       * ido.el (ido-exhibit): Handle ido-enter-matching-directory before
+       ido-set-matches call.  (Bug#6852)
+
 2013-07-12  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-percent-literals-beg-re):
index 9c4e565..ce43e86 100644 (file)
@@ -4482,11 +4482,6 @@ For details of keybindings, see `ido-find-file'."
          (setq ido-exit 'refresh)
          (exit-minibuffer))
 
-       ;; Update the list of matches
-       (setq ido-text contents)
-       (ido-set-matches)
-       (ido-trace "new    " ido-matches)
-
        (when (and ido-enter-matching-directory
                   ido-matches
                   (or (eq ido-enter-matching-directory 'first)
@@ -4500,6 +4495,11 @@ For details of keybindings, see `ido-find-file'."
          (setq ido-exit 'refresh)
          (exit-minibuffer))
 
+       ;; Update the list of matches
+       (setq ido-text contents)
+       (ido-set-matches)
+       (ido-trace "new    " ido-matches)
+
        (when (and (boundp 'ido-enable-virtual-buffers)
                   (not (eq ido-enable-virtual-buffers 'always))
                   (eq ido-cur-item 'buffer)