Emacs has recently (between 24.0 and 25 ish?) removed iswitchb in favor of some combination of ido and icomplete mode, which I've seen claims are 99% compatible; which I can live with, I don't have any sort of fancy custom hooks or anything just a few excludes here and there. But I can't seem to figure out how to make the "new" modes work the way iswitchb did.
When trying to open a new file with C-x f or C-x C-v I often get stuck with extra garbage on one or both ends of the path I'm trying to navigate to, (either the path prefix is in a weird green mode and behaves oddly when trying to navigate or edit characters or text persists to the right of the point and interferes with suggestions. Or at times I only get suggestions for directories even when there are files present (I have multiple times had to type the entire path and file name and hit enter to open a file as it wouldn't complete at all).
So how do I get the iswitchb style behavior back?
Here's a specific repeatable occurrence of one problem: I have a file open in a buffer, and hit C-x C-f to find a new file, the path to the buffer's current file's directory is pre-filled in the mini-buffer and is the colour of the mini-buffer prompt instead of the colour of the text you type (green instead of white for me), if I paste/yank/whatever in a relative path, the new text is white and ido (or icomplete or whatever is handling the completion in this case) cannot find the file. What's more; often there is some overlap at the end of the pre-filled portion of the path and the new text added, so I need to edit at that point, however pressing alt-b deletes directories off the end of the pre-filled section instead of moving the point and the new text is lost too.
- open file at ~/Developer/lisp/cool_file.el
- copy the path to another file in another terminal tab or where-ever.
- press C-x C-f in emacs to find a new file
- the mini-buffer will show the following:
Find file: ~/Developer/lisp/in the mini-buffer's "prompt" colour
- paste in the new path
Find file: ~/Developer/lisp/ruby/other_cool_file.rb [No match]
- the pasted path will be the regular colour of mini-buffer input and the file will not be found even if the path is correct as is. (hitting return will clear the pre-filled path completely and replace it with the pasted path, which won't find anything either.
- if there needs to be some change made at the point between the two styles of text in the mini-buffer, pressing alt-b to get to that point will not move the point as expected but instead remove the rightmost prompt-coloured directory from the pre-filled path and delete the new path that you pasted in.
Obviously I'd like to have the file be found when the path is correct as entered and be able to navigate the mini-buffer as normal.