all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Martyanoff <khaelin@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Nicolas Martyanoff <khaelin@gmail.com>, emacs-devel@gnu.org
Subject: Re: Possible regression in dired when renaming directories
Date: Sun, 10 Apr 2022 16:49:50 +0200	[thread overview]
Message-ID: <87pmlp56y9.fsf@valhala.localdomain> (raw)
In-Reply-To: <83fsml6nsm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Apr 2022 17:00:41 +0300")

Eli Zaretskii <eliz@gnu.org> 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



  reply	other threads:[~2022-04-10 14:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-10 13:28 Possible regression in dired when renaming directories Nicolas Martyanoff
2022-04-10 14:00 ` Eli Zaretskii
2022-04-10 14:49   ` Nicolas Martyanoff [this message]
2022-04-10 14:58     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmlp56y9.fsf@valhala.localdomain \
    --to=khaelin@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.