From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nicolas Martyanoff Newsgroups: gmane.emacs.devel Subject: Re: Possible regression in dired when renaming directories Date: Sun, 10 Apr 2022 16:49:50 +0200 Message-ID: <87pmlp56y9.fsf@valhala.localdomain> References: <87y20d5aqa.fsf@valhala.localdomain> <83fsml6nsm.fsf@gnu.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="27040"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: Nicolas Martyanoff , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 10 16:52:27 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 1ndYvR-0006or-MB for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 16:52:25 +0200 Original-Received: from localhost ([::1]:57658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndYvQ-0007VR-9K for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 10:52:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndYt0-0005wy-BW for emacs-devel@gnu.org; Sun, 10 Apr 2022 10:49:54 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:34512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndYsy-0005L1-Qv; Sun, 10 Apr 2022 10:49:54 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id m30so19493042wrb.1; Sun, 10 Apr 2022 07:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ZFfCdnqhfLyJldE/CufhbAC2OpX15cvEqjbttczebdk=; b=eHA/Jz/b3CP52weQtctSHEQL9RjzHW4J+xbF4Ya52fMH/W5GUja5T//eSkRjn+Yx1w ckzPHA7Oe+H4r/fM+aXyd9sJ1iuNgMai1/S7clAmjzw37+p91WZ7rqKUF+H7MyegqdqF sre7Ft5SYQ5BBL/30rs7uZFR17/GyUswxr7tK9F00N3puZb0tIiy8WPNrjbFQ2T/3UX6 /4MynXVOdJi7WdHjn7MgwSRkmdub8heQ7ldgkj/bJYHAy8N0yFeIVnxUviiZsee/YkBA bXh9RbKrOyrwf9A/2gQq1OEV1Pi1oZvKMzuLY1HSjcUT4b+WYTAjF3hYa5ZatO5gP21w +VCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ZFfCdnqhfLyJldE/CufhbAC2OpX15cvEqjbttczebdk=; b=0KMddR8cktNzrbgDlIhbkbYYHqZtFNh+tFi2LVXZfsm87h48rL/Ikg3gkGhu1s+s7H gLgBqW0v2mdZxjLcyZzmGwXsqpBOXLrU3Se78Jstcbt2MjyOHYImD0+LKa+qKMUhbnVP G1zxEPsmdFTNK/6W2z30WHvWeylEVQrNx9QlSfWAPytACXBrkIQMMIQydMvrN6T5Fdt8 LR5pj32VPwSXDk0+GToIzvS/vv5P2XoERT6YxSP5Hs6MsC1eHzZRsxXqBwlCZUkqTAq3 SVu0/JGiRa66Ii7ej37XOqpv+cKYcSapkJVKnK/L2vZxb45+od1BAkuU5+RHqyGByE1S xhQQ== X-Gm-Message-State: AOAM530JVX0LrpoRBefzyxQJw4uIFacT+/rQGDIB9WlEChwmx9J6hALG r/a6po+lmOWkZgMH8u59R9jHsehkKd8ecg== X-Google-Smtp-Source: ABdhPJwSZ0mX+LNIB+ZVwTOLT+DxsUBcoMKprFz4dVAeU2Nh6qsdPmtJSjAxmsYv7cFof9R7m/0Dww== X-Received: by 2002:a5d:4582:0:b0:207:9e25:d7fb with SMTP id p2-20020a5d4582000000b002079e25d7fbmr5791392wrq.43.1649602190964; Sun, 10 Apr 2022 07:49:50 -0700 (PDT) Original-Received: from valhala (2a01cb0405243e00927ff8b354d83417.ipv6.abo.wanadoo.fr. [2a01:cb04:524:3e00:927f:f8b3:54d8:3417]) by smtp.gmail.com with ESMTPSA id i13-20020a0560001acd00b002078e242847sm7365819wry.97.2022.04.10.07.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 07:49:50 -0700 (PDT) In-Reply-To: <83fsml6nsm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Apr 2022 17:00:41 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=khaelin@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:288145 Archived-At: Eli Zaretskii writes: > I cannot reproduce this. I tried R in Dired, and Emacs 28.1 works the > same as 27.2 here. > > Can you provide a complete recipe starting from "emacs -Q" to > reproduce the problem? Running emacs -Q: - 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. - Additional test: running C-x C-s in the 'file' buffer will ask again to create /tmp/dir1, which is normal since the directory has been renamed to /tmp/dir2. Regards, -- Nicolas Martyanoff http://snowsyn.net khaelin@gmail.com