GNU bug report logs - #52004
dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sat, 20 Nov 2021 18:57:02 UTC

Severity: minor

Tags: confirmed

Merged with 21537, 30578

Found in versions 24.5, 26.0

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52004 in the body.
You can then email your comments to 52004 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#52004; Package emacs. (Sat, 20 Nov 2021 18:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 20 Nov 2021 18:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/
Date: Sun, 21 Nov 2021 02:56:42 +0800
$ mkdir /tmp/a /tmp/b
$ emacs -Q /tmp/a
Put the cursor on the "." line, and hit R and try and move it to /tmp/b .
Overwrite ‘/tmp/b’? [Type yn!q or C-h] y
dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/

Yes, on /tmp we can move /tmp/a to /tmp/b (creating /tmp/a/b/) easily.

But still, the above problem should be detected earlier, before the
question is shown to the user.

emacs-version "27.1"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52004; Package emacs. (Sun, 21 Nov 2021 08:37:01 GMT) Full text and rfc822 format available.

Message #8 received at 52004 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 52004 <at> debbugs.gnu.org
Subject: Re: bug#52004: dired-rename-subdir-2: Expected to find
 ‘/tmp/a/./’ in headerline of /tmp/a/
Date: Sun, 21 Nov 2021 09:36:14 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> $ mkdir /tmp/a /tmp/b
> $ emacs -Q /tmp/a
> Put the cursor on the "." line, and hit R and try and move it to /tmp/b .
> Overwrite ‘/tmp/b’? [Type yn!q or C-h] y
> dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/

I can't reproduce this in Emacs 29, so I guess it's been fixed since
then.

However, hitting `g' in the directory after the operation gives me an
error about default-directory no longer existing (which is correct), but
this should be handled better.

This is a duplicate of bug#30578, though, so I'm merging these bugs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Forcibly Merged 21537 30578 52004. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 21 Nov 2021 08:37:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52004; Package emacs. (Sat, 24 Sep 2022 13:29:01 GMT) Full text and rfc822 format available.

Message #13 received at 52004 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 52004 <at> debbugs.gnu.org
Subject: Re: bug#52004: dired-rename-subdir-2: Expected to find
 ‘/tmp/a/./’ in headerline of /tmp/a/
Date: Sat, 24 Sep 2022 15:28:32 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> $ mkdir /tmp/a /tmp/b
>> $ emacs -Q /tmp/a
>> Put the cursor on the "." line, and hit R and try and move it to /tmp/b .
>> Overwrite ‘/tmp/b’? [Type yn!q or C-h] y
>> dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/

I've now made it refuse to rename . and .. -- doing so is just too
confusing even if it worked.




bug marked as fixed in version 29.1, send any further explanations to 52004 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 24 Sep 2022 13:29:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 23 Oct 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.