From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83y1wvsgdu.fsf@gnu.org> References: <83tu7lue6x.fsf@gnu.org> <0e19a59c-6f3f-1f39-9039-530ab87fca01@gmail.com> <83h73kt1af.fsf@gnu.org> <87zghb5zgi.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6288"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56532@debbugs.gnu.org, tobias.bora@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 20:24:14 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oC3VW-0001Tk-Ai for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 20:24:14 +0200 Original-Received: from localhost ([::1]:40936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC3VU-0001uU-Iv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 14:24:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC3VK-0001t0-90 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oC3VJ-0004MO-W1 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oC3VJ-0001kD-SR for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 18:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56532 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56532-submit@debbugs.gnu.org id=B56532.16578230046651 (code B ref 56532); Thu, 14 Jul 2022 18:24:01 +0000 Original-Received: (at 56532) by debbugs.gnu.org; 14 Jul 2022 18:23:24 +0000 Original-Received: from localhost ([127.0.0.1]:38857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC3Ui-0001jD-9d for submit@debbugs.gnu.org; Thu, 14 Jul 2022 14:23:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC3Uf-0001iz-4H for 56532@debbugs.gnu.org; Thu, 14 Jul 2022 14:23:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC3UZ-0004Ie-TR; Thu, 14 Jul 2022 14:23:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=a3AgePVLp7nN9dVNNBXSQXORJsoWL5XQYm51o+X1woM=; b=HgbqU8himG+NUY4AGMJI IfZCbvzeL/KH8eJWdjt/SGfsyh+nFa3yXSyqRg1OE79Xmf2RXkMmd+/A5/O0S6llZzhxWrpnaVBVM hCDLYcvPWb6zlBvhd/sZdn6Bmcm+dtb3qiA3ubMy26VFoAa2ziPwUnVTknjiEs1n/1VAsr4NLUvXI s+V8GzmWfoGce1cT7Zv0TLuOiv2fsgbIvq8aXAHoBsPvp+aL1Tyed24wnwuHU2635gz6AN7HFvpWq DyptBBRnDNyuPEFEFNyk7MI2ql2YGx3xtmyDT1VgZNF3EZe/Uu6fS0poKccHFyE0OO1/GqlaLNS/z eV+1rpjQH3GwZA==; Original-Received: from [87.69.77.57] (port=3828 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC3UZ-0007v4-Cz; Thu, 14 Jul 2022 14:23:15 -0400 In-Reply-To: <87zghb5zgi.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 14 Jul 2022 20:19:41 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237031 Archived-At: > From: Lars Ingebrigtsen > Cc: Tobias Bora , 56532@debbugs.gnu.org > Date: Thu, 14 Jul 2022 20:19:41 +0200 > > Eli Zaretskii 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.