Wow, that's almost 3 years ago. Thanks for even rlooking into it.

Then maybe call it sub-optimal default behavior instead of a bug.
If that kind of consistency is most important, then my request is invalid.
However IMHO, out of 1000 times a user presses C-x f after "/**", he will in 1000 cases not intent to open a file called /**, even if such a file could exist. So I would tend towards making the tool do what the user wants, not what is most consistent in theory, but that may just be me.

In the second case, the cursor is not on '/', but on '/>'. Suggesting '/' instead of nothing, ignoring the '>' character seems bad to me, though maybe it is consistent with some other behavior. Close as "wont fix" by all means if my position is not persuasive.

Gesendet: Donnerstag, 11. Juli 2013 um 18:23 Uhr
Von: "Leo Liu" <sdl.web@gmail.com>
An: "Thibault Kruse" <thibault.kruse@gmx.de>
Cc: 7229@debbugs.gnu.org
Betreff: Re: bug#7229: 23.1; ido guess and ffap bug
On 2010-10-17 04:08 +0800, Thibault Kruse wrote:
> enter /**
> cursor at the end of that line
> M-x ido-find-file (or C-x f): ido suggests /**, instead of pwd
> enter <test />
> cursor at the end of that line
> M-x ido-find-file (or C-x f): ido suggests /, instead of pwd
>
> same for M-x ffap

I don't see any bugs here. ido and ffap seem working consistently per
your request (/** and / are valid file names).

Leo