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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; Keywords: confirmed; merged with #21537, #30578; dated Sat, 20 Nov 2021 18:57:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 21537 30578 52004. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 52004 <at> debbugs.gnu.org:


Received: (at 52004) by debbugs.gnu.org; 21 Nov 2021 08:36:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 21 03:36:30 2021
Received: from localhost ([127.0.0.1]:44150 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1moiKs-0005vS-H7
	for submit <at> debbugs.gnu.org; Sun, 21 Nov 2021 03:36:30 -0500
Received: from quimby.gnus.org ([95.216.78.240]:51574)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1moiKq-0005vD-PZ
 for 52004 <at> debbugs.gnu.org; Sun, 21 Nov 2021 03:36:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=qUHebKrswrreBLyWYjczQTHjv8yZ21Z35WCFNINC5NE=; b=bKzB8oRjb8YUyTsEMKxXy7+EOp
 WnI3VsAPW+R2HesxHOslIwqTENl3ZsQS8HBC9Lx6tnw1oDZHGaZbb6+1H/AY8b3E/mdaXBFO5Awfq
 pQaIRyBFX8YuwQ9AS/7p+1fJGMliOIOZ9oFgpAO/rVJQMy64vq4H+dDGkVPG5aGXavXg=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1moiKh-0003nm-8a; Sun, 21 Nov 2021 09:36:22 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#52004: dired-rename-subdir-2: Expected to find
 =?utf-8?B?4oCYL3RtcC9hLy4v4oCZ?= in headerline of /tmp/a/
References: <87y25i8xlh.5.fsf@HIDDEN>
X-Now-Playing: Tarnation's _Gentle Creatures_: "Listen to the Wind"
Date: Sun, 21 Nov 2021 09:36:14 +0100
In-Reply-To: <87y25i8xlh.5.fsf@HIDDEN> (=?utf-8?B?IuepjeS4ueWwvA==?=
 Dan Jacobson"'s message of "Sun, 21 Nov 2021 02:56:42 +0800")
Message-ID: <87bl2doqgx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  積丹尼 Dan Jacobson <jidanni@HIDDEN> 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 [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52004
Cc: 52004 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson <jidanni@HIDDEN> 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 =E2=80=98/tmp/b=E2=80=99? [Type yn!q or C-h] y
> dired-rename-subdir-2: Expected to find =E2=80=98/tmp/a/./=E2=80=99 in he=
aderline 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.

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52004; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Nov 2021 18:56:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 20 13:56:19 2021
Received: from localhost ([127.0.0.1]:43666 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1moVX9-00036S-1W
	for submit <at> debbugs.gnu.org; Sat, 20 Nov 2021 13:56:19 -0500
Received: from lists.gnu.org ([209.51.188.17]:38924)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1moVX5-00036J-0Q
 for submit <at> debbugs.gnu.org; Sat, 20 Nov 2021 13:56:18 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56294)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>)
 id 1moVX4-0000RF-P3
 for bug-gnu-emacs@HIDDEN; Sat, 20 Nov 2021 13:56:14 -0500
Received: from donkey.elm.relay.mailchannels.net ([23.83.212.49]:44668)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>)
 id 1moVX2-00076S-Rz
 for bug-gnu-emacs@HIDDEN; Sat, 20 Nov 2021 13:56:14 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 0F1A366147A
 for <bug-gnu-emacs@HIDDEN>; Sat, 20 Nov 2021 18:56:09 +0000 (UTC)
Received: from pdx1-sub0-mail-a298.dreamhost.com (unknown [127.0.0.6])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 9EDCB660B97
 for <bug-gnu-emacs@HIDDEN>; Sat, 20 Nov 2021 18:56:08 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a298.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
 by 100.116.149.29 (trex/6.4.3); Sat, 20 Nov 2021 18:56:09 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Keen-Turn: 2296957a21f08cc9_1637434568883_1008049906
X-MC-Loop-Signature: 1637434568882:2844841005
X-MC-Ingress-Time: 1637434568882
Received: from jidanni.org (36-234-107-86.dynamic-ip.hinet.net [36.234.107.86])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a298.dreamhost.com (Postfix) with ESMTPSA id 4HxN6J2F0Yz2n
 for <bug-gnu-emacs@HIDDEN>; Sat, 20 Nov 2021 10:56:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=jidanni.org;
 s=jidanni.org; t=1637434568; bh=C9zq3b9o3xRB9fKbYaZziCAif6w=;
 h=From:To:Subject:Date:Content-Type:Content-Transfer-Encoding;
 b=T7EJDiLUPNZpNbxMQBwNXpz226x2Lv9r23UOdoYSlt0Cp67zNmM6fSv2o2FT8SO39
 2j52rvX6ohGn4YC0SKYcmNUMo5lvZmJo61ue7fbAe5TpbG/GSXcXpKitP9rz4pEvb5
 pGzbqYtWEgD3NtPCeLaW0/OChfMJuKcdCA4UlgY0=
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: dired-rename-subdir-2: Expected to find =?utf-8?B?4oCYL3RtcC9h?=
 =?utf-8?B?Ly4v4oCZ?= in headerline of /tmp/a/
Date: Sun, 21 Nov 2021 02:56:42 +0800
Message-ID: <87y25i8xlh.5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=23.83.212.49; envelope-from=jidanni@HIDDEN;
 helo=donkey.elm.relay.mailchannels.net
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,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

$ 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"




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#52004; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 21 Nov 2021 08:45:01 UTC

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