GNU bug report logs - #56532
27.2; Ido C-f in read-file-name inserts twice the initial name

Previous Next

Package: emacs;

Reported by: Tobias Bora <tobias.bora <at> gmail.com>

Date: Wed, 13 Jul 2022 09:28:02 UTC

Severity: normal

Merged with 56531

Found in version 27.2

Full log


Message #10 received at 56532 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tobias Bora <tobias.bora <at> gmail.com>
Cc: 56531 <at> debbugs.gnu.org, 56532 <at> debbugs.gnu.org
Subject: Re: bug#56532: 27.2; Ido C-f in read-file-name inserts twice the
 initial name
Date: Wed, 13 Jul 2022 13:07:59 +0200
Tobias Bora <tobias.bora <at> 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")

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.