From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#19412: 24.3; ido-write-file sometimes writes to a different directory than, it says it will Date: Mon, 11 Jan 2021 15:14:50 +0100 Message-ID: <877dojimqt.fsf@gnus.org> References: <0a0e748b-e809-d1e9-e52a-a3d846635fe6@thompsonclan.org> <2c4460c3-ad84-b706-189e-07429a3b2500@thompsonclan.org> <1f98bdf5-2da4-10b6-57f0-bdc0964a6df9@thompsonclan.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22203"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 19412@debbugs.gnu.org, Stefan Kangas To: "Ryan C. Thompson" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 11 15:16:21 2021 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 1kyxzZ-0005e9-Ei for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 15:16:21 +0100 Original-Received: from localhost ([::1]:58680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyxzX-00065z-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 09:16:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyxzG-00065m-IG for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 09:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyxzG-0003l0-BF for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 09:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyxzG-0001pm-4h for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 09:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2021 14:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19412 X-GNU-PR-Package: emacs Original-Received: via spool by 19412-submit@debbugs.gnu.org id=B19412.16103745043604 (code B ref 19412); Mon, 11 Jan 2021 14:16:02 +0000 Original-Received: (at 19412) by debbugs.gnu.org; 11 Jan 2021 14:15:04 +0000 Original-Received: from localhost ([127.0.0.1]:56179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyxyJ-0000vj-Ko for submit@debbugs.gnu.org; Mon, 11 Jan 2021 09:15:03 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:53174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyxyI-0000tH-7N for 19412@debbugs.gnu.org; Mon, 11 Jan 2021 09:15:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xpsikXsGn2Fs/xt4+dboL41vXq9izqGU8+IB42PG9zM=; b=D2gDjHz5dC0l4sYPrPz3MWpint jx/klxjHg/hjGIuScOl80KeaOECZPGK3Wb113gXxNbBG8NzX7Z/oqPmgY3F9e2V/uuhDuuc5XBd5G Zi+tz+ght0s+jxrk7ozGzZFxW66fq861/8BVhF+/7PL2QQgyDbP5PYnxKlWUxjyUNdxc=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyxy7-0007U0-Mm; Mon, 11 Jan 2021 15:14:54 +0100 X-Now-Playing: Aural Exciters's _Mutant Disco Volume 2_: "Spooks In Space (Discomix)" In-Reply-To: <1f98bdf5-2da4-10b6-57f0-bdc0964a6df9@thompsonclan.org> (Ryan C. Thompson's message of "Sun, 10 Jan 2021 18:12:20 -0500") 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:197696 Archived-At: "Ryan C. Thompson" writes: > It's been a while, but I've fixed up my patch and given it some > testing, and it seems to work on for me. However, in the meantime, > this issue has recently been "fixed" by special-casing write-file in > ido.el, as seen in #28513. So if you want to install my patch now, > you'll need to install the version attached to that thread. That > version reverts the other fix, since of course they are not > compatible, and would be redundant even if they were. It looks like a more thorough fix. However: + (minibuffer-with-setup-hook + (:append + (lambda () + ;; Clear out whatever started in the minibuffer and + ;; replace it with what the user had already entered + ;; into ido. + (delete-minibuffer-contents) + (insert (abbreviate-file-name ido-current-directory)))) + (call-interactively this-command)))) I'd be worried that this would step on other modifications the user may be doing from the minibuffer setup. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no