diff options
author | Leo Liu <sdl.web@gmail.com> | 2013-07-13 08:57:47 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2013-07-13 08:57:47 +0800 |
commit | 97ead0e597427786571cd69e052a2886d1da6032 (patch) | |
tree | f810bd45e74740653cd03ef2489a272f1ac8e523 /lisp/ido.el | |
parent | 5e301d7651c0691bb2bc7f3fbe711fdbe26ac471 (diff) | |
download | emacs-97ead0e597427786571cd69e052a2886d1da6032.tar.gz |
* ido.el (ido-exhibit): Handle ido-enter-matching-directory before
ido-set-matches call.
Fixes: debbugs:6852
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 9c4e56544cb..ce43e866d09 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -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) |