Hello, Ole Laursen writes: > Run emacs -Q, evaluate > > (icomplete-mode 1) > (setq icomplete-show-matches-on-no-input t) > > Make sure you have three buffers, e.g. by finding three files. Then > hit C-x b which should immediately show all buffers and use C-. or C-, > to select any other buffer than what the modeline declares to be the > default, and hit C-j or RET. > > Emacs then switches to the default buffer instead of the selected buffer. I'm not sure if this is expected behaviour, since the "default" prompt in the minibuffer doesn't disappear when cycling through results. Nevertheless attached is a patch that fixes this. -- Matt lisp/ChangeLog: 2014-11-15 Matthew Leach * minibuffer.el (completion-use-stored-completions-when-no-input): New. (completion--complete-and-exit): Use the above to decide whether to use the car of `completion-all-sorted-completions' as the candidate. * icomplete.el (icomplete-minibuffer-setup): set `completion-use-stored-completions-when-no-input' when `icomplete-show-matches-on-no-input' is t.