Subject: bug#56532: 27.2; Ido C-f in read-file-name inserts twice the initial name

From: Eli Zaretskii <[email-masked]>
Date: Thu, 14 Jul 2022 13:51:36 +0300

> Date: Thu, 14 Jul 2022 12:02:11 +0200
> Cc: [email-masked]
> From: Tobias Bora <[email-masked]>
> 
> I can easily reproduce it in emacs -Q yes by simply evaluating the 
> following config:
> 
> (setq ido-everywhere t)
> (ido-mode)
> ;; Stop changing directory when openning a file that does not exist!
> (setq ido-auto-merge-work-directories-length -1)
> 
> (read-file-name  "Picture name:" "/tmp/" nil nil "defaultname.png")

It looks like you aren't supposed to do that under Ido.  See
ido-magic-forward-char.