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.devel Subject: Re: Possible regression in dired when renaming directories Date: Sun, 10 Apr 2022 17:58:01 +0300 Message-ID: <83a6ct6l52.fsf@gnu.org> References: <87y20d5aqa.fsf@valhala.localdomain> <83fsml6nsm.fsf@gnu.org> <87pmlp56y9.fsf@valhala.localdomain> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17322"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Nicolas Martyanoff Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 10 16:58:38 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ndZ1P-0004JV-EM for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 16:58:35 +0200 Original-Received: from localhost ([::1]:34306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndZ1O-0002bl-2W for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 10:58:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndZ0s-0001x5-Oh for emacs-devel@gnu.org; Sun, 10 Apr 2022 10:58:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43226) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndZ0s-0006iE-GJ; Sun, 10 Apr 2022 10:58:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=F0vFnTLyr8EMi/MP81jXiD5xRNi2pWlFBmElJnlhFxU=; b=bhWZHxiyLP41 5dfRtdq9+8oIAqXF2K2bhboUXpIb9AHIFJd+mlIfSKP68+sJ+ZUIUM9Ps20ldCAuThaG4d0gd0hfa GE7fgdE2d1B34RpkUueVE+T1llLOKkrJmzjLSD0axJhVSzWwM+JXWzpENuBY5yWRlKbA8w7rBh7iQ bMGGAeVRRy4B2qPdFSrR25wfmAmqRv/YeK3whgmpg3/nLP4Zlzp/ijLL6in5mv4dEVBFLMdQNGVX/ g4MZ6LtQyyst80fKGKwjzUQ6SAg3GMczQj5XAxmoJbJ0JWvr1uTvdvPBTIZm6kF76htqSqc0PxKJx huGIOPTtAnxtlUJOO25TRw==; Original-Received: from [87.69.77.57] (port=3669 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 1ndZ0r-0001ss-Uc; Sun, 10 Apr 2022 10:58:02 -0400 In-Reply-To: <87pmlp56y9.fsf@valhala.localdomain> (message from Nicolas Martyanoff on Sun, 10 Apr 2022 16:49:50 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288147 Archived-At: > From: Nicolas Martyanoff > Date: Sun, 10 Apr 2022 16:49:50 +0200 > Cc: Nicolas Martyanoff , emacs-devel@gnu.org > > - C-x C-f /tmp/dir1/file > > - C-x C-s > Answer 'y' to the prompt to create the directory. At this point the > buffer 'file' visits /tmp/dir1/file, and the file exists on the disk. > > - Run dired in /tmp. > > - Rename /tmp/dir1 into /tmp/dir2, e.g. using 'R'. > > - Switch to the 'file' buffer. It still visits /tmp/dir1/file even > though the file is now located in /tmp/dir2. Right, thanks. Please report a bug using "M-x report-emacs-bug RET", with this recipe. I don't think this was intended, but I will investigate.