From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 56532@debbugs.gnu.org, tobias.bora@gmail.com
Subject: bug#56532: 27.2; Ido C-f in read-file-name inserts twice the initial name
Date: Thu, 14 Jul 2022 21:23:09 +0300 [thread overview]
Message-ID: <83y1wvsgdu.fsf@gnu.org> (raw)
In-Reply-To: <87zghb5zgi.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 14 Jul 2022 20:19:41 +0200)
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Tobias Bora <tobias.bora@gmail.com>, 56532@debbugs.gnu.org
> Date: Thu, 14 Jul 2022 20:19:41 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> 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")
>
> Thanks; with that I can reproduce the problem.
>
> > It looks like you aren't supposed to do that under Ido. See
> > ido-magic-forward-char.
>
> It may not be supposed to work, but it'd be logical if it did, I think?
> But I'm not that familiar with how ido does fallbacks (it seems to
> involve some strange, brittle magic), so I don't know whether it's
> possible or not.
I think it relies on how the candidates are displayed at that point,
which is quite different from what read-file-name does. Yes, that's
brittle.
next prev parent reply other threads:[~2022-07-14 18:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-13 9:27 bug#56532: 27.2; Ido C-f in read-file-name inserts twice the initial name Tobias Bora
2022-07-13 11:07 ` Lars Ingebrigtsen
2022-07-13 14:16 ` Tobias Bora
2022-07-13 15:00 ` bug#56531: " Lars Ingebrigtsen
2022-07-13 17:15 ` Eli Zaretskii
2022-07-14 10:02 ` Tobias Bora
2022-07-14 10:51 ` Eli Zaretskii
2022-07-14 18:19 ` Lars Ingebrigtsen
2022-07-14 18:23 ` Eli Zaretskii [this message]
2022-07-14 20:54 ` Tobias Bora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y1wvsgdu.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=56532@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=tobias.bora@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.