unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tobias Bora <tobias.bora@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 56531@debbugs.gnu.org, 56532@debbugs.gnu.org
Subject: bug#56532: 27.2; Ido C-f in read-file-name inserts twice the initial name
Date: Wed, 13 Jul 2022 16:16:22 +0200	[thread overview]
Message-ID: <55935fa9-6c94-102b-557e-13d18073ab22@gmail.com> (raw)
In-Reply-To: <874jzltgmo.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]

Thanks for you answer.

Well the procedure is complete: C-f moves the point until you reach the 
end of the message and then it changes the prompt. If you do C-e as I 
explained before C-f, the point should already be at the end of the 
message and therefore it can't move further.

I tried to add a slash, the problem is the same, as demonstrated in the 
attached gif.

On 13/07/2022 13:07, Lars Ingebrigtsen wrote:
> Tobias Bora <tobias.bora@gmail.com> writes:
>
>> Dear maintainers,
>>
>> If you enable ido with (setq ido-auto-merge-work-directories-length -1)
>> and evaluate:
>>
>> (read-file-name  "Picture name:" "/tmp" nil nil "defaultname.png")
>>
>> and go at the end of the buffer with C-e (not sure why the cursor is not
>> there by default), and press C-f to come back to a normal file prompt
>> (not using ido),
> Are there some missing bits in this recipe?  `C-f' after eval-ing that
> form just moves point, it doesn't change what's prompted for.
>
> In any case, in Emacs directories are supposed to end with a slash, so
> the correct syntax would be:
>
> (read-file-name  "Picture name:" "/tmp/" nil nil "defaultname.png")
>

[-- Attachment #2: Peek 13-07-2022 16-14.gif --]
[-- Type: image/gif, Size: 15599 bytes --]

  reply	other threads:[~2022-07-13 14:16 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 [this message]
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
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55935fa9-6c94-102b-557e-13d18073ab22@gmail.com \
    --to=tobias.bora@gmail.com \
    --cc=56531@debbugs.gnu.org \
    --cc=56532@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).