GNU bug report logs - #70593
30.0.50; Dired: buffers of renamed dirs are broken

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; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; dated Fri, 26 Apr 2024 12:04:06 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 70593) by debbugs.gnu.org; 1 Mar 2025 23:50:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 01 18:50:15 2025
Received: from localhost ([127.0.0.1]:46758 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toWb1-0004oM-Gs
	for submit <at> debbugs.gnu.org; Sat, 01 Mar 2025 18:50:15 -0500
Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:47192)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1toWay-0004ji-Gd
 for 70593 <at> debbugs.gnu.org; Sat, 01 Mar 2025 18:50:13 -0500
Received: by mail-ej1-x62b.google.com with SMTP id
 a640c23a62f3a-aaeec07b705so523772366b.2
 for <70593 <at> debbugs.gnu.org>; Sat, 01 Mar 2025 15:50:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740873004; x=1741477804; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=Yk5Ugg+IguFsLp9YjDXKXO29aDe8Yg8tVe3qru2smdI=;
 b=gVq96h1mFjjrNX+bvToml/5F6sfR86E2+Ap6nN8gaou7SlottPRmJAOBRST0SHwv75
 9sT9f38Xi+HCpvLJCrTBy7ssInuf1GxtyWZ4GQZMtnZAzQ8VzRB8hMWILzAyBuuoCpFP
 a3CohRRtiTc1Q/VK34W45BNmTvwlOf2KndVEwrPJqbLSxKVfMNYe8gtS//ZSIod/WH/v
 u+xzaWZ/z+4A2GMW7UQfS6jFGuIy+5PcUypcsYwwRfl3Xr715Ve17TIJ36kKzHW42XQL
 aXqG1CkcCzUR6QVSLb9Xox4/6kwtfzVo+gjbwfK8HvxmIQFDKhzwPWKcZ3AsRsaFK/9x
 LAGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740873004; x=1741477804;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=Yk5Ugg+IguFsLp9YjDXKXO29aDe8Yg8tVe3qru2smdI=;
 b=tPv/qLaW4T4excZTR3XDi1b4jcSJ8lDk4kYysgynu80gFCbmlOtHnvW3omAjkFNWWW
 BAzp3xqCI4ME3B4lUucdJ8BSrYG6heMUaEsEK9hTmmKhrbvJIEg0awK4Pq4qTKTCzKqj
 dJjARKRdeyoCLgPEVmPXP0nuupW7Ms/7FmqY+F90A5LaNftecaMW6evs4h3SEMMXayq4
 4ObTET7NP1E2PnswdXBtn25LuCNMM3phHMFlu+NL8nxtYtB/JTpjpzbuLv3lyTQXS6NY
 sn99GALJiNnOhrONXKEvp52Sb+lwahjaTtdHlKR9SrqI0n5EtQOd/AKxbMdZ7lUlX3Hg
 9mDA==
X-Forwarded-Encrypted: i=1;
 AJvYcCUH0UKTVIwBCZvS7SdTXnbeaWBeEMWhRGDZ2ja7q13eyFQJzipC0EtY7xtVNrNhVgrLa7XYYQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx6VRNuoQNDJUPQC87aekoo0A8CkygNqsEO0jvXgv1rZiCavpBa
 jkbc3XpvrS2JQLz1nRwNwX8jRUH8SRF1huuSZ4UbKYEPgQeUO/Sce5HYWtXGq+bNsLfewZ4xhhq
 OnqLcKDHz2XGuU9qwDVIQwWEkC+s=
X-Gm-Gg: ASbGncsg7bIHYb79oVIyWjJasy16sAyZoEM+aLJDAiNc8ZQ+w3Y0radqe5gHiMGjIlm
 0KNcxAZBv+SQH8/wmfjhdwoZkSw2bsHYYFfqZcSnLHssGh39JZt6JqNsgeLydsfc7TU78mwpO6B
 vNw1n5SctfWjbvLnH3Kui1k4Q0fQ==
X-Google-Smtp-Source: AGHT+IHGE1G0jOVQaTbvKlzmB+V0XPnin5w6/KvBei0joL/6kqv2OCtSZm0IxJ/i1pKTq9h5HA1218fKfFeUpF8Zafg=
X-Received: by 2002:a17:907:7da0:b0:ab7:cc00:4d4a with SMTP id
 a640c23a62f3a-abf2684a871mr1112307066b.35.1740873003842; Sat, 01 Mar 2025
 15:50:03 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sat, 1 Mar 2025 23:50:03 +0000
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87mse4rd6a.fsf@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87a5kmyhmb.fsf@HIDDEN> <8634qecqns.fsf@HIDDEN> <87a5kiokfb.fsf@HIDDEN>
 <CADwFkm=ET_ucprHcq9RBByMQ6nVQ6dAVae9m-WNvwm6r3zkhpA@HIDDEN>
 <87mse4rd6a.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sat, 1 Mar 2025 23:50:03 +0000
X-Gm-Features: AQ5f1JpGH_BYBRgpSLWSY2UuLDIrk6ZVgWXf8kzPhPyAlOWxBc-sGumQ5XQjeRk
Message-ID: <CADwFkmm4KLju5JyXaxo0H1k2VDGjsEGOZKkH5srZ4wOGdiXeZg@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
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: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Stefan Kangas <stefankangas@HIDDEN> writes:
>
>> Did you make any progress here?
>
> I had worked a lot on this, trying to fix the underlying problem and do
> something reasonable instead of just saying "can't revert" - but that
> was surprisingly hard.  There are just too many different cases, and I
> gave up.
>
> I'll get back to you, I have to have a closer look before I can post the
> best version I have.

Please do, and thank you.




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

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


Received: (at 70593) by debbugs.gnu.org; 1 Mar 2025 15:18:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 01 10:18:27 2025
Received: from localhost ([127.0.0.1]:41346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toObj-0002kr-0L
	for submit <at> debbugs.gnu.org; Sat, 01 Mar 2025 10:18:27 -0500
Received: from mout.web.de ([212.227.17.12]:42499)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1toObf-0002k6-BX
 for 70593 <at> debbugs.gnu.org; Sat, 01 Mar 2025 10:18:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1740842297; x=1741447097;
 i=michael_heerdegen@HIDDEN;
 bh=hLn6g/HzV6l5xN7PYFJta2IfZ3vXFWiA1eRxggg9ZRk=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=CaGYxM0yjFXsuOdG9M2uexwddSQ1zNWsoe8Ztzmqc7Nv2NHlsZwSfvT8D+Grlvsf
 +/VYWSrJjeFyB5uv1WHyzg6AIdzqWiuVcGjtpPd9vMVyIBewIOSr6bfOMEwfwequl
 E/n6UuNIj/zjzvIhHNLcVDvGZJ8BCNnZvkUdIBECveTTHy4v4X8i5jcC0ZI0NGw6E
 e44rrMIrCzwugyLSKFfRAPNotNLIHWAg71tH9G1VjqM/0ZJzb93gCSYbOzb7CtuIY
 hkwen+MjWqTgEw6eMUtEBQF/dWTTpz4MMLlzPZpv/KXivbuGHoNCUDgBkP1Wz+3BH
 q2TgD/4j3HIM4WCXfg==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([88.66.201.232]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MK56y-1tZcdq3vV0-00SAMZ; Sat, 01
 Mar 2025 16:18:17 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <CADwFkm=ET_ucprHcq9RBByMQ6nVQ6dAVae9m-WNvwm6r3zkhpA@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87a5kmyhmb.fsf@HIDDEN> <8634qecqns.fsf@HIDDEN>
 <87a5kiokfb.fsf@HIDDEN>
 <CADwFkm=ET_ucprHcq9RBByMQ6nVQ6dAVae9m-WNvwm6r3zkhpA@HIDDEN>
Date: Sat, 01 Mar 2025 16:19:41 +0100
Message-ID: <87mse4rd6a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:NGyUhmf/MY5z8OfX7TYsF7u0IBmTkuUl82eyemQGP9fNoAWM/fI
 oLaEIncEYqSukTffDWml0rRYUKNsl4B1TLGa93q2dG6qKiW26I2XSARf6BHK8Gesaq4lZlZ
 znMHrFwwsEB1cLdWIk+SwXjYvQtmn12tRqJ2H4KthmYqa+Qwi5XOGWnxMaAS0C7Xfv5/qx3
 j6nZCUO8Gi2VUhe29CT8Q==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:HkwmWtdI/Ho=;cjaIUj7015EMr9TbGi2z1LKOSNW
 BpaxJ0/G+eODL0bG5LfR3SZfnkiiUJP0vXVgIrDih9t0ii9FnicgZSoCdoMYANGaKHwsNIjrB
 PKfG6YRa7EmViGbWqAUy5hQt7CYHzoyEOB3Dpci5cfJz4qqTwxC461hrJhJvggqv2SC/S/bs0
 ssvt59H8sJIJ2lwDQZPu3IjcQsYjbIHU88ZjrHjBQczdE7KQ1nhxdeD+1px4tXQcoO25SN4l5
 F8ubVhXrhcOoGt+B/Ua5GGTbxFB8xcIO/ubhvrhtHwZwEhPeH2fM4EpqHuanKR8rjUoNhhcbb
 Um/nLKOlda6x921kz6k8EY9i6REESgvwBkUDVonbn6LBiVdwq2IY1xFZ3cbpnmDT2HsgcST2w
 7oW8DS9VSOVj9Fh6B6rNzAk1iJboNR/WY2OifVjUcklHy/ItRtVszNwVfsGPysE45+6DJuK2R
 BrN4B940g9xA5fueEHT7LHl6RwZGw73yHXNw2mOvMqZFVSoid+57178Ju006FKqcN4j9/vb06
 lshn4I/jrqmfq/sB67Il4T+6PcEG4LU0pi8+RBChkB//DeomMiGmrHN2EEuThC+Gidl3IhUDA
 q38TV17/b1l7+I0kznsXFI92cP9GgwsYSYA93bZJ+4Ha7y3sgclyPWeBKA2gXU4rkFvNJpC2C
 iPZ7sZsLYzw4ZKocO/TjzusC37acR4NI/1I9oME8nXcckrtlDHauYaL3aJeMryXT/fDFnWX3C
 FrMVLUbvdiPf/gVxueGknRWflFs/qvKHxYjGlRC+5Tk64Y0VSliRgknrvRseunTXEfq1/qM7X
 XPfvIBFdjjAaUj+n2StW4Ej3kaBjFH3Dxqi4vBQD4Yb0cnuBajRASD9k/reHz1WRkYVKqdRHN
 W5J7FnA+BslGzkmOvP8/5CnF+GjwIRSlXGWmVnwQpgtFdnH+HohWe/2xizAlaJeMblS1GTilL
 gHC0HAMAB43A8IzdZNITSsK6a6LQvk62WQVp+xajwfGLgBt/BY93O/97w+sMS0W0khxN2v3fe
 Tviaomhqv3ndChkUp3m2bB6SO19aFnpIv+F7CoFxFw8EO2L8OUAwZRk30fEkgbTLZwx5Di/cE
 8RSAn38sBQCE/O4DY38bbArexRgirudfLI6VoTTgdmUMnNWfAJuD0ioVQon1duKJbidRsRWiQ
 /R0gGD2uqE86vCg81805uvTR2wtLhPJt8iHDE0XMpAj0ugvmAzCvMRzluIPHu2dCSxXxbCNgN
 bb8/UMIEvyooJwqwIiAjEHYrnOQ18g787oAWiLqGN2XEzN/ED7vndeAoVmCd2uX/hr0i1y2f3
 4O8+TgoqIWE0pFYKBcOX2ynKm/x8OQ2rwcSzoHTjsb0sKf4gdKJBoCTMPIGO+8L32t02k0f1g
 766p+vWGsxMwhq9DiT87TTUEV4CGr6miXhtlgynpVsix9MCchL4wVRasBk
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
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: -1.7 (-)

Stefan Kangas <stefankangas@HIDDEN> writes:

> Did you make any progress here?

I had worked a lot on this, trying to fix the underlying problem and do
something reasonable instead of just saying "can't revert" - but that
was surprisingly hard.  There are just too many different cases, and I
gave up.

I'll get back to you, I have to have a closer look before I can post the
best version I have.


Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 1 Mar 2025 02:42:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 28 21:42:27 2025
Received: from localhost ([127.0.0.1]:56503 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toCo7-0003WB-9t
	for submit <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:42:27 -0500
Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:55746)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1toCo5-0003Vt-2K
 for 70593 <at> debbugs.gnu.org; Fri, 28 Feb 2025 21:42:25 -0500
Received: by mail-ed1-x530.google.com with SMTP id
 4fb4d7f45d1cf-5dedd4782c6so5079612a12.3
 for <70593 <at> debbugs.gnu.org>; Fri, 28 Feb 2025 18:42:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740796939; x=1741401739; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=5gpW1diYi2FZ0UmGpqe6+A0+JCGdUTrNYZg/OOtzzgo=;
 b=k3ifs/FmgmQDLTS/mG3cN3PGBCOamlZuvHPw/2Dx7trxfTc6gBp6GE9OXcjd4+zbDW
 MdvpUj3GVqqst2Jy9YYgV4hTt11y5gKfy/SkiQm5fCoAXqYGYj9J2/dJcXZNAv/DDuQz
 TJacAF0mb0SnjYdGUfmBPse+lChFtzdDhg0BONFLdoBhM/DVQFmn8rG4VTJHDTwulop8
 8BRKmtbaRon4nn3fLWNlKM582ji4bqb92asV6hVJXO6b4CQ+KdQieZOQ+AY3PtSH1yfM
 cC7sRoMH0Su20k0ppmRWbJ81aPkvRksmbuMUa6iW1bVXJRieIqe8zQosENOiWL9+LF+u
 W31w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740796939; x=1741401739;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=5gpW1diYi2FZ0UmGpqe6+A0+JCGdUTrNYZg/OOtzzgo=;
 b=NT1WGIk/J4P5vfj43GEgEISMWTp9OppygRcPC0+0PAtBfkMP+0NNPcLihMg2E99cst
 GDYbS+cC27Koz4UzyvbrxMf7I1JgK90WV+PqR3Q/reN6UDJbZ955w48HxximttkbHTNz
 VnOza9b2yiV8FvvmeWoBhQ59pzb2Y1bBBIaj1SiXAQ5HWdqAhBjm0LOUySpfYTu2kduT
 XhICvmoFEM4/lZNDQYVa4gz6tEngDsBTYgui0GQQKRMm3tHybAopCLgzhLC7vEwfwR2e
 P/gpHopRf/IuSIlegeRwUe+bW3+V7Bl9lVrxk1s05k35465scIGIYx6PBSEBefHuXIX8
 ZsoQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCW9R+C+ECrxFPVMBzLTw5zgZXAOcfaEhzOJIQDeahIUpz4oDTnKPOh6lZgot7sVs6g5Vs3Zrg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwmVbrALfmCocwZatMgkKSgfs4qhMXxxGKVp2xSmxJ4UX/S43uj
 fg85HPe+ATq8yUdObIDghopKhHwpeXk9CQAyI7o9OGEaHAqxZ4GP8FF40X82v+4Xsx8w0DM7nkc
 1zMOltuV49ixltk0MXwKLDWK+1Vo4VJItGMc=
X-Gm-Gg: ASbGncsO7NtWAl11ImCJFoWqz6X6KhhFIOoyx8+FESTcq980BRKgvVXAEuzSXzt7DdT
 8lzByMb5jAE29e8v5m+eb3jJttT1StKviU8sBgnmhroplC7es4uUtYEajUWgLAQOYHDpB4bqxEF
 WV4EP8BKRSDCsJyQZ1LoQx8XMZpxc=
X-Google-Smtp-Source: AGHT+IEaY+7Arn10/eHkFz2HC7zsD1X8yEz/JTQ1wp9Blq6Kp57fz2uQH4oKq+CmVqnaUcL7VGdS/wxqHTva33HHnKc=
X-Received: by 2002:a05:6402:4307:b0:5de:3c29:e834 with SMTP id
 4fb4d7f45d1cf-5e4d6b85f68mr4799421a12.27.1740796938856; Fri, 28 Feb 2025
 18:42:18 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 28 Feb 2025 18:42:18 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87a5kiokfb.fsf@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87a5kmyhmb.fsf@HIDDEN> <8634qecqns.fsf@HIDDEN> <87a5kiokfb.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 28 Feb 2025 18:42:18 -0800
X-Gm-Features: AQ5f1JoZK1wKybL-p_v-ifbvxIZZjirhAErZQ91PZo2dQ4p0VaIFljlO-TxSTG8
Message-ID: <CADwFkm=ET_ucprHcq9RBByMQ6nVQ6dAVae9m-WNvwm6r3zkhpA@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
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: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>> We could document that renaming a directory that is a symlink is
>> currently not supported, and move on.  Someone who is motivated enough
>> could come up with patches to fix that later.
>
> I think so, too.
>
>> Is there some narrower problem you'd like to fix there at this time
>> and know how to do that?  If so, feel free to install such a narrower
>> fix.
>
> I think in addition to what I had posted I want to make reverting any
> dired buffer emit a warning message and do nothing in the case when
> `default-directory' is not readable.  Just destroying the buffer
> contents and barfing afterwards is not useful.
>
> Will finalize and post my updated patch soon.

Did you make any progress here?




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

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


Received: (at 70593) by debbugs.gnu.org; 21 May 2024 22:43:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 21 18:43:06 2024
Received: from localhost ([127.0.0.1]:51621 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s9YCI-0007TF-Ac
	for submit <at> debbugs.gnu.org; Tue, 21 May 2024 18:43:06 -0400
Received: from mout.web.de ([212.227.15.4]:59799)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s9YCF-0007Sr-Ja
 for 70593 <at> debbugs.gnu.org; Tue, 21 May 2024 18:43:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1716331372; x=1716936172;
 i=michael_heerdegen@HIDDEN;
 bh=pSuGaYTsCBJlEJ2WaBe7Z2rdb+DhBjt2c3jpYCczDHE=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=kPj1Jp89YTLXqppro5+c3kQRFxuX3kiF4t1YANNBb6gn9evEdRmFLPTKUy1YNiaX
 qvpkn+xj+mqTcD37qGMmuaCU67ldhcj9bIgUr2ucfMZgkm9K8uPC+Y5Grjsl1rk4A
 q3zP2wSwKCrT3pkYRlFKjOVr+HH24ssEVdIH5CFlx2anjLIrxjkKn8hKH2+tnHkhz
 q2+UldUiJdpb6j8fAOCO39OC1C7oOX/Ofyjp4cFdzTTBL/MyAS/oOOu99Q+Am+V3E
 S0fVzSHdX3M3waWqpZWBAy4sC6q0ehtEUCbvX2SOVbwpg6NpkR846Zl5A7+nobBl6
 pwYHjxYrb/khp0G+Pw==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.59.210.113]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MdwJO-1siL2z3WsA-00iA9R; Wed, 22
 May 2024 00:42:51 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <8634qecqns.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 19 May
 2024 08:32:55 +0300")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87a5kmyhmb.fsf@HIDDEN> <8634qecqns.fsf@HIDDEN>
Date: Wed, 22 May 2024 00:43:36 +0200
Message-ID: <87a5kiokfb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:vpO+E7UNcJjmRP3jXrI/nIebxkKaKVOpvkJzZw3GNe8O1V8ZfGv
 tcP2+xht7y44RKxdlUR5whOqPqhN5Tvejwkz2Uh5FFZ7TDvu2vpGDEQCkGbduACa0DtlD5c
 Sfuyl9q/RoeYALNWbG7SuhPAApXV5IKYcGMexnqhUyMlKcvjLNuC4neIIUzesJ8Yr6uAQvz
 6HPjxqr68U2/VQ69rYnZw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:jE8qkwX49Fs=;T6f7pcqP6nMazEuJSeJN2cpJeI2
 DvQofvuKRM/wxcwfcgBStYILS9tHxppnx7UDpWgDIpiqpqOQAxdshU6PRWlCic+oPzHX60YHR
 sFOOAN1jIlcPRXH85tlAp9VI45Olpw7vk7v4+tflfqVUyM/d3YztgAEapp3Y3HIpmEgjs9Q9S
 +30wOrGtwo7q49RJes14RgpI8tRysTKvLz0T6tFCCNIMJChH6IvXfUuWhuoLGfhLqxMF+ey1v
 nF+i9WQ299Mj3hfsOFF0nK0jcgCLfEsC6V/VYqLV0oMCjIbYeb4Ig1mNqfalRybnBEgmudeRb
 XNVkJutux04x6m8mgtsSkRnxV9pzEXNdJ3zN9CeKNTnFLJcLrtwXx2XRtQyx1QyjTlRBg3Ahq
 qTXb/5WSUCrhAakM7aOTJcqIyJ88GcZ+VfV9ZeIOqhL+uktCelbrZAiTLoDl4uIZbvPowLXx8
 ON+lFkTJsacjpZyX3eO1KsBOu08EXqj2Yy/KakxCU1I1/DD125e1CJX8EhqtWGpthYzcTXwv7
 kg2SHjOC7EYmaWKWZMpdNNHQUrEdZ52Ge2VxlxI7yCF24qO6WUMxqqgjL4/x1njLQfqPoJqBR
 F+uVbiaCx/a5pCrlpdx9Zo5JgJD6t0q57YCfjG7Ii2jj+Fo/e1/Cm3AWWbq9iNj/XTocjAo2x
 QRNiIsz4rBlKzBlDwazeAbAaWRpIsqQuv/V0bxIHntb13qszfvmMPAM0xSo3rtuY4hrnbrbT8
 VD2iuwY5zB3elhfR3b9UPbJgPOzrr0xmC7UIep9Kd0G5YDbf8iHeDsR3voBky92zDV1z9kllG
 eAQ6PzS1rAfSTAQDWWbF/JzhVJ1X3qDPi3dmQn7OWArKQ=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <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: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> We could document that renaming a directory that is a symlink is
> currently not supported, and move on.  Someone who is motivated enough
> could come up with patches to fix that later.

I think so, too.

> Is there some narrower problem you'd like to fix there at this time
> and know how to do that?  If so, feel free to install such a narrower
> fix.

I think in addition to what I had posted I want to make reverting any
dired buffer emit a warning message and do nothing in the case when
`default-directory' is not readable.  Just destroying the buffer
contents and barfing afterwards is not useful.

Will finalize and post my updated patch soon.


Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 19 May 2024 05:35:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 19 01:35:20 2024
Received: from localhost ([127.0.0.1]:35761 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s8ZCZ-0000Cj-O9
	for submit <at> debbugs.gnu.org; Sun, 19 May 2024 01:35:20 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51798)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s8ZCX-0000Cd-VV
 for 70593 <at> debbugs.gnu.org; Sun, 19 May 2024 01:35:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1s8ZAH-0004pK-E7; Sun, 19 May 2024 01:32:57 -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=afaBdHAcRzhMyKEdiDzLGSvRP5Hb8i60NHN/KopE+nM=; b=KsWI0yuU2L7S
 aXQOvi1/Qqni8OTLvYhQkdbmQHgJ4QaLqDA2rNQgEiMkAWTi0FeG1ZcbhP5rFnEUhNKSbVHe5B3KC
 Qp5G9iHG3Orc8IqPJHWc75f7KKVijvKG79ROSR1OZdVLHxUdJMp6ML2CbkCT+WjEIeHudKSM4kLbp
 Ope/ePGld8pHUJtLeNmn+nFjiYde+T2j2ObgfAgdvXVfPascVIAE1ae18jcVYqfMG1gf0l/7yzUEB
 fkrkB3+qO+/5y46AHYsyAkSXFDyul0gTt8wHH9/tKehPMBUd/SGhSkJ4OTob320dSPOokqx/ion1m
 XL1cnH2eR2QcZED4SND/4A==;
Date: Sun, 19 May 2024 08:32:55 +0300
Message-Id: <8634qecqns.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87a5kmyhmb.fsf@HIDDEN> (message from Michael Heerdegen on Sat,
 18 May 2024 22:45:00 +0200)
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87a5kmyhmb.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <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 (---)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Cc: 70593 <at> debbugs.gnu.org
> Date: Sat, 18 May 2024 22:45:00 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > So all we need to do is call expand-file-name on both of them?  Or do
> > we need also to call file-truename?
> 
> When symlinks are involved it gets really messy.
> 
> For example: here is an additional problem I encountered:
> `dired-rename-subdir' sometimes doesn't even handle our buffer because
> `dired-fun-in-all-buffers', which is built on `dired-buffers-for-dir',
> doesn't consider symlinks at all: For `dired-buffers-for-dir' a buffer
> that visits some DIR under a different name is simply not visiting DIR.
> 
> Other problems are: our buffer could visit a file under a now dead link.
> The file renamed could have been moved from behind a link to some
> completely unrelated place.  Our buffer could dired a subdirectory of a
> renamed directory (this case is currently completely ignored).
> 
> I feel a bit lost.  Fixing this would be nice, at least the cases where
> this is possible, but it's really complicated and I don't even know the
> dired code very well.

We could document that renaming a directory that is a symlink is
currently not supported, and move on.  Someone who is motivated enough
could come up with patches to fix that later.

Is there some narrower problem you'd like to fix there at this time
and know how to do that?  If so, feel free to install such a narrower
fix.

Thanks.




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

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


Received: (at 70593) by debbugs.gnu.org; 18 May 2024 20:44:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 18 16:44:27 2024
Received: from localhost ([127.0.0.1]:35490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s8Qup-0005Cy-1i
	for submit <at> debbugs.gnu.org; Sat, 18 May 2024 16:44:27 -0400
Received: from mout.web.de ([212.227.17.11]:60547)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s8Qun-0005Cs-Ar
 for 70593 <at> debbugs.gnu.org; Sat, 18 May 2024 16:44:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1716065055; x=1716669855;
 i=michael_heerdegen@HIDDEN;
 bh=L9mg2ItPo8yZJnvTJ0jIQg328LkfHMbQvRjVEIZOmus=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=PTjV0A+acRmVheJiinRqK6vng2YWMNvYU8Nsqx1W81npj6hfWT7NT6VfLDhx5pLG
 BonGyef2VV0h2yYSeG/ZRM4j+iIetp0JoTgBWeMwG5E7xebFVAcu14JMY6Q6MqZwH
 B7kLu5OEMiwE6F3LNfr71eaHgXXjTzqrLur8iTZgxW1W1sYRthObCWWkuiJhNZY3/
 IHtmsVBLt68Rt6uQpdz+saXdecxWRMvMLvXCAr8VQu4SOU4MnfAR9Wz9gMsUJxcrW
 DvvJlSdZXX4rLeeE0oo/9Hjxm9juxm1KKMVO+v/DA72bIoMHvBAsqgPt0333NpMpK
 YBtUG/2qyWswJWqaPA==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.59.210.113]) by smtp.web.de (mrweb105
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MLifq-1rqu3r1fVY-00Vyvy; Sat, 18
 May 2024 22:44:15 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <861q6syxzb.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 26 Apr
 2024 17:55:52 +0300")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
Date: Sat, 18 May 2024 22:45:00 +0200
Message-ID: <87a5kmyhmb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:bbi5zieGCeuNAvDNMiFaZfS9wC9+NKwQnpRhnTynAmKSx3OmW1h
 37pguAezcuwM8J2Bin17LzwS4s5YlP0IP131d5ih89VUInKVrvFk6ojD07C3jQQrfxhjW1U
 Bw0XhQiU+8rbfMuNZx97xNNS666+ZR/yleSTTX+Qm3Y9xyFVSNUHk01q45kO3CQhJ2XhHbk
 BQ2AHOjaqWIwQ2IL9kw2A==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:1QpUj1YmYss=;eNBTrOY4zCF1A7ZcIfml7CZ0HQ+
 hEUGnt6h57/4arb8LB/QWnKkY+tGvgperQNtF9ouL/mmvT6Az1HJ0IJ9nKfozidjPhXEvFMU8
 3kftPuWRATSbSZQspv+g71gsSbqqb83M0gGKXj3JP8AK7IrzCquelw81Dqo1M3X61uTy52k/W
 jmCD8RszTR8PoHYt1lSq0A4lHIErsTotV3tlvjnKletFD0H+SCllkzcChjAQs2jtC6+2ZMl/K
 FOEtwBpKamyPRfJw/otWZLpIWlx3IM4KeXxEoUQ7BY8FVsjtXLX2qO7WllPWLH+sS7wIXASmb
 PbaiJmArf5Zcg8G42JTmmHMq5Tt8gqspYsO2a1vU84VGP5mqeUgkWxD/4j1L21jjSjmQzk4uw
 nPzUpZFEf/jnhX6Lis25uFTk3APRnETHlcDCRsuT97nM8zTJbwd1Ten0P85rJOSY8HnST+zXv
 T3a0JEhcgxmaT5n0iOrURgT/YhRiqfIMclQmuWp4zuIm+cFBli/mIXDyndSbdVwPZi/ABWfiy
 Mo7X6QQxApnA3VhSBA6ZURjvg9CD1EVBA7Pg0/Cd8KmOaCnBFDpbu2Xid5p0bhop2B35XcGgA
 5/e94tPGNAD7chfQay3HseYND1xkhfDltMWarDMoaLNgdrUYri0120hK6LumXrgmWT5oCJ8Xp
 6e8lfx+JbvvRZcar1wL4D7jSfTMlpT8xkqdhhR3xmjku/Fm7kWq2jUNA4+kEswluZKWB1nIUF
 w5eC/iYfNGLBRFW029+Nk2rAmAGVmFalUYee3wMsZXe5jQ0NamGsiOsaEG9wIpBxodgmLxkg6
 Kz88Nx/4ociLPjJAUFuJRg9ME2vDYbNe/7Y1EsfIJ2Szc=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <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: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> So all we need to do is call expand-file-name on both of them?  Or do
> we need also to call file-truename?

When symlinks are involved it gets really messy.

For example: here is an additional problem I encountered:
`dired-rename-subdir' sometimes doesn't even handle our buffer because
`dired-fun-in-all-buffers', which is built on `dired-buffers-for-dir',
doesn't consider symlinks at all: For `dired-buffers-for-dir' a buffer
that visits some DIR under a different name is simply not visiting DIR.

Other problems are: our buffer could visit a file under a now dead link.
The file renamed could have been moved from behind a link to some
completely unrelated place.  Our buffer could dired a subdirectory of a
renamed directory (this case is currently completely ignored).

I feel a bit lost.  Fixing this would be nice, at least the cases where
this is possible, but it's really complicated and I don't even know the
dired code very well.

Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 17 May 2024 14:28:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 17 10:28:44 2024
Received: from localhost ([127.0.0.1]:55546 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s7yZd-00051B-Kf
	for submit <at> debbugs.gnu.org; Fri, 17 May 2024 10:28:44 -0400
Received: from mout.web.de ([212.227.17.12]:43489)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s7yZb-000513-FF
 for 70593 <at> debbugs.gnu.org; Fri, 17 May 2024 10:28:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715956106; x=1716560906;
 i=michael_heerdegen@HIDDEN;
 bh=AY/t/za3Lc4glM7shu6RjHC5CCHLuSZlx5LT8Dz59Q0=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=coW6NWDqUrHbJyW2YDv888Mk9I3x7giaeWpVxug8FZ5onAY0UQcr7zSeDDFp7xFm
 lPa+K6O06g/EXnmXlXim+TDmtQcXyeIRAXcr8YbNOG0oQlnPbTBzyLixZCIY+lpSU
 mKeRH0ZH6gmxdmbh1cQSHjuAzMs9w50S2RwiuUUd8txjTXo98WeM2fYaUrM2Mho7s
 EQzUx6fr/PMOYl9pn0NE29EiDdDQMqrkk2dKTL0Qcp2tzIwPlgC1y7y8+V8kEmqCk
 ifS1TU7xwP66+XAzQD3AK6gXf9o2xwiqAFyyquFtv0ZPjHBfghPoblz5KQia1poTP
 v/R+yLmu0UhW+Y0jSA==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.59.210.34]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MiMEW-1sk5HQ0seE-00fODS; Fri, 17
 May 2024 16:28:26 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <SJ0PR10MB5488D6005E9FCDCC619FA141F3E72@HIDDEN>
 (Drew Adams's message of "Fri, 10 May 2024 18:32:33 +0000")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
 <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
 <87zfsxbnxa.fsf@HIDDEN>
 <SJ0PR10MB5488D6005E9FCDCC619FA141F3E72@HIDDEN>
Date: Fri, 17 May 2024 16:29:10 +0200
Message-ID: <87y188zf49.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:fL9O6BVQEsEsOU4y5ol3rT75t0SnMGP15gUeVpJ7qAhRca6cuEC
 JATXTOlIHy+NBQD4kBzfDWv/UR8qfiqFIIqvb0yGtq2K3dIw09lcS82KJeNbDRqFqmvOdlj
 3MxSftsm9QE3qT6FMTbSYbQ0FAUlivH1myvwzNu1xtxAr4pmHU0H72f3WEN4AmZkD1bdXaI
 MHAj6RhJl/YyvttpTH8ow==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:2erGiorWUJQ=;7lWtxAa2NYiuUdo0/YXWBz5jEMs
 lS6owQKLavf5rZCfMd695d3XCG1lmHy6L5JkzflyiVDkmyMYvj/ySsrotrIDlPNvNZYCOWpdU
 RZT90UOygxc6Yi4bkHhDcoIRzCd5Yv1mLVS8RhxvzN0RJUcJWV/9xRWqDFAeEizptH1bXmHub
 8BcSD+gFupyhvh6Ab/D21OPtEQFhLMao26AGeQG4wuSDih15SY+qXXWvLuQJ9aAWuG82Aon+Q
 xoN/YbXIsgjKsfuTbJraGzRjrXALUevCg3TFUSColKQBgNKzUHE6n133W4XVWudI0iJseQ0hx
 q8PxtwE4eZYJDVclT2/JiO2e+NDgeum8SKbKCSSPfISI/KSRzaQrzmA1+cc1Je2THVLnUKBfg
 +Wk09OkPZA67Z+QULDtIG2myUef0NywPgW2r4SgLjaV4kiHX9dr7WQj6IJAZ1urGyqts1G/1s
 gZS+khIT6AFFLNEFpmLcRxvWSS06QLQTrSHX2pQd1m4j/vzZ1vwSqjHjbudVgPcVS/DOEWr5B
 8F2ZV4/yojKR0FvLUt6cY5x6HFDzUXziGI1dhxuxGYMsEHCckGUNd7jhKSZlWC1B2nr+f/VZk
 fTrUxzGwcKEbO3auQgzNZOA3minyE6BECUDbaiCc2AlJOVTT/0OTdZoYcii58QU5YvKN+8rgU
 QwIivj31j44v6yTFNvFCffPWc6910wImeN8l2ySVZMIq1V2JCObN521AnZ8YL9xXZRaMloxrG
 6ipisyHr/T6px9wQzW49y2KNdXoIl6Gy3lzUleAO1+mO7/g5xa9ci+PbhO2JzPL4RScxtAto1
 7joLdfDHy0tbQG/ai5fEsRiqU7Tc6TLiEmcgIkOtgOeYw=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <at> debbugs.gnu.org, eliz@HIDDEN
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: -1.0 (-)

Drew Adams <drew.adams@HIDDEN> writes:

> Yes, maybe so.

Anyway, thank you very much for your helpful input.

AFAIU (see the very last lines of `dired-readin-insert'), in the cons
case (i.e. when a file list is specified) dired always treats the car as
a literal (directory) name and not as a potential wildcard pattern.

So from what I understand with regard to that aspect the suggested patch
should be save.


Thanks,

Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 10 May 2024 18:32:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 14:32:38 2024
Received: from localhost ([127.0.0.1]:43445 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5V2s-0008Te-Kr
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 14:32:38 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:48994)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5V2r-0008TY-0g
 for 70593 <at> debbugs.gnu.org; Fri, 10 May 2024 14:32:37 -0400
Received: from pps.filterd (m0246632.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 44AHrZSA025453; Fri, 10 May 2024 18:32:37 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=SXE8gF4dxM55Pv7Ou8vb1yXIH04ln7vPUBLUBqznRZ8=;
 b=bSiIqY4pjgB238P134LAFRJRz8SEWZ7SKDKMfNPO6TSIXQtVE6Xnw66+4g9XUdVIGhKX
 nNtqzL9AlLFyfANIjBJEgsgPQJtjrN4PwpW1EBs/Rq6SaIbau/dbNV6yl1giX5MFUIHm
 Ok4UVZ24zZB5or1ARkKZT8sDNnbgm7obiLg5FcALj7AoO7qNftLpRw3RcXs1Rpg11bO0
 w2x2wJpN68z7HPHYHAsdbZTGWOLGrpe/D23LrbVlHUz0z5dyP+J5wsDNwWlsSV6sOaD4
 l63iVklapyz8SKTGw1Vldx3rae88h7tubw2RRUPGwrjxJNasQEhgz6QEgvSoQoBD7F2U Tg== 
Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com
 (phxpaimrmta01.appoci.oracle.com [138.1.114.2])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y1pgw0a48-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 18:32:37 +0000
Received: from pps.filterd
 (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1])
 by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 44AIGngS029139; Fri, 10 May 2024 18:32:36 GMT
Received: from nam12-mw2-obe.outbound.protection.outlook.com
 (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41])
 by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfmvh4p-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 18:32:36 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Vheck6+Y29BafUXpeH0SSUSeeeJxjnIVqvd8QOs6816Uy6gKms6uA/pY183nrD+5w6b0ylRnBhGYAeZMDjMgQfjrcWAV4fLxahFmd2DRmH9AsbLOklkeFBcwvTi85JpMRvOwcUM8zmMn1ilMUWBGDY8FwvCIuz21reH4NjRWEEbGwZ6F74HWErTO0ypzNaT9tUMpv5WXrU4n7gimyayxHOGviBOqbhDJgR6H46B/F4AXYwVv+HYMt/rrVBrCfh3bsYkgZp0li3S6lCJCXY7zq3GqWHTsGs5VWWMlu24iDd5jat+RwaKsxWP9sYT+iKiMRC9Ygqf6ktQM3MTj/m2wyw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=SXE8gF4dxM55Pv7Ou8vb1yXIH04ln7vPUBLUBqznRZ8=;
 b=Cn1iuLOt3XJu8QZi+oo2kghD3pb0k7KJ4CW22RbEiNjgXGXxCmPO25PIjLV26y68peZGKdQoqK+6R5WJExpT2TCbJlq0x/QKIXC3+M6H57bs1DR/vv5Obg/KG8nbyzOB/VyJckTief7XvgY3L3ahkuBIxTOJSCGI8YnlLqkWzmnWXv0c0/WRna9f4WdKkU44IL0AEOknCj6sfgcYfAbAL/4atZBQHONys5/Yjnf3HDeiDP3kmQ419h+HWE3P1rfpFtqLha/rQXG8zg99Z1WQaVbMYTP1UIKq2O1uH1DlYkH1ZuGp/dRO17QQeo6GQbuXLkJkLj85kjS0NzDfyJJnXQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=SXE8gF4dxM55Pv7Ou8vb1yXIH04ln7vPUBLUBqznRZ8=;
 b=lpnAuYA0B9PZDhqzQkEC8NfwAzIqdDuxVSIHCRVxOZAtyL8o2MVU/xZERGbYTFKZjmP2WHAVo53diR7T5KyY3S2raNOAUkcXKmHCTRrdnI/pMxBFSBhhBqWjdbu7GnfX00kkZT+UIfS9Zjt7GecDAWsUcHblfjSTSntV/jPgyiw=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by PH7PR10MB7804.namprd10.prod.outlook.com (2603:10b6:510:2fe::18)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Fri, 10 May
 2024 18:32:34 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.048; Fri, 10 May 2024
 18:32:33 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaovvFjdQDFu7oKU2g70yYXkna2rGQxANQ
Date: Fri, 10 May 2024 18:32:33 +0000
Message-ID: <SJ0PR10MB5488D6005E9FCDCC619FA141F3E72@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
 <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
 <87zfsxbnxa.fsf@HIDDEN>
In-Reply-To: <87zfsxbnxa.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH7PR10MB7804:EE_
x-ms-office365-filtering-correlation-id: 5629e742-3f08-47e6-5fa4-08dc711f8f25
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|376005|1800799015|366007|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?36Gtsy+y/ATP0jAlCEO0fRLRbtjWQ7vxYT7ZNhRpV/r2bNnO4yEvwK9g00LC?=
 =?us-ascii?Q?JsEW2L6FJcDksfbZoa8p8ml+9KP4sO2lLknyBik4xd11HWccpz/ksmG45wku?=
 =?us-ascii?Q?XmpDLKgEN415xdlRPttUbRsninG8/3yqB3X59KoKWiAHl8VRe3JsY4gml4WD?=
 =?us-ascii?Q?KVJP/ZbyHIT6ekehJ/0vYFJsxrNWYqDZuS2IiaMS9nUMyjxwtSzDo+iD4k+6?=
 =?us-ascii?Q?zcrXgncILddLxVUF0dZGg4kvugfbhJtDe603joQKcddOx1vpBsXp9lMtOAVg?=
 =?us-ascii?Q?3Q2+OqeNzA7bCXPJ98reRb/jQ/5SrPTeQinvFaHCqH+uCJP0rvN018E0Uzfq?=
 =?us-ascii?Q?zudNA8ACcOJ0JXxW365IROzFYy+8+cfPXnct4VQVRsWry7PD1GljyEYicf5/?=
 =?us-ascii?Q?OTvjKnsyd0zg5AcZCtj/nlmKumUArPijW0OC03DXHtmkoDA36d7qqQcHXOk8?=
 =?us-ascii?Q?H5llwQxGEVMN95oFN2HCOl7opDcjG3D6ToC6S82x+2c0MqHyn++uUs7QfeEg?=
 =?us-ascii?Q?tWyzlsYMMW3iyOjLgW8zuNG2bOyR7hG/yImoEMcirwD8v75g9XY5/63Hd8ok?=
 =?us-ascii?Q?Bv0cnFsKaoqFiSsgG8j4ikf6kuByFjo0e5xv1oqdCK86NR6qedDmXunR8mVP?=
 =?us-ascii?Q?A+gMZbd6EF9y/INTnJ8RXRwwyb88Hvz4rJlsKZPo6H7N0+DvBMy0c4/FMMM5?=
 =?us-ascii?Q?CIH2L3rfxmptSffPPwiqz7HcHYGXGvyTzCB3hdkBufGZCHamJFsginqru9R8?=
 =?us-ascii?Q?oind2+AM0lh7TD2riKzoYA8q0rO9nBQbRwqNHObYDtXdqF/oUZfaBNkj1Lot?=
 =?us-ascii?Q?ffjwp6st3wNIVD7FuVaTy+ELlTzFNqClqKKodnGhR1eJlA9qSyH0JQ2Y5aHJ?=
 =?us-ascii?Q?SXPaUQRxnIwdx5WaHTcZTMJ3B5K9OoTjr5tGvseYulenLFUkE6udMq3DxoRS?=
 =?us-ascii?Q?UTW4N//7Pz8OU6hKlb3GRRVTaSn4Fscdei5c176QoOddO8b948TTrJvcF3Hv?=
 =?us-ascii?Q?e1bbK3Guc4kDOjkQiR/qTd5gZRbALV1l5da4T4i5BiJKywFJT0XgaYogYo8p?=
 =?us-ascii?Q?3Mc5BJY8J/dGFSHzF31MKd+TB/EYshVLBs+XuvR2YWfeB+jMkJpTRwbEPyAE?=
 =?us-ascii?Q?8H/6H/0vMUafYm4HMPVwH6033MxeJeM3BJKYw3A2w3K4zIzNSDouy97rZpoN?=
 =?us-ascii?Q?t/dB2JHBQ6v3LhDEG9HxeG6wR4eED1IEiTnCXfzhne2q8t1l2ke1YLmNGc5F?=
 =?us-ascii?Q?/p4Si8B6Az6ea3Bx+P8peFqxucN40jkwYIXLElWfwDqOJGjRGFw6M30Oas9H?=
 =?us-ascii?Q?lK2rzPwbAX9Kasrqa2Zf4Hz6OuexWltR3iu++iVcGNwSkA=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(376005)(1800799015)(366007)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FXGS5J4/abP5FJHcqBi4smvtcZcmYD2EV8eHorb6rp492zQ3L6/VftbEFDXe?=
 =?us-ascii?Q?3qhPyMxPSjDV7sxVn962tNoFcE3EUbp1LDxvIo9GggrryZTiPGTIVxFgr1hY?=
 =?us-ascii?Q?VRoRB6Eg258GXY8buwi2Af5OiB57sU/OSmFdTw8Bx3fBlnKr7j263yhYLIVE?=
 =?us-ascii?Q?iJaexT8DrhdCRGkXQBo8uUnJBI3HihXlyEIviO3iX74uwTM6OmdgGtQ5ELxt?=
 =?us-ascii?Q?ePgOEpJsBiH+ZWG8fkTdyZzDMNYcHgYVKVKYf+2BhntF73LaCTAf99jQ5Qii?=
 =?us-ascii?Q?9PdEKQryC8MDqLHnkucIxnJNbWXdDv7RZ73Zl5o5ol3xCP3cJH+IVytzXzH8?=
 =?us-ascii?Q?JyMYjWOeGuheRyZH1X+sazLurUXsyiek3MeduPqV4htABEIUBI8Za5CXM4bq?=
 =?us-ascii?Q?KXUvV+2TWZ00jFLZvWAC4CFflStCFWkFssP3Fm4UWXtj05lOIHpGJXmW2x3I?=
 =?us-ascii?Q?8Ho1G5oq2S1HkbjVxRYvpMs+vqu65dkHeQPWl0OvToTZKH4tfcm8wl7H1WZs?=
 =?us-ascii?Q?x3BbSmsDKXdkYIh2QxOI9oyvRp1Xu7GmaS5Ews1gcA6TMJV5VwYG7mWHIWb1?=
 =?us-ascii?Q?F93Sm30DBOIwS9CJy7G4j78s288+jTOANDnw5xh1Hq0x/rO8VPTht2yFLfYT?=
 =?us-ascii?Q?Wj9jKJrVXMhU5rw1ku0Nmr4SpPWaYAxca/FEbKuEVwi/I55p7gVTmgDTVwTY?=
 =?us-ascii?Q?ZyVjto5e0MeH/hcPKTCzBbG6D+MParnZT9/DuzfyOesl/ksGdfUxDLWQxj8j?=
 =?us-ascii?Q?warGao8AK3yWoxY0/kurzZ2eH376YaEc7khjVJ9s9uwropx1auiqcpOKklvS?=
 =?us-ascii?Q?pcUNynRznuxMRO2BrEOvA7Awkq8zrfyUpY0CK1ez3+4J6KprGc21bugJsNB3?=
 =?us-ascii?Q?2ArE5VwxPzsWZk+H/WgNbxrcEka5HyxP208UDGFlJHjoX7/aJIr4Ayso2xpe?=
 =?us-ascii?Q?12JIEqWt4PnL2/CoR6v3GQsvogXBa59dzsHwJtJd6by01et+TO5kwWpP7jy6?=
 =?us-ascii?Q?7GGp7959rDbXJzMInG39TagtQB88GkiTM3DhQywXFM36h3bCyUval2p6ji3L?=
 =?us-ascii?Q?vlrTCJmDFxGOWUttcr/FxNVnRatplZQrol+l8lmuw2HpCk0TIxmr6FlkirZb?=
 =?us-ascii?Q?J62+tPSh9vC1UAgTpOkq5/X/oebbd1KUCKN68L4WES6TdzXn9M2uZ1mRN11B?=
 =?us-ascii?Q?FBgQ4OhfUPYZy87O+ddpZPJwFz3izFNlWzrGkCwh8i4/HeaVxXY2DqN7yxFe?=
 =?us-ascii?Q?apVRwVx15WLHr2pu8oceM/TpHxGfQGajhXduqR4v9lMlXy3BP//wD6hRmGx8?=
 =?us-ascii?Q?zzjyBAU2EXzEpvFTSsyEMSUAiFnA0D5+fV7cpSTVWqjYQFocBx40naeZLSeG?=
 =?us-ascii?Q?eJb4EESzih7mrgOhJaUq0HeUHiXUX0tgv1WZP4+EV9nVzsRIGj8X8IxZcG/x?=
 =?us-ascii?Q?j7xaevoo375NcAfS9RimUQzNcZfdVE+h0U52Ae9sQMbGudn0MeWHPxIQ97rT?=
 =?us-ascii?Q?kF7NL64XhWMUtQHWwF9P0/Z8b+Z+bEulqvKCvYV8NlEaBQq9eE+UGZwkY1D8?=
 =?us-ascii?Q?xREBsX3WbEPlrAo4KjydsamUaQvvAKPxbx2+DTeF?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: I4RRQpzJZ+c5eSa1iOoE1XZ48OAauENq37lNJX8GQTqZYEmEonkBxFqfaFyt8rFhDZt/aC66O0fvIhbwOpX4Wljf1YaEDiqsF7hyOF98PAQmj/EbS0YRiZAVe+K93pf5IujqIs/9lgrfSGXexcei+2gBjKmXkjl9KxBNvnPFk4MCTduuyYA2AR51iByjYsFU+iGcC7UjpCBxWrpZx2a6LhHa4bxWfWUMctf5ZmUGr7nxmjn9YWSN0/L+gz726OzU8w+eEExodFVMhJrpsG54Jki0Hdncu0Q/TMOUDprg8Knq0CCkU+9J6BXb/RDN/nulWW6J4k3Y3TQefQmdk+5NG4lENnfEeR8iraxT7fILzLlladAxWnPhAufn4RKW2YPozjOUCVlqcF/NnDZnGkhNtk4Gu9iFJHwOz2IENk4/qCpCdTK0qSPzJdx3KDjezq4sEQWnEp7N2UfYVKotJ2lrrAPooGWb1A0PKv8d8W6BgOuA4YSHXqqB5/xA2qk44K9nPu0HB+WmaSZGE5gSJ7MEMMNWi9YHZx6TxOcccg6kwKQjuq8VD7plxeoNG7nD55EAtsSFtmiK4LTOrW1yUkhTnFJtAFgOfOY3BTM9ZM+rt4o=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5629e742-3f08-47e6-5fa4-08dc711f8f25
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2024 18:32:33.9216 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: b0esAhzIfv0G2fftXgQFBZztrIwDPhBeiHsUCXyc+mU/4URAxW2jmZjYrFroiDIvH5KBz7Th78CN3gVphqi7jQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB7804
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-10_13,2024-05-10_02,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0
 mlxlogscore=724
 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0
 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2405010000 definitions=main-2405100131
X-Proofpoint-ORIG-GUID: MzamYUprIBBFKUCA4fDAwejdI80je8A6
X-Proofpoint-GUID: MzamYUprIBBFKUCA4fDAwejdI80je8A6
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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: -1.7 (-)

> > But note this comment in the code for
> > `dired-internal-noselect' (in dired.el):
> >
> > ;; We can do this unconditionally
> > ;; because dired-noselect ensures that the name
> > ;; is passed in directory name syntax
> > ;; if it was the name of a directory at all.
> >    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>=20
> Hmm - but this this could also speak about
> the wildcard case.

Yes, maybe so.  In any case, it alone isn't
proof of an expectation that the car can be
an arbitrary string.




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

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


Received: (at submit) by debbugs.gnu.org; 10 May 2024 18:32:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 14:32:44 2024
Received: from localhost ([127.0.0.1]:43449 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5V2y-0008Tt-0V
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 14:32:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:33338)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5V2v-0008Tn-4J
 for submit <at> debbugs.gnu.org; Fri, 10 May 2024 14:32:43 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5V2v-00089s-Rp
 for bug-gnu-emacs@HIDDEN; Fri, 10 May 2024 14:32:41 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5V2u-0002ys-AG; Fri, 10 May 2024 14:32:41 -0400
Received: from pps.filterd (m0246632.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 44AHrZSA025453; Fri, 10 May 2024 18:32:37 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=SXE8gF4dxM55Pv7Ou8vb1yXIH04ln7vPUBLUBqznRZ8=;
 b=bSiIqY4pjgB238P134LAFRJRz8SEWZ7SKDKMfNPO6TSIXQtVE6Xnw66+4g9XUdVIGhKX
 nNtqzL9AlLFyfANIjBJEgsgPQJtjrN4PwpW1EBs/Rq6SaIbau/dbNV6yl1giX5MFUIHm
 Ok4UVZ24zZB5or1ARkKZT8sDNnbgm7obiLg5FcALj7AoO7qNftLpRw3RcXs1Rpg11bO0
 w2x2wJpN68z7HPHYHAsdbZTGWOLGrpe/D23LrbVlHUz0z5dyP+J5wsDNwWlsSV6sOaD4
 l63iVklapyz8SKTGw1Vldx3rae88h7tubw2RRUPGwrjxJNasQEhgz6QEgvSoQoBD7F2U Tg== 
Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com
 (phxpaimrmta01.appoci.oracle.com [138.1.114.2])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y1pgw0a48-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 18:32:37 +0000
Received: from pps.filterd
 (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1])
 by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 44AIGngS029139; Fri, 10 May 2024 18:32:36 GMT
Received: from nam12-mw2-obe.outbound.protection.outlook.com
 (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41])
 by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfmvh4p-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 18:32:36 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Vheck6+Y29BafUXpeH0SSUSeeeJxjnIVqvd8QOs6816Uy6gKms6uA/pY183nrD+5w6b0ylRnBhGYAeZMDjMgQfjrcWAV4fLxahFmd2DRmH9AsbLOklkeFBcwvTi85JpMRvOwcUM8zmMn1ilMUWBGDY8FwvCIuz21reH4NjRWEEbGwZ6F74HWErTO0ypzNaT9tUMpv5WXrU4n7gimyayxHOGviBOqbhDJgR6H46B/F4AXYwVv+HYMt/rrVBrCfh3bsYkgZp0li3S6lCJCXY7zq3GqWHTsGs5VWWMlu24iDd5jat+RwaKsxWP9sYT+iKiMRC9Ygqf6ktQM3MTj/m2wyw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=SXE8gF4dxM55Pv7Ou8vb1yXIH04ln7vPUBLUBqznRZ8=;
 b=Cn1iuLOt3XJu8QZi+oo2kghD3pb0k7KJ4CW22RbEiNjgXGXxCmPO25PIjLV26y68peZGKdQoqK+6R5WJExpT2TCbJlq0x/QKIXC3+M6H57bs1DR/vv5Obg/KG8nbyzOB/VyJckTief7XvgY3L3ahkuBIxTOJSCGI8YnlLqkWzmnWXv0c0/WRna9f4WdKkU44IL0AEOknCj6sfgcYfAbAL/4atZBQHONys5/Yjnf3HDeiDP3kmQ419h+HWE3P1rfpFtqLha/rQXG8zg99Z1WQaVbMYTP1UIKq2O1uH1DlYkH1ZuGp/dRO17QQeo6GQbuXLkJkLj85kjS0NzDfyJJnXQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=SXE8gF4dxM55Pv7Ou8vb1yXIH04ln7vPUBLUBqznRZ8=;
 b=lpnAuYA0B9PZDhqzQkEC8NfwAzIqdDuxVSIHCRVxOZAtyL8o2MVU/xZERGbYTFKZjmP2WHAVo53diR7T5KyY3S2raNOAUkcXKmHCTRrdnI/pMxBFSBhhBqWjdbu7GnfX00kkZT+UIfS9Zjt7GecDAWsUcHblfjSTSntV/jPgyiw=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by PH7PR10MB7804.namprd10.prod.outlook.com (2603:10b6:510:2fe::18)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Fri, 10 May
 2024 18:32:34 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.048; Fri, 10 May 2024
 18:32:33 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaovvFjdQDFu7oKU2g70yYXkna2rGQxANQ
Date: Fri, 10 May 2024 18:32:33 +0000
Message-ID: <SJ0PR10MB5488D6005E9FCDCC619FA141F3E72@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
 <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
 <87zfsxbnxa.fsf@HIDDEN>
In-Reply-To: <87zfsxbnxa.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH7PR10MB7804:EE_
x-ms-office365-filtering-correlation-id: 5629e742-3f08-47e6-5fa4-08dc711f8f25
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|376005|1800799015|366007|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?36Gtsy+y/ATP0jAlCEO0fRLRbtjWQ7vxYT7ZNhRpV/r2bNnO4yEvwK9g00LC?=
 =?us-ascii?Q?JsEW2L6FJcDksfbZoa8p8ml+9KP4sO2lLknyBik4xd11HWccpz/ksmG45wku?=
 =?us-ascii?Q?XmpDLKgEN415xdlRPttUbRsninG8/3yqB3X59KoKWiAHl8VRe3JsY4gml4WD?=
 =?us-ascii?Q?KVJP/ZbyHIT6ekehJ/0vYFJsxrNWYqDZuS2IiaMS9nUMyjxwtSzDo+iD4k+6?=
 =?us-ascii?Q?zcrXgncILddLxVUF0dZGg4kvugfbhJtDe603joQKcddOx1vpBsXp9lMtOAVg?=
 =?us-ascii?Q?3Q2+OqeNzA7bCXPJ98reRb/jQ/5SrPTeQinvFaHCqH+uCJP0rvN018E0Uzfq?=
 =?us-ascii?Q?zudNA8ACcOJ0JXxW365IROzFYy+8+cfPXnct4VQVRsWry7PD1GljyEYicf5/?=
 =?us-ascii?Q?OTvjKnsyd0zg5AcZCtj/nlmKumUArPijW0OC03DXHtmkoDA36d7qqQcHXOk8?=
 =?us-ascii?Q?H5llwQxGEVMN95oFN2HCOl7opDcjG3D6ToC6S82x+2c0MqHyn++uUs7QfeEg?=
 =?us-ascii?Q?tWyzlsYMMW3iyOjLgW8zuNG2bOyR7hG/yImoEMcirwD8v75g9XY5/63Hd8ok?=
 =?us-ascii?Q?Bv0cnFsKaoqFiSsgG8j4ikf6kuByFjo0e5xv1oqdCK86NR6qedDmXunR8mVP?=
 =?us-ascii?Q?A+gMZbd6EF9y/INTnJ8RXRwwyb88Hvz4rJlsKZPo6H7N0+DvBMy0c4/FMMM5?=
 =?us-ascii?Q?CIH2L3rfxmptSffPPwiqz7HcHYGXGvyTzCB3hdkBufGZCHamJFsginqru9R8?=
 =?us-ascii?Q?oind2+AM0lh7TD2riKzoYA8q0rO9nBQbRwqNHObYDtXdqF/oUZfaBNkj1Lot?=
 =?us-ascii?Q?ffjwp6st3wNIVD7FuVaTy+ELlTzFNqClqKKodnGhR1eJlA9qSyH0JQ2Y5aHJ?=
 =?us-ascii?Q?SXPaUQRxnIwdx5WaHTcZTMJ3B5K9OoTjr5tGvseYulenLFUkE6udMq3DxoRS?=
 =?us-ascii?Q?UTW4N//7Pz8OU6hKlb3GRRVTaSn4Fscdei5c176QoOddO8b948TTrJvcF3Hv?=
 =?us-ascii?Q?e1bbK3Guc4kDOjkQiR/qTd5gZRbALV1l5da4T4i5BiJKywFJT0XgaYogYo8p?=
 =?us-ascii?Q?3Mc5BJY8J/dGFSHzF31MKd+TB/EYshVLBs+XuvR2YWfeB+jMkJpTRwbEPyAE?=
 =?us-ascii?Q?8H/6H/0vMUafYm4HMPVwH6033MxeJeM3BJKYw3A2w3K4zIzNSDouy97rZpoN?=
 =?us-ascii?Q?t/dB2JHBQ6v3LhDEG9HxeG6wR4eED1IEiTnCXfzhne2q8t1l2ke1YLmNGc5F?=
 =?us-ascii?Q?/p4Si8B6Az6ea3Bx+P8peFqxucN40jkwYIXLElWfwDqOJGjRGFw6M30Oas9H?=
 =?us-ascii?Q?lK2rzPwbAX9Kasrqa2Zf4Hz6OuexWltR3iu++iVcGNwSkA=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(376005)(1800799015)(366007)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FXGS5J4/abP5FJHcqBi4smvtcZcmYD2EV8eHorb6rp492zQ3L6/VftbEFDXe?=
 =?us-ascii?Q?3qhPyMxPSjDV7sxVn962tNoFcE3EUbp1LDxvIo9GggrryZTiPGTIVxFgr1hY?=
 =?us-ascii?Q?VRoRB6Eg258GXY8buwi2Af5OiB57sU/OSmFdTw8Bx3fBlnKr7j263yhYLIVE?=
 =?us-ascii?Q?iJaexT8DrhdCRGkXQBo8uUnJBI3HihXlyEIviO3iX74uwTM6OmdgGtQ5ELxt?=
 =?us-ascii?Q?ePgOEpJsBiH+ZWG8fkTdyZzDMNYcHgYVKVKYf+2BhntF73LaCTAf99jQ5Qii?=
 =?us-ascii?Q?9PdEKQryC8MDqLHnkucIxnJNbWXdDv7RZ73Zl5o5ol3xCP3cJH+IVytzXzH8?=
 =?us-ascii?Q?JyMYjWOeGuheRyZH1X+sazLurUXsyiek3MeduPqV4htABEIUBI8Za5CXM4bq?=
 =?us-ascii?Q?KXUvV+2TWZ00jFLZvWAC4CFflStCFWkFssP3Fm4UWXtj05lOIHpGJXmW2x3I?=
 =?us-ascii?Q?8Ho1G5oq2S1HkbjVxRYvpMs+vqu65dkHeQPWl0OvToTZKH4tfcm8wl7H1WZs?=
 =?us-ascii?Q?x3BbSmsDKXdkYIh2QxOI9oyvRp1Xu7GmaS5Ews1gcA6TMJV5VwYG7mWHIWb1?=
 =?us-ascii?Q?F93Sm30DBOIwS9CJy7G4j78s288+jTOANDnw5xh1Hq0x/rO8VPTht2yFLfYT?=
 =?us-ascii?Q?Wj9jKJrVXMhU5rw1ku0Nmr4SpPWaYAxca/FEbKuEVwi/I55p7gVTmgDTVwTY?=
 =?us-ascii?Q?ZyVjto5e0MeH/hcPKTCzBbG6D+MParnZT9/DuzfyOesl/ksGdfUxDLWQxj8j?=
 =?us-ascii?Q?warGao8AK3yWoxY0/kurzZ2eH376YaEc7khjVJ9s9uwropx1auiqcpOKklvS?=
 =?us-ascii?Q?pcUNynRznuxMRO2BrEOvA7Awkq8zrfyUpY0CK1ez3+4J6KprGc21bugJsNB3?=
 =?us-ascii?Q?2ArE5VwxPzsWZk+H/WgNbxrcEka5HyxP208UDGFlJHjoX7/aJIr4Ayso2xpe?=
 =?us-ascii?Q?12JIEqWt4PnL2/CoR6v3GQsvogXBa59dzsHwJtJd6by01et+TO5kwWpP7jy6?=
 =?us-ascii?Q?7GGp7959rDbXJzMInG39TagtQB88GkiTM3DhQywXFM36h3bCyUval2p6ji3L?=
 =?us-ascii?Q?vlrTCJmDFxGOWUttcr/FxNVnRatplZQrol+l8lmuw2HpCk0TIxmr6FlkirZb?=
 =?us-ascii?Q?J62+tPSh9vC1UAgTpOkq5/X/oebbd1KUCKN68L4WES6TdzXn9M2uZ1mRN11B?=
 =?us-ascii?Q?FBgQ4OhfUPYZy87O+ddpZPJwFz3izFNlWzrGkCwh8i4/HeaVxXY2DqN7yxFe?=
 =?us-ascii?Q?apVRwVx15WLHr2pu8oceM/TpHxGfQGajhXduqR4v9lMlXy3BP//wD6hRmGx8?=
 =?us-ascii?Q?zzjyBAU2EXzEpvFTSsyEMSUAiFnA0D5+fV7cpSTVWqjYQFocBx40naeZLSeG?=
 =?us-ascii?Q?eJb4EESzih7mrgOhJaUq0HeUHiXUX0tgv1WZP4+EV9nVzsRIGj8X8IxZcG/x?=
 =?us-ascii?Q?j7xaevoo375NcAfS9RimUQzNcZfdVE+h0U52Ae9sQMbGudn0MeWHPxIQ97rT?=
 =?us-ascii?Q?kF7NL64XhWMUtQHWwF9P0/Z8b+Z+bEulqvKCvYV8NlEaBQq9eE+UGZwkY1D8?=
 =?us-ascii?Q?xREBsX3WbEPlrAo4KjydsamUaQvvAKPxbx2+DTeF?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: I4RRQpzJZ+c5eSa1iOoE1XZ48OAauENq37lNJX8GQTqZYEmEonkBxFqfaFyt8rFhDZt/aC66O0fvIhbwOpX4Wljf1YaEDiqsF7hyOF98PAQmj/EbS0YRiZAVe+K93pf5IujqIs/9lgrfSGXexcei+2gBjKmXkjl9KxBNvnPFk4MCTduuyYA2AR51iByjYsFU+iGcC7UjpCBxWrpZx2a6LhHa4bxWfWUMctf5ZmUGr7nxmjn9YWSN0/L+gz726OzU8w+eEExodFVMhJrpsG54Jki0Hdncu0Q/TMOUDprg8Knq0CCkU+9J6BXb/RDN/nulWW6J4k3Y3TQefQmdk+5NG4lENnfEeR8iraxT7fILzLlladAxWnPhAufn4RKW2YPozjOUCVlqcF/NnDZnGkhNtk4Gu9iFJHwOz2IENk4/qCpCdTK0qSPzJdx3KDjezq4sEQWnEp7N2UfYVKotJ2lrrAPooGWb1A0PKv8d8W6BgOuA4YSHXqqB5/xA2qk44K9nPu0HB+WmaSZGE5gSJ7MEMMNWi9YHZx6TxOcccg6kwKQjuq8VD7plxeoNG7nD55EAtsSFtmiK4LTOrW1yUkhTnFJtAFgOfOY3BTM9ZM+rt4o=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5629e742-3f08-47e6-5fa4-08dc711f8f25
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2024 18:32:33.9216 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: b0esAhzIfv0G2fftXgQFBZztrIwDPhBeiHsUCXyc+mU/4URAxW2jmZjYrFroiDIvH5KBz7Th78CN3gVphqi7jQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB7804
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-10_13,2024-05-10_02,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0
 mlxlogscore=724
 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0
 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2405010000 definitions=main-2405100131
X-Proofpoint-ORIG-GUID: MzamYUprIBBFKUCA4fDAwejdI80je8A6
X-Proofpoint-GUID: MzamYUprIBBFKUCA4fDAwejdI80je8A6
Received-SPF: pass client-ip=205.220.177.32;
 envelope-from=drew.adams@HIDDEN; helo=mx0b-00069f02.pphosted.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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.3 (--)

> > But note this comment in the code for
> > `dired-internal-noselect' (in dired.el):
> >
> > ;; We can do this unconditionally
> > ;; because dired-noselect ensures that the name
> > ;; is passed in directory name syntax
> > ;; if it was the name of a directory at all.
> >    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>=20
> Hmm - but this this could also speak about
> the wildcard case.

Yes, maybe so.  In any case, it alone isn't
proof of an expectation that the car can be
an arbitrary string.




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

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


Received: (at submit) by debbugs.gnu.org; 10 May 2024 17:02:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 13:02:05 2024
Received: from localhost ([127.0.0.1]:43065 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5TdF-0004Wm-FF
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 13:02:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:56574)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s5TdE-0004Wg-AA
 for submit <at> debbugs.gnu.org; Fri, 10 May 2024 13:02:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s5Td8-0007dE-6r
 for bug-gnu-emacs@HIDDEN; Fri, 10 May 2024 13:01:59 -0400
Received: from mout.web.de ([212.227.15.14])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s5Td5-00077I-3k; Fri, 10 May 2024 13:01:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715360501; x=1715965301;
 i=michael_heerdegen@HIDDEN;
 bh=J+w0S4IzOEdyVs74hp9MmASzqgJfHUu6XwV45IfzhHI=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=FKcyogPWjhkFsGTaFdEjHcX7+VKhjB+1+SYimv169TE7yWEAE7pMOvCuN5YcvGuk
 Pq7ZF7UDArTcuiwssIREXCa9J5AtzlMKGvE3p2n1hqvU85ZeUs6BDQhdT56/2NI2/
 Mpke/hv04ueCXovt9d11pKkCdQz6Gw5pl+axagVY/12DM0+qigK8yrh/St6PM20X4
 w3ng0moSlGelpsSO0MspD3T5008531NHOyhEzT2qhvevEO+Hea6EHuaEtWOHUfHus
 euUQU1EAnaOPSn+FPAzyrbvpRuv44Lsx5A8EYq/40dC1ReI2mIqVkBAU9NGMiPQs7
 yNj2syXnvv9y3eScxA==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MTfon-1sBEMa0qhp-00KkA0; Fri, 10
 May 2024 19:01:41 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
In-Reply-To: <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
 (Drew Adams's message of "Fri, 10 May 2024 16:51:50 +0000")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
 <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
Date: Fri, 10 May 2024 19:02:25 +0200
Message-ID: <87zfsxbnxa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:cdbJALXLijUzHqHDlb11dlX+xZxvxR69VMQeUvzr7FwDgLC0yu2
 bWXGJBW+aIhJmLTrtE1b7NW8TG5jlHVD81AoAOlfCU8UxMgaHGIuu0DxGURpze+wUuABbiK
 ZPmIRKM1ekiGyIWSNmDM5gIFA25M1o5/lAgNFeykO2P8Jl5RWxpyHdx07ESJH6mcJdhGDEE
 JN4yO8KeYODVi6JntpK9Q==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:N1dorn0Vo6E=;0t9lYL5Fd+w+NBCVd0E/Qw/e0FO
 wfq30R0Oaj98P1Td9TLLzGr4yE+TI7LWP/JZnILIZAj0o8/ZsKmY12kkQ2PAGGTbZFVo/sKfd
 9iGaejmxTxXH20wIsddp5tzzUtYqX2jDMqWA0X65AZGKCVNlJ3FDuOxquF2o4cUSmn5ZcTdrJ
 3PNmw8hZr2M4AQ52cZadv9kyA2RnTINW9tA1E/AnyDItaONh4XIeh7WT0NAg1LJd1QFwwiJJz
 ZldVicl7e5K3UE4jiBobmdLJujQfLnKGxqEWhWGowmwGDU4WdN0e3kgrigRxKQPUMsO7FsTb/
 8+CYFwkEFalJslNDGIvuUmEIbgPFKY0Kvv289GVtK3vwdqC1iqcFfqGS80XRqGZKbgP4nxMwR
 RfZF6qBJ8x2nDagtyaCZ+7tS3mhMovN0ZP4ef+ccEWznsAshKDf/sgPGPDKT4iBIZX3uUrZP3
 Ib+d9m3mNSd+duhb5HX+vJYr29VX4ZKhMYZJr0htnRqxOFrjkMaOEJtv807u5/qZ0Y9mPTA/B
 eMfTrgcWhI5SxRCcRCek/FoeyanycQwnSYMD40KRLhokIj4qUKMnltXeJRs24XWazbU78AGOW
 o45e1QxpO8I2O4vTZJEhF8Jeom7KtMMS4Ez8mGyL7cUzbdW+s26VE+JEf0EJuVIIOLcPC5li2
 ylRG0rssY9qhzpJBxFNcLgwq390iAR0n1Eob6wRpgJT75yuGrtaZEgXRpJ7PMnkssrPJioAl7
 I6Dq4WUuMsuPsnj8slKeEYkk2qE01mh/ZIC9NxeLTV7+AlgiKqVPSLOYKZaPmR4H92xUIJcPp
 5HhfMDJnkWYsFG1EmY6DswgzDTyWfb27SzX/t923rqUlg=
Received-SPF: pass client-ip=212.227.15.14;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, 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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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.3 (--)

Drew Adams <drew.adams@HIDDEN> writes:

> But note this comment in the code for
> `dired-internal-noselect' (in dired.el):
>
> ;; We can do this unconditionally
> ;; because dired-noselect ensures that the name
> ;; is passed in directory name syntax
> ;; if it was the name of a directory at all.
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Hmm - but this this could also speak about the wildcard case.


Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 10 May 2024 17:01:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 13:01:52 2024
Received: from localhost ([127.0.0.1]:43059 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5Td2-0004W4-6w
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 13:01:52 -0400
Received: from mout.web.de ([212.227.15.14]:52773)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s5Td0-0004Vt-1F
 for 70593 <at> debbugs.gnu.org; Fri, 10 May 2024 13:01:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715360501; x=1715965301;
 i=michael_heerdegen@HIDDEN;
 bh=J+w0S4IzOEdyVs74hp9MmASzqgJfHUu6XwV45IfzhHI=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=FKcyogPWjhkFsGTaFdEjHcX7+VKhjB+1+SYimv169TE7yWEAE7pMOvCuN5YcvGuk
 Pq7ZF7UDArTcuiwssIREXCa9J5AtzlMKGvE3p2n1hqvU85ZeUs6BDQhdT56/2NI2/
 Mpke/hv04ueCXovt9d11pKkCdQz6Gw5pl+axagVY/12DM0+qigK8yrh/St6PM20X4
 w3ng0moSlGelpsSO0MspD3T5008531NHOyhEzT2qhvevEO+Hea6EHuaEtWOHUfHus
 euUQU1EAnaOPSn+FPAzyrbvpRuv44Lsx5A8EYq/40dC1ReI2mIqVkBAU9NGMiPQs7
 yNj2syXnvv9y3eScxA==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MTfon-1sBEMa0qhp-00KkA0; Fri, 10
 May 2024 19:01:41 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
In-Reply-To: <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
 (Drew Adams's message of "Fri, 10 May 2024 16:51:50 +0000")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
 <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
Date: Fri, 10 May 2024 19:02:25 +0200
Message-ID: <87zfsxbnxa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:cdbJALXLijUzHqHDlb11dlX+xZxvxR69VMQeUvzr7FwDgLC0yu2
 bWXGJBW+aIhJmLTrtE1b7NW8TG5jlHVD81AoAOlfCU8UxMgaHGIuu0DxGURpze+wUuABbiK
 ZPmIRKM1ekiGyIWSNmDM5gIFA25M1o5/lAgNFeykO2P8Jl5RWxpyHdx07ESJH6mcJdhGDEE
 JN4yO8KeYODVi6JntpK9Q==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:N1dorn0Vo6E=;0t9lYL5Fd+w+NBCVd0E/Qw/e0FO
 wfq30R0Oaj98P1Td9TLLzGr4yE+TI7LWP/JZnILIZAj0o8/ZsKmY12kkQ2PAGGTbZFVo/sKfd
 9iGaejmxTxXH20wIsddp5tzzUtYqX2jDMqWA0X65AZGKCVNlJ3FDuOxquF2o4cUSmn5ZcTdrJ
 3PNmw8hZr2M4AQ52cZadv9kyA2RnTINW9tA1E/AnyDItaONh4XIeh7WT0NAg1LJd1QFwwiJJz
 ZldVicl7e5K3UE4jiBobmdLJujQfLnKGxqEWhWGowmwGDU4WdN0e3kgrigRxKQPUMsO7FsTb/
 8+CYFwkEFalJslNDGIvuUmEIbgPFKY0Kvv289GVtK3vwdqC1iqcFfqGS80XRqGZKbgP4nxMwR
 RfZF6qBJ8x2nDagtyaCZ+7tS3mhMovN0ZP4ef+ccEWznsAshKDf/sgPGPDKT4iBIZX3uUrZP3
 Ib+d9m3mNSd+duhb5HX+vJYr29VX4ZKhMYZJr0htnRqxOFrjkMaOEJtv807u5/qZ0Y9mPTA/B
 eMfTrgcWhI5SxRCcRCek/FoeyanycQwnSYMD40KRLhokIj4qUKMnltXeJRs24XWazbU78AGOW
 o45e1QxpO8I2O4vTZJEhF8Jeom7KtMMS4Ez8mGyL7cUzbdW+s26VE+JEf0EJuVIIOLcPC5li2
 ylRG0rssY9qhzpJBxFNcLgwq390iAR0n1Eob6wRpgJT75yuGrtaZEgXRpJ7PMnkssrPJioAl7
 I6Dq4WUuMsuPsnj8slKeEYkk2qE01mh/ZIC9NxeLTV7+AlgiKqVPSLOYKZaPmR4H92xUIJcPp
 5HhfMDJnkWYsFG1EmY6DswgzDTyWfb27SzX/t923rqUlg=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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: -1.7 (-)

Drew Adams <drew.adams@HIDDEN> writes:

> But note this comment in the code for
> `dired-internal-noselect' (in dired.el):
>
> ;; We can do this unconditionally
> ;; because dired-noselect ensures that the name
> ;; is passed in directory name syntax
> ;; if it was the name of a directory at all.
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Hmm - but this this could also speak about the wildcard case.


Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 10 May 2024 16:52:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 12:52:10 2024
Received: from localhost ([127.0.0.1]:43010 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5TTe-0004Ng-FE
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 12:52:10 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:63384)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5TTb-0004NT-JE
 for 70593 <at> debbugs.gnu.org; Fri, 10 May 2024 12:52:08 -0400
Received: from pps.filterd (m0246631.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 44AGiudt016246; Fri, 10 May 2024 16:52:08 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=L7JZNJPVq3OEKOzZuYAJ7QysAP8uN8Sb1ZCdGOVgmVs=;
 b=fduH0A57760Aww8G46m/EqNdZ9aBytDhoIxfX2YzgYSOCdu/0au7fQ/3UKMFhiuPc0OM
 3QSylPZ7o7JGsaocaLZwUF8nzJNz5FEjjlXrc61LOUYnSIh5ZOleEtk5VcRnXxux3CNh
 c/rNdITkS8RXUMzWTfI+rBdbc1fMFWcJEtc/XoCtP5tx5Plgu7850IOddpoGC+zLGmL/
 Mkpa+XUuTl1E2xh1WLZagHxAPBFKc5uSmmlaFDC50Awu+GHPHDodLX08ct2rhU2j2GRC
 kRVEvXct1TwaQIO7ClaTxb60j3x+gdDR4bBsgw3jCpYRSnrKB0M+GimsyAFAlJecZtA0 JA== 
Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com
 (iadpaimrmta01.appoci.oracle.com [130.35.100.223])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y1nfr8bj7-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:52:07 +0000
Received: from pps.filterd
 (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1])
 by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 44AG47LS017786; Fri, 10 May 2024 16:52:07 GMT
Received: from nam10-mw2-obe.outbound.protection.outlook.com
 (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101])
 by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfq3qvb-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:52:07 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Gn+Y3kXTa/6LynmwY8o63hJsFpv7P/SdPN/ath3PXDX1I6pT70u9m7UJX1fteT0WLB2j2Hv8WRKkZfcsEpPZVATmRFQNwV0eBitxvpwUeWxQ3KDkMyxeePxcSmAuC0KfLjSD2y5UrwTVg8FaaVhrQMi72jg7ixR8qBJzgtLAoDk/WJ2dG67XIJ59N+wecnCGwIYSi8V8dmgwO41cFHZWbfb5Y+NN4xAmzokc4a7+HDlZQwDgVdeuuAq4H4JigUgSc/Da9PLE+F8WjAkoR7pKj2d5O8YUWu0Xxu3li8vbKouTF9nycbz/el9XphumN/3+YxBKOXndSsN7Nqu1X5dzMg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=L7JZNJPVq3OEKOzZuYAJ7QysAP8uN8Sb1ZCdGOVgmVs=;
 b=PLgws5p2o2U/rsYseNdl+OBpRwIrq36AwM1Vyec2V72SoQcKlfLbvyTghl2vSOqJ8hcKjYxQ/KBTDCOQbBXPjiO8+2YX6UTfWX8rcauljjXOb3i3TiEorwVtGopvcrtvYLh1bXfEvl6lywEMkbO4bYGhx5XDw4GZYUwAn/yOHCY1FZt74QbFIiIhbpAVDZz76TA0Q/eOO82EwkqKTAdcuxaHC9D9l5jUSgGUorRRpV+dEYr3exg5nlSzgzTgge6u+hDa57ZW20/THbMwg1VE2w+AlGI6PyKwCb+LUKb8aRpj3GZYHNNWhzuRicW90bU5giIEGZVTnyMi65GIAjL2sQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=L7JZNJPVq3OEKOzZuYAJ7QysAP8uN8Sb1ZCdGOVgmVs=;
 b=wG7Ni3/Ka4UX6ijXCylfzmhUD0Eu5kLnQ5NIXVQ6Og5xn+nP7ZowHJesihyHSI1g9OZQEzMAt0QWh0myZCOon+SjypLe+QILyW0xjYCafnXVpze//eTwinF19XibxIZNlt5kKq5x+aL+Gba3cvQg1g08StORQ6WN7SHC/7ZYOtM=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by IA1PR10MB7515.namprd10.prod.outlook.com (2603:10b6:208:450::12)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.49; Fri, 10 May
 2024 16:52:04 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.048; Fri, 10 May 2024
 16:52:04 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>, "Michael Heerdegen via Bug
 reports for GNU Emacs, the Swiss army knife of text editors"
 <bug-gnu-emacs@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaovphu87NZYrC1UyVsotVEvSM6Q==
Date: Fri, 10 May 2024 16:52:04 +0000
Message-ID: <SJ0PR10MB548808B6F68586B2CFF5855AF3E72@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN> <87h6f5ddc5.fsf@HIDDEN>
In-Reply-To: <87h6f5ddc5.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|IA1PR10MB7515:EE_
x-ms-office365-filtering-correlation-id: a89c7523-abdf-4067-09f5-08dc71118559
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|366007|376005|1800799015|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?0mpyJ5bby1Oxv8/+yDgs9xVmqJ5iLZFukkdoqUPGPRZcUhAk5kK0pWsRcBwP?=
 =?us-ascii?Q?DmM5tjmbmQVzW3n7hY1PXeB38yh4bxJ57qoqvi94VQfA6QYDvP85AhXZ+2GK?=
 =?us-ascii?Q?Z6I3MR5TB2MXg5w061eUzCGP1kacHDcjsKXJReUi7HHM5xigBx6+5ZSfLSDW?=
 =?us-ascii?Q?hPI2NbNq0C/7NAcg8DgksOBKoPPvWV1MrIMvS9kTAWqdQotYRIAgMaWtSzrO?=
 =?us-ascii?Q?dVIsLH26iGNIokTh4bcQuh0kLzvistl+NizGzorm7hDGdkhH7uvKvKxwTRuw?=
 =?us-ascii?Q?Jdwq1grh3ZfpZx9q33ZnmRb75iWzXLlB9M1EOKVJrbGNse98I61B9p6lhrQ9?=
 =?us-ascii?Q?8NN9UAL19xd50W6oTf88bRZlO3xQXEfTOro3fgYPFrwJnw5vl4OXVALPvksJ?=
 =?us-ascii?Q?VWc0S/x3Ki/bCr6gZiw+dj7v7/HKRk0QTqQM0BZhH3QmcMXFRDzPV6KDskgO?=
 =?us-ascii?Q?R3d0FpiZXeHiOs7MNqlEzzxgEyF9nU8xUWC10W7FNp1i/8m+i7dGhpoWwF8+?=
 =?us-ascii?Q?Vi0s6SlwpHATFu9HEpDbv9NIX7qa7sCeizcEQlqfEzjMVSu4anrS2PV79+MR?=
 =?us-ascii?Q?evUAtWm1K0w0J7+5Om+x8TYNVLp9VKHgxp+xHqEFsgugCYmwFTYV59Lbhos2?=
 =?us-ascii?Q?ix46uyHoKEkIhuE04RP6HoXjoPjtNbXjyvAzDcd+I0qy432RL2KHYkAWztWY?=
 =?us-ascii?Q?JKb4Yyywwgm1JCP4VNLaix8Cd3VE+5BOJpsQK5nBxHdP4/BmgwLer/qzKXbn?=
 =?us-ascii?Q?jmjBNs0N83m5pMwEqgqnLbHTUUWh1f4MwJGsJargbDqvp9gZhDoLmPSILnJM?=
 =?us-ascii?Q?LykJgkhBA+tcE054R5jN/Ce0SWoyeFlQBqyjU0Y9Dir+RDdG4Ge94Fww/0Bl?=
 =?us-ascii?Q?Lr4Z8QszW7UtOV10Y64/GTp65yqI3rCJv9BKS3yC2R0ui5yzJkL4Ldi/QxIr?=
 =?us-ascii?Q?Qf8TtEojOnsPziIcG5Myd16dRzFZ5P2MZ9CgDZJh15vsgaaX33Rx6V8a7UGJ?=
 =?us-ascii?Q?6aroo4Ae446FmPkpNqvbM6VRpNYxcjYA2GBOM8LUutwbdW5fdj95qfaf+L5G?=
 =?us-ascii?Q?n5QNTEjJQDjVMhn4c1iy7czp8xyTGkokC2qmtaKWmGzTbco7QgEN6MPyPci7?=
 =?us-ascii?Q?7aP/J8KO//2ldjK9MEWAnM1hybE0ybl7gPgZacWIlfcCWIS1Xi+fc0cYjuBr?=
 =?us-ascii?Q?In3zSvhDORHIwPKlE0WUy5+1EPvyWLAzy0lO7LELkWztFJ8LAGcKfehOMN5m?=
 =?us-ascii?Q?x+6EMOo14gQE5PexVISUJSJPA9jJF/er3oVhygVjsIKLegnJPg8xVO8VKkX4?=
 =?us-ascii?Q?9QocFkaiTbMeac/0s7CrVaZ6nMAWEmuALCxJ9YnoxsZrNw=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(366007)(376005)(1800799015)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?oeepdpAgrxDClHx7PXG88bEXzJschbIrGvN4NJAZSrbsFC8qrtwh/WwGLjh7?=
 =?us-ascii?Q?297Qf0SLbA4jCK5yifQrgvWEF99/wuHMxkRkC8l+u2HF3JEIoABcmLz6NqzP?=
 =?us-ascii?Q?tc7+ataAmFCYes5U8b3vaQuOtU6WiuUXFeoTrB4eqry4EHahxwpLEHei0h2p?=
 =?us-ascii?Q?wDxtXRV3dnLbTk6CJ5e8pjq0vjdUywaVdwmT4nSSJwhmBC8nY5aR1yG1c9Qd?=
 =?us-ascii?Q?HW0YMA9PcFNxNESvx89DgjhlRdtL13SnCKNtduu+/3SZLiwhhMCYN8pCCGD2?=
 =?us-ascii?Q?Si7x1C9LQtGmGi9hSxmp1dUA76TcM+jqnmjJCmZgW7C4v0j0rxfylMNsZ72l?=
 =?us-ascii?Q?001gVGROxLaoXh8lbzIw9+89MPIhIr0wRwkN3jHkLKpnpyCUqq+KXD8DigtV?=
 =?us-ascii?Q?sf4PmTYuE5h5ukvN/k7b2OCnevU3alyElJAYig//GBBCbYWRjUlje0a5mT9c?=
 =?us-ascii?Q?8TFsXYAq/S+AFUXRanT3i/xITghl3+ogwkFtqoNADjRzfo0OGqn4OFiMEC7e?=
 =?us-ascii?Q?DIdjkQ0SlCFgEz7apqoJlkPB7arT5stlaNHOb3occ8M6fGaWPMmu0mei3o8v?=
 =?us-ascii?Q?Vly3t2U62uZwZ/0ArD4622W4A2MljJvs+WTbD2CkPbkhSUYuPSZjagYSqCPf?=
 =?us-ascii?Q?N6eLe+dAucKeykhtAtbvtb/cZu3dtu/4Tn893DRxjYFFZ9xqZ1BMDQG85wAs?=
 =?us-ascii?Q?zuIWuM3hXv0SXQlX1B7+oD+l5W6SPyjnyqE31Y9dvVcfkmnfXpCNQLl2ZkGP?=
 =?us-ascii?Q?ixa9O/xk5IOzNzjmYcODh4m8dLgnmsEKdrJBTXwHPfBi80mHHIh96n2j2/2d?=
 =?us-ascii?Q?O79+PDTK2aFcSw003baaKLTYrZrhaUOHvvwINaerlIlTIHzlOdJWCSvXkZ2v?=
 =?us-ascii?Q?saga8PyAQqB/8cRKcHsFQSeS0YbineIubrFxW9zxoRVLPPcl3fmTWjKEooOH?=
 =?us-ascii?Q?DODTDDyy2Enw6m0mOQuoAkKO+Oj57LClDxpOeH/iyHtwGOkd4m8CNCr6+ZBg?=
 =?us-ascii?Q?nbYnjj6nD4nanmLlkoX2jDCszxxPuNhiXIaFyiH6wUho9T8+4txQAcOjpYgO?=
 =?us-ascii?Q?RH6TebxJUlbj3xq0nqoLH76sg6XqByGJgIF76vq1jgDYyF2OL4o6V/7WilIo?=
 =?us-ascii?Q?ff+sktGUfe3MVY1/kVdHQ02jTXxmE+gwddeg+SRZF5CI5Ft3y1LEnqDIA7xb?=
 =?us-ascii?Q?CRJ3CP0dLGxfbpjQ5JG09frLCkP99RfQvGlT2xskLroJGbdpk1edsXP8N1LM?=
 =?us-ascii?Q?DLVRqCiBOA1w0UHuDjL7gxbMSHEjQarKagCSV+SAY2VHSgC1LPlqCUzvdEw2?=
 =?us-ascii?Q?IITFhttIf6Tz5y3RAjiqpeJgcKV1B0AGtybJ3ZZNxSUPh6TpzyKX1tsjYZCu?=
 =?us-ascii?Q?AU/+BbBwHy9KRMqgu2U5eicsscjob1+3b2jc4DTdnp4NU+7r9ORdlmWmcd58?=
 =?us-ascii?Q?exqT0PBpNVMMm6v1FJqbAnvDwqMzQA2DEXmeLtxw7GAOlVnRk0aQ0GsyyWJ6?=
 =?us-ascii?Q?szZpc821jlMlWrhKTUA5kMsEBlVxnWOIdkURSTf9EUBKeOOkURDYbl6L/lWN?=
 =?us-ascii?Q?a5kbmtCcXqlhHr0QOm9YJV0Z2/MvV+kj1SoRShOO?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: CrAbn5qQXxCatZLK1Kr9/NAdLNcvO8uGqX00dKeo72hqJefmYegKk4dOmzwVmhorZJZZLxKv5ZrhSDvTNkn46r5+g/aW2Zt09lqE3dlmm29zmP0iLm3OBpPAwwI4BbuJuLnWKrtu7imFfXLMEaRMaPAx7kU9W2iUG94EcgrmDajGiMNFgU9MrTw6G5xT5DZ50Hl+ewMlnf3dkw1VFCF7tQgUF1uYVZQ3xTFxZIS04gEsj/LF+5FQsbBS616xvqoNB8OjqT5RHGZDAguXGL+4fm+6rR067sd+yF7E6Hmjn/ROauuI9PPWTbuulQ/3BOQledsjVqrp4kjqJ7tkW9qx9ijxhonxbWFp0tcMPOcLM4RB6oDj4VREkOOGXbKiMV8Pb6Ydk+WRdTeSniA8R0T6P+bjbOEzKCPciXxVyr1hSHemxbamlHWA4A03idYiB1k4WEAi+8w2pG1omzL5jrkvyMvP5KHfbZ6vy9ohamRBSxgWlDHvn/nD0mfOrQBX9AXddVg4I7L3nx0g/MYOQ//aiihRKN3F5CAYBdOFplP1dqS5hRwzVI1itNeJvjPGZUfe2Ekvrsp60Ro0gI0EVsaeKWjOfsYqoxxytkCrAXMJlk4=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a89c7523-abdf-4067-09f5-08dc71118559
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2024 16:52:04.5228 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: zERAPEa2Jzx4EhDu+WxtizJF61HZYrxkB7MBVVErAUwL5iIZM7d1588yHUjK8Gj5jk0RLi8h8BuwqMOFrDilXQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7515
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-10_12,2024-05-10_02,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0
 adultscore=0 malwarescore=0
 mlxlogscore=761 phishscore=0 mlxscore=0 suspectscore=0 spamscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000
 definitions=main-2405100122
X-Proofpoint-ORIG-GUID: 0JHF9twPFW_U7awUJsE_f_Q7gwfTP9k6
X-Proofpoint-GUID: 0JHF9twPFW_U7awUJsE_f_Q7gwfTP9k6
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "eliz@HIDDEN" <eliz@HIDDEN>
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: -1.7 (-)

> > > Not sure what you mean.  Even in vanilla Emacs,
> > > I think subdir insertion is supported.  E.g.:
> > >
> > > M-: (dired (list "foobar" "/tata/file.txt"
> > >                  "/toto/dir/" "/titi/"))
> >
> > Hmm, indeed, this works in -Q.  Seems one of my local hacks broke this
> > case.
>=20
> No no... not my fault: this does only work when starting from a buffer
> whose `default-directory' is a parent of the listed directories.  Else I
> get (in master emacs -Q) a buffer looking like
>=20
>  /home/micha/.config:
>   drwxr-xr-x 24 micha micha 4096 Nov 22 14:27 /home/micha/Treasure
>   drwxr-xr-x  4 micha micha 4096 Mai  7 17:38 /home/micha/bin
>=20
> and hitting i gives me the error "dired-insert-subdir-validate:
> /home/micha/Treasure/: Not in this directory tree".

Sorry, you're right; good point.

Dired+ redefines `dired-insert-subdir-validate'
to be a no-op, to allow inserting dirs that
aren't under `default-directory'.

And it redefines `dired-insert-subdir-newpos'
so that if arg NEW-DIR isn't a descendant of a
directory in the buffer then the new position
is at eob.

So if you load dired+.el in `emacs -Q' I think
you'll see that `i' on a directory line (any
directory line) will insert a listing of that
directory.

Or just evaluate the Dired+ definitions of
`dired-maybe-insert-subdir',
`dired-insert-subdir-validate', and
`dired-insert-subdir-newpos'.
___

However, including a nondirectory file (e.g.
"/tata/file.txt" in my example) does raise the
error, because `ls-lisp-insert-directory' tries
to insert it as a directory.  (I'm on Windows,
so ls-lisp is used.)

(file-error "Reading directory"
  "Directory doesn't exist or is inaccessible"
  "z:/path/to/the/file.txt")

(Something in my setup (but not Dired+) shows
the error message in *Messages* but doesn't
open the debugger for it.)

HTH.




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

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


Received: (at submit) by debbugs.gnu.org; 10 May 2024 16:52:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 12:52:15 2024
Received: from localhost ([127.0.0.1]:43014 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5TTi-0004Nt-Tf
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 12:52:15 -0400
Received: from lists.gnu.org ([209.51.188.17]:34202)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5TTh-0004Nn-HX
 for submit <at> debbugs.gnu.org; Fri, 10 May 2024 12:52:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5TTg-0004sh-Sl
 for bug-gnu-emacs@HIDDEN; Fri, 10 May 2024 12:52:12 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5TTe-0004Bj-5H; Fri, 10 May 2024 12:52:11 -0400
Received: from pps.filterd (m0246631.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 44AGiudt016246; Fri, 10 May 2024 16:52:08 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=L7JZNJPVq3OEKOzZuYAJ7QysAP8uN8Sb1ZCdGOVgmVs=;
 b=fduH0A57760Aww8G46m/EqNdZ9aBytDhoIxfX2YzgYSOCdu/0au7fQ/3UKMFhiuPc0OM
 3QSylPZ7o7JGsaocaLZwUF8nzJNz5FEjjlXrc61LOUYnSIh5ZOleEtk5VcRnXxux3CNh
 c/rNdITkS8RXUMzWTfI+rBdbc1fMFWcJEtc/XoCtP5tx5Plgu7850IOddpoGC+zLGmL/
 Mkpa+XUuTl1E2xh1WLZagHxAPBFKc5uSmmlaFDC50Awu+GHPHDodLX08ct2rhU2j2GRC
 kRVEvXct1TwaQIO7ClaTxb60j3x+gdDR4bBsgw3jCpYRSnrKB0M+GimsyAFAlJecZtA0 JA== 
Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com
 (iadpaimrmta01.appoci.oracle.com [130.35.100.223])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y1nfr8bj7-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:52:07 +0000
Received: from pps.filterd
 (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1])
 by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 44AG47LS017786; Fri, 10 May 2024 16:52:07 GMT
Received: from nam10-mw2-obe.outbound.protection.outlook.com
 (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101])
 by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfq3qvb-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:52:07 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Gn+Y3kXTa/6LynmwY8o63hJsFpv7P/SdPN/ath3PXDX1I6pT70u9m7UJX1fteT0WLB2j2Hv8WRKkZfcsEpPZVATmRFQNwV0eBitxvpwUeWxQ3KDkMyxeePxcSmAuC0KfLjSD2y5UrwTVg8FaaVhrQMi72jg7ixR8qBJzgtLAoDk/WJ2dG67XIJ59N+wecnCGwIYSi8V8dmgwO41cFHZWbfb5Y+NN4xAmzokc4a7+HDlZQwDgVdeuuAq4H4JigUgSc/Da9PLE+F8WjAkoR7pKj2d5O8YUWu0Xxu3li8vbKouTF9nycbz/el9XphumN/3+YxBKOXndSsN7Nqu1X5dzMg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=L7JZNJPVq3OEKOzZuYAJ7QysAP8uN8Sb1ZCdGOVgmVs=;
 b=PLgws5p2o2U/rsYseNdl+OBpRwIrq36AwM1Vyec2V72SoQcKlfLbvyTghl2vSOqJ8hcKjYxQ/KBTDCOQbBXPjiO8+2YX6UTfWX8rcauljjXOb3i3TiEorwVtGopvcrtvYLh1bXfEvl6lywEMkbO4bYGhx5XDw4GZYUwAn/yOHCY1FZt74QbFIiIhbpAVDZz76TA0Q/eOO82EwkqKTAdcuxaHC9D9l5jUSgGUorRRpV+dEYr3exg5nlSzgzTgge6u+hDa57ZW20/THbMwg1VE2w+AlGI6PyKwCb+LUKb8aRpj3GZYHNNWhzuRicW90bU5giIEGZVTnyMi65GIAjL2sQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=L7JZNJPVq3OEKOzZuYAJ7QysAP8uN8Sb1ZCdGOVgmVs=;
 b=wG7Ni3/Ka4UX6ijXCylfzmhUD0Eu5kLnQ5NIXVQ6Og5xn+nP7ZowHJesihyHSI1g9OZQEzMAt0QWh0myZCOon+SjypLe+QILyW0xjYCafnXVpze//eTwinF19XibxIZNlt5kKq5x+aL+Gba3cvQg1g08StORQ6WN7SHC/7ZYOtM=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by IA1PR10MB7515.namprd10.prod.outlook.com (2603:10b6:208:450::12)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.49; Fri, 10 May
 2024 16:52:04 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.048; Fri, 10 May 2024
 16:52:04 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>, "Michael Heerdegen via Bug
 reports for GNU Emacs, the Swiss army knife of text editors"
 <bug-gnu-emacs@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaovphu87NZYrC1UyVsotVEvSM6Q==
Date: Fri, 10 May 2024 16:52:04 +0000
Message-ID: <SJ0PR10MB548808B6F68586B2CFF5855AF3E72@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN> <87h6f5ddc5.fsf@HIDDEN>
In-Reply-To: <87h6f5ddc5.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|IA1PR10MB7515:EE_
x-ms-office365-filtering-correlation-id: a89c7523-abdf-4067-09f5-08dc71118559
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|366007|376005|1800799015|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?0mpyJ5bby1Oxv8/+yDgs9xVmqJ5iLZFukkdoqUPGPRZcUhAk5kK0pWsRcBwP?=
 =?us-ascii?Q?DmM5tjmbmQVzW3n7hY1PXeB38yh4bxJ57qoqvi94VQfA6QYDvP85AhXZ+2GK?=
 =?us-ascii?Q?Z6I3MR5TB2MXg5w061eUzCGP1kacHDcjsKXJReUi7HHM5xigBx6+5ZSfLSDW?=
 =?us-ascii?Q?hPI2NbNq0C/7NAcg8DgksOBKoPPvWV1MrIMvS9kTAWqdQotYRIAgMaWtSzrO?=
 =?us-ascii?Q?dVIsLH26iGNIokTh4bcQuh0kLzvistl+NizGzorm7hDGdkhH7uvKvKxwTRuw?=
 =?us-ascii?Q?Jdwq1grh3ZfpZx9q33ZnmRb75iWzXLlB9M1EOKVJrbGNse98I61B9p6lhrQ9?=
 =?us-ascii?Q?8NN9UAL19xd50W6oTf88bRZlO3xQXEfTOro3fgYPFrwJnw5vl4OXVALPvksJ?=
 =?us-ascii?Q?VWc0S/x3Ki/bCr6gZiw+dj7v7/HKRk0QTqQM0BZhH3QmcMXFRDzPV6KDskgO?=
 =?us-ascii?Q?R3d0FpiZXeHiOs7MNqlEzzxgEyF9nU8xUWC10W7FNp1i/8m+i7dGhpoWwF8+?=
 =?us-ascii?Q?Vi0s6SlwpHATFu9HEpDbv9NIX7qa7sCeizcEQlqfEzjMVSu4anrS2PV79+MR?=
 =?us-ascii?Q?evUAtWm1K0w0J7+5Om+x8TYNVLp9VKHgxp+xHqEFsgugCYmwFTYV59Lbhos2?=
 =?us-ascii?Q?ix46uyHoKEkIhuE04RP6HoXjoPjtNbXjyvAzDcd+I0qy432RL2KHYkAWztWY?=
 =?us-ascii?Q?JKb4Yyywwgm1JCP4VNLaix8Cd3VE+5BOJpsQK5nBxHdP4/BmgwLer/qzKXbn?=
 =?us-ascii?Q?jmjBNs0N83m5pMwEqgqnLbHTUUWh1f4MwJGsJargbDqvp9gZhDoLmPSILnJM?=
 =?us-ascii?Q?LykJgkhBA+tcE054R5jN/Ce0SWoyeFlQBqyjU0Y9Dir+RDdG4Ge94Fww/0Bl?=
 =?us-ascii?Q?Lr4Z8QszW7UtOV10Y64/GTp65yqI3rCJv9BKS3yC2R0ui5yzJkL4Ldi/QxIr?=
 =?us-ascii?Q?Qf8TtEojOnsPziIcG5Myd16dRzFZ5P2MZ9CgDZJh15vsgaaX33Rx6V8a7UGJ?=
 =?us-ascii?Q?6aroo4Ae446FmPkpNqvbM6VRpNYxcjYA2GBOM8LUutwbdW5fdj95qfaf+L5G?=
 =?us-ascii?Q?n5QNTEjJQDjVMhn4c1iy7czp8xyTGkokC2qmtaKWmGzTbco7QgEN6MPyPci7?=
 =?us-ascii?Q?7aP/J8KO//2ldjK9MEWAnM1hybE0ybl7gPgZacWIlfcCWIS1Xi+fc0cYjuBr?=
 =?us-ascii?Q?In3zSvhDORHIwPKlE0WUy5+1EPvyWLAzy0lO7LELkWztFJ8LAGcKfehOMN5m?=
 =?us-ascii?Q?x+6EMOo14gQE5PexVISUJSJPA9jJF/er3oVhygVjsIKLegnJPg8xVO8VKkX4?=
 =?us-ascii?Q?9QocFkaiTbMeac/0s7CrVaZ6nMAWEmuALCxJ9YnoxsZrNw=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(366007)(376005)(1800799015)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?oeepdpAgrxDClHx7PXG88bEXzJschbIrGvN4NJAZSrbsFC8qrtwh/WwGLjh7?=
 =?us-ascii?Q?297Qf0SLbA4jCK5yifQrgvWEF99/wuHMxkRkC8l+u2HF3JEIoABcmLz6NqzP?=
 =?us-ascii?Q?tc7+ataAmFCYes5U8b3vaQuOtU6WiuUXFeoTrB4eqry4EHahxwpLEHei0h2p?=
 =?us-ascii?Q?wDxtXRV3dnLbTk6CJ5e8pjq0vjdUywaVdwmT4nSSJwhmBC8nY5aR1yG1c9Qd?=
 =?us-ascii?Q?HW0YMA9PcFNxNESvx89DgjhlRdtL13SnCKNtduu+/3SZLiwhhMCYN8pCCGD2?=
 =?us-ascii?Q?Si7x1C9LQtGmGi9hSxmp1dUA76TcM+jqnmjJCmZgW7C4v0j0rxfylMNsZ72l?=
 =?us-ascii?Q?001gVGROxLaoXh8lbzIw9+89MPIhIr0wRwkN3jHkLKpnpyCUqq+KXD8DigtV?=
 =?us-ascii?Q?sf4PmTYuE5h5ukvN/k7b2OCnevU3alyElJAYig//GBBCbYWRjUlje0a5mT9c?=
 =?us-ascii?Q?8TFsXYAq/S+AFUXRanT3i/xITghl3+ogwkFtqoNADjRzfo0OGqn4OFiMEC7e?=
 =?us-ascii?Q?DIdjkQ0SlCFgEz7apqoJlkPB7arT5stlaNHOb3occ8M6fGaWPMmu0mei3o8v?=
 =?us-ascii?Q?Vly3t2U62uZwZ/0ArD4622W4A2MljJvs+WTbD2CkPbkhSUYuPSZjagYSqCPf?=
 =?us-ascii?Q?N6eLe+dAucKeykhtAtbvtb/cZu3dtu/4Tn893DRxjYFFZ9xqZ1BMDQG85wAs?=
 =?us-ascii?Q?zuIWuM3hXv0SXQlX1B7+oD+l5W6SPyjnyqE31Y9dvVcfkmnfXpCNQLl2ZkGP?=
 =?us-ascii?Q?ixa9O/xk5IOzNzjmYcODh4m8dLgnmsEKdrJBTXwHPfBi80mHHIh96n2j2/2d?=
 =?us-ascii?Q?O79+PDTK2aFcSw003baaKLTYrZrhaUOHvvwINaerlIlTIHzlOdJWCSvXkZ2v?=
 =?us-ascii?Q?saga8PyAQqB/8cRKcHsFQSeS0YbineIubrFxW9zxoRVLPPcl3fmTWjKEooOH?=
 =?us-ascii?Q?DODTDDyy2Enw6m0mOQuoAkKO+Oj57LClDxpOeH/iyHtwGOkd4m8CNCr6+ZBg?=
 =?us-ascii?Q?nbYnjj6nD4nanmLlkoX2jDCszxxPuNhiXIaFyiH6wUho9T8+4txQAcOjpYgO?=
 =?us-ascii?Q?RH6TebxJUlbj3xq0nqoLH76sg6XqByGJgIF76vq1jgDYyF2OL4o6V/7WilIo?=
 =?us-ascii?Q?ff+sktGUfe3MVY1/kVdHQ02jTXxmE+gwddeg+SRZF5CI5Ft3y1LEnqDIA7xb?=
 =?us-ascii?Q?CRJ3CP0dLGxfbpjQ5JG09frLCkP99RfQvGlT2xskLroJGbdpk1edsXP8N1LM?=
 =?us-ascii?Q?DLVRqCiBOA1w0UHuDjL7gxbMSHEjQarKagCSV+SAY2VHSgC1LPlqCUzvdEw2?=
 =?us-ascii?Q?IITFhttIf6Tz5y3RAjiqpeJgcKV1B0AGtybJ3ZZNxSUPh6TpzyKX1tsjYZCu?=
 =?us-ascii?Q?AU/+BbBwHy9KRMqgu2U5eicsscjob1+3b2jc4DTdnp4NU+7r9ORdlmWmcd58?=
 =?us-ascii?Q?exqT0PBpNVMMm6v1FJqbAnvDwqMzQA2DEXmeLtxw7GAOlVnRk0aQ0GsyyWJ6?=
 =?us-ascii?Q?szZpc821jlMlWrhKTUA5kMsEBlVxnWOIdkURSTf9EUBKeOOkURDYbl6L/lWN?=
 =?us-ascii?Q?a5kbmtCcXqlhHr0QOm9YJV0Z2/MvV+kj1SoRShOO?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: CrAbn5qQXxCatZLK1Kr9/NAdLNcvO8uGqX00dKeo72hqJefmYegKk4dOmzwVmhorZJZZLxKv5ZrhSDvTNkn46r5+g/aW2Zt09lqE3dlmm29zmP0iLm3OBpPAwwI4BbuJuLnWKrtu7imFfXLMEaRMaPAx7kU9W2iUG94EcgrmDajGiMNFgU9MrTw6G5xT5DZ50Hl+ewMlnf3dkw1VFCF7tQgUF1uYVZQ3xTFxZIS04gEsj/LF+5FQsbBS616xvqoNB8OjqT5RHGZDAguXGL+4fm+6rR067sd+yF7E6Hmjn/ROauuI9PPWTbuulQ/3BOQledsjVqrp4kjqJ7tkW9qx9ijxhonxbWFp0tcMPOcLM4RB6oDj4VREkOOGXbKiMV8Pb6Ydk+WRdTeSniA8R0T6P+bjbOEzKCPciXxVyr1hSHemxbamlHWA4A03idYiB1k4WEAi+8w2pG1omzL5jrkvyMvP5KHfbZ6vy9ohamRBSxgWlDHvn/nD0mfOrQBX9AXddVg4I7L3nx0g/MYOQ//aiihRKN3F5CAYBdOFplP1dqS5hRwzVI1itNeJvjPGZUfe2Ekvrsp60Ro0gI0EVsaeKWjOfsYqoxxytkCrAXMJlk4=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a89c7523-abdf-4067-09f5-08dc71118559
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2024 16:52:04.5228 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: zERAPEa2Jzx4EhDu+WxtizJF61HZYrxkB7MBVVErAUwL5iIZM7d1588yHUjK8Gj5jk0RLi8h8BuwqMOFrDilXQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7515
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-10_12,2024-05-10_02,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0
 adultscore=0 malwarescore=0
 mlxlogscore=761 phishscore=0 mlxscore=0 suspectscore=0 spamscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000
 definitions=main-2405100122
X-Proofpoint-ORIG-GUID: 0JHF9twPFW_U7awUJsE_f_Q7gwfTP9k6
X-Proofpoint-GUID: 0JHF9twPFW_U7awUJsE_f_Q7gwfTP9k6
Received-SPF: pass client-ip=205.220.177.32;
 envelope-from=drew.adams@HIDDEN; helo=mx0b-00069f02.pphosted.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "eliz@HIDDEN" <eliz@HIDDEN>
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.3 (--)

> > > Not sure what you mean.  Even in vanilla Emacs,
> > > I think subdir insertion is supported.  E.g.:
> > >
> > > M-: (dired (list "foobar" "/tata/file.txt"
> > >                  "/toto/dir/" "/titi/"))
> >
> > Hmm, indeed, this works in -Q.  Seems one of my local hacks broke this
> > case.
>=20
> No no... not my fault: this does only work when starting from a buffer
> whose `default-directory' is a parent of the listed directories.  Else I
> get (in master emacs -Q) a buffer looking like
>=20
>  /home/micha/.config:
>   drwxr-xr-x 24 micha micha 4096 Nov 22 14:27 /home/micha/Treasure
>   drwxr-xr-x  4 micha micha 4096 Mai  7 17:38 /home/micha/bin
>=20
> and hitting i gives me the error "dired-insert-subdir-validate:
> /home/micha/Treasure/: Not in this directory tree".

Sorry, you're right; good point.

Dired+ redefines `dired-insert-subdir-validate'
to be a no-op, to allow inserting dirs that
aren't under `default-directory'.

And it redefines `dired-insert-subdir-newpos'
so that if arg NEW-DIR isn't a descendant of a
directory in the buffer then the new position
is at eob.

So if you load dired+.el in `emacs -Q' I think
you'll see that `i' on a directory line (any
directory line) will insert a listing of that
directory.

Or just evaluate the Dired+ definitions of
`dired-maybe-insert-subdir',
`dired-insert-subdir-validate', and
`dired-insert-subdir-newpos'.
___

However, including a nondirectory file (e.g.
"/tata/file.txt" in my example) does raise the
error, because `ls-lisp-insert-directory' tries
to insert it as a directory.  (I'm on Windows,
so ls-lisp is used.)

(file-error "Reading directory"
  "Directory doesn't exist or is inaccessible"
  "z:/path/to/the/file.txt")

(Something in my setup (but not Dired+) shows
the error message in *Messages* but doesn't
open the debugger for it.)

HTH.




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

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


Received: (at submit) by debbugs.gnu.org; 10 May 2024 16:52:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 12:52:08 2024
Received: from localhost ([127.0.0.1]:43006 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5TTb-0004NU-Fy
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 12:52:08 -0400
Received: from lists.gnu.org ([209.51.188.17]:36618)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5TTY-0004NL-P6
 for submit <at> debbugs.gnu.org; Fri, 10 May 2024 12:52:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5TTW-0004pM-J8
 for bug-gnu-emacs@HIDDEN; Fri, 10 May 2024 12:52:04 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5TTS-00049W-Hn; Fri, 10 May 2024 12:52:02 -0400
Received: from pps.filterd (m0246632.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 44AGj5H6000893; Fri, 10 May 2024 16:51:54 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=qTe4x0aP1RpaXQJ1HZaqfxSAV4NTiJf162oKWsKpXkw=;
 b=DKxD20ZTR/LAu2rDgGnkUSoQ50GU6FBEmjDTiVsSMUOnRZu3ZwwcC5Kvp9yoPzCbl/pW
 D+LQh7QpnVYncn1hHEA6QIdD1B/lyIqiN1oz7ibwtjAgdIvavH/sNa946A3gNe+1X4s8
 VIAnbwgCtecO8o6DGfsch3zhWQF5VU2Y8hH2D4JPC+Zi/4e5TZ3pQvSeIJbVq9L3Ul8R
 +03i3/5HcSQZwrEpcUVH4NsvZZjaCBK4OQKstb4wXeA+XhUXxVldB9Dwp0Ev3PxcrPUQ
 iphB6lK+Pa9oSGkBDGm9EdgoYJeywlekSwzJTrlI4lth53z2B+nhpYs6FeKKK8Uj7lEi dQ== 
Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com
 (iadpaimrmta02.appoci.oracle.com [147.154.18.20])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y1pgw04mn-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:51:54 +0000
Received: from pps.filterd
 (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1])
 by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 44AGBkr7021427; Fri, 10 May 2024 16:51:53 GMT
Received: from nam10-mw2-obe.outbound.protection.outlook.com
 (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100])
 by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfsc7ga-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:51:53 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=DA5JT+QXWzvcWaZ+iXR8ue1otuRivtj1BS7TyK1JDzZdUzpcjCH4jgGxV+D0zsmEqbum5bqqlJqSFqz5YuO4jHFTVMzjrSOuSSBgrFI0YxmIVbZhJ4NGXwJs76G7OqXbj7/nzoZWxVgNSJCBeUffukvgRTIP73gIsPzFz2NXR8GtOlNDQKso/E7c3kWeUGQ/BLZqt5+12DTPOCqJJy5fugBS4gJ2iJ+Y4tqZpwNgwG560iPoIZtYRtcrRYbzg9ZWT9hADTt08z+vHGoRL9Xi1S032cqvmAiEcZeTe0N8NPKX+Al3Gxw5FLPNJKC3d3gICEv0V5LzXRofWoEnjgeb8A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=qTe4x0aP1RpaXQJ1HZaqfxSAV4NTiJf162oKWsKpXkw=;
 b=OTMEkfWRQmkf+OTCeGRBFl9kwaRIFPwnpby+WMufFj/gwozKNvN2g/u8n+TaFnCLI0ojuvbzTnIStwCWYbBwtE2yxbnNPN7qYjnk+IdF91qikCK0a/4Gw0GoRj8hhPf//+XGsP4V2sA5HYI7Ipp+EiUabvtudn03SQ44w49i+IAHZmK8kCh4b175HYXDopmhcnLbKOtj6HjLvjXJUEzgb3H3+LyR7awVD8yNK3IX83QitGKA9/Tj2ZBdvVPr96NTdrfjn7BYweVUpS1c8NxcmFsc852IFkGDeqzIrN3k7Mt4IQMPxMYtX6/l8DSqdxW1XxISNt7F6ZkWYgVKyHT3LQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=qTe4x0aP1RpaXQJ1HZaqfxSAV4NTiJf162oKWsKpXkw=;
 b=wVMuCqzpZ8x0TIzE2vo1FZtfSFmpHFoo0kid/DMUd5W115FW7xKUq179Sng4WMnQ07PqcRVXVzO+Txw6mvohgI+VIfB0s0HJDWJbq1r8ciT4D/CcKBHmTAzYO0pepDLNmedNaP2CrbQ0Vz2KhQVRAJd/evqz4Y1hvBjzyu+PqIQ=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by IA1PR10MB7515.namprd10.prod.outlook.com (2603:10b6:208:450::12)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.49; Fri, 10 May
 2024 16:51:51 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.048; Fri, 10 May 2024
 16:51:50 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaotlbu87NZYrC1UyVsotVEvSM6bGQiU2w
Date: Fri, 10 May 2024 16:51:50 +0000
Message-ID: <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
In-Reply-To: <87msoxddw7.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|IA1PR10MB7515:EE_
x-ms-office365-filtering-correlation-id: 4c650c66-0174-4c14-55f3-08dc71117d30
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|366007|376005|1800799015|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?1HsyMxBjwqS4T7pWt4+H/ad0/1kqLe4shKtjTgoddNvwpLYUQN2845JWPXB1?=
 =?us-ascii?Q?51uSBfEEnGG4tN33sc5d7wfx/NmPD/fTmhdLUmyZp1owXm2PKkyOtdkt/JuL?=
 =?us-ascii?Q?exf+bXxofIy19lTr8xtKQcqwx2NWI5OeUFWh1iLzTpu9Z5btHQrleFavqBPN?=
 =?us-ascii?Q?B01tYkLW04eff2YrtIQMJtH6tWgvo6y4jsH4tAWuKSYhQxI+J9LP8paviwOh?=
 =?us-ascii?Q?1DCb5kGG+HTlzTT7V9oLnFtKCFRh7DVRzl5jgy+9PBL4J40g14VzQUXdY/Z8?=
 =?us-ascii?Q?L8BAOH/+vN0M1g3ynlpZqUa+Gw2gkaRQ9mX7Xtg2sKnYLBk9+X3DLb15oAm1?=
 =?us-ascii?Q?gMoK5XZ1eYVLKazkb7ycsHFUcSP95HA/UjUPN+wFWubf+gkqfaWfXF36aFKN?=
 =?us-ascii?Q?N46WurGMq3GMmCUR4muDH660kqYW4XQcpAnGD4uOyvXlSUi1Fbt0vZ2w89tE?=
 =?us-ascii?Q?oBrWjzJAk9bS812lA01ez2ipKw8Gww5p9DdrwSjcbURoWVQl7MBt4aSm6EkO?=
 =?us-ascii?Q?GuLSyg/kYoPnqKHRUTuF+EyllIDqD1vM8fQGkkNRmHVSKh625dK9nmBs6YDI?=
 =?us-ascii?Q?aOmF9GnYMx8+TNJM9iZn2VgM0lpFRFR1nAc502bBE8rHQIMLG2TAqXE8FbC4?=
 =?us-ascii?Q?XDtuEwmUA6ZWUZidt3XOq2WeYrNcELjHrAlvdkY+jCimSuAFYgw6/opGslct?=
 =?us-ascii?Q?CuVjsVadfR+ETPfK69NParpExYlVHGaxpwIBNjpiLWME97Q9h6IdRWgvbPoz?=
 =?us-ascii?Q?YIqe7J/hVDOYPNAboD+wGU/xNuYu03BEHGS8eX1+ul1PmRdklsxYwMPYyY7j?=
 =?us-ascii?Q?dEwYBqgYxNhNKsE8jhxD9dj6coSRANfvTFKi64ekiDjmfbmPfIYc71YHppq0?=
 =?us-ascii?Q?KLYFNdI7DowmIabATrb7VM2XQzfjO51Sb1I5mQHj9ysfXarHjvPX4wpHjyKh?=
 =?us-ascii?Q?N+ro7BLgkbuDi0s94EbXUO0fgboNx/MbOsvah2n9K4+AdesDpdGfjnEolE4J?=
 =?us-ascii?Q?7pYAUTrEC9/b/aX88Zvc5EkYzh1iwQpxT7lPZWK9JXCqAtYHrBgf9eRc+0AJ?=
 =?us-ascii?Q?4nCn9jxWDxlKGflXKA21smZwQFn+0zzaMNY6XA2kcisUCqr5LPtGDwcOrfgh?=
 =?us-ascii?Q?offwu7KpFN4xs6RYa+SlyXJcY3wjyrraoxuNHXB7ntDK5tnwMi4F7XKl7onU?=
 =?us-ascii?Q?mJajMyAca/RdAbSOJZjGqzhewueGEfHDTLew8Yr/3wex8QPmb9MTIif5TlsK?=
 =?us-ascii?Q?LjnZcpgfrATAOjIb54++hnsqRVu81DbQR4N9iZvGuw=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(366007)(376005)(1800799015)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hdpoQiuv/GfzL3DxFmsD6NK5usHwzkFEk6NoLbkafulTDH2B9f+ozg1VkEG7?=
 =?us-ascii?Q?gNLwd+uxrvzg4WzU+BpKoMmtAXvRtL4d9ewr85kyO8FQQj05XlPbkyhf/2R6?=
 =?us-ascii?Q?8jAKgMK8grK1xaSJyWGtEW1DxL7Plyu7fXpscdOVLjBRWNQR2eDPtYtboD/h?=
 =?us-ascii?Q?N6oHn4ifIj3aYLt7whabAtpjkb1KykqEgEzw+p7qa6/HSV2QN5Ib/FSunVSu?=
 =?us-ascii?Q?/w+h8ufsKhSynKm/ybFxZSbnXvTWtWraPgmHelTo6Vjahoc34RCWly8SBIlH?=
 =?us-ascii?Q?SGeIo0KPYip0sm0mox6I17E3WcCpecWsaVUYXtOWAqmXvQ1GgSAXnxog0Y+R?=
 =?us-ascii?Q?8HyLU5DrMqkP86E9c0M1BGEUmDvtgryo3uPqPJDeb3D3r1FCLRLRSbf8IXaD?=
 =?us-ascii?Q?Jri7Cfw/Zq40skvDgJs/rz1X+Tlyb/QTKoHNBpsPRKStkzOiRUhw8G/C4KhT?=
 =?us-ascii?Q?JfiswZFsG/avcqLOegMstGOzr2T2lw5U5tKiTCl7skcC7Iu4NnfW8ip4YGvF?=
 =?us-ascii?Q?zE5Id1L0aQb9cUYRjTyIFyaF95ADcIqX+Cu7y2SYQ5D6B4VCG2SZ2vL6AKEE?=
 =?us-ascii?Q?GOoGs9wTs4m1d81lhEGb+j3WviBLm3zjhkGjiY5mIk68+OHXqRf44uYMgrQy?=
 =?us-ascii?Q?HhvG7qEkBIg96+Xm1W3s92l/Ui3LQjfrsy49qrlAGQuVu+SB0QB1eQQALwC7?=
 =?us-ascii?Q?1MjOD6n3Tmg1VY0w50t2rwO6ejB0LXYDQLKRNDBKRivYaemI4SbaYdnrkzsP?=
 =?us-ascii?Q?vuokB/LweZVZptXU0W8KFOo+D8ElMEU1nn9VakwtWez+y5j1yjpNhh+5HeAa?=
 =?us-ascii?Q?YP/LRaukzgyrsX5yWUWZX2QJLGXd/HjeOHNpShp+UiGXIC+lLz/dCrO4XIh2?=
 =?us-ascii?Q?g3W0qlfBtYjNa7s8cUUG58boSFeCRUfvV1wPSYduLMTtIc1oXUeP+9cTY4q8?=
 =?us-ascii?Q?kNK24co90bBi8FP4we57oc9iPK1uJWmqzp+lx3qj05Ut+GrtKSAYQaIADFIr?=
 =?us-ascii?Q?b4ALdL89Dg1LUfFZ+EnpgQ3AR99cVqr+naj0cHUEny4mpUyKLgTCNa4pY7nk?=
 =?us-ascii?Q?uyY4QrOBVfgWQyBAgjwZE4y5qmqD1MIGgdllSK6GDs1/ZujBcVLAqrPtMjbz?=
 =?us-ascii?Q?bJcs0jcQluA9NZYeI9KfvqGHSkwk+u0cEpyNQuz291GpRJti5bT2SDWS6nRv?=
 =?us-ascii?Q?/kHYnAKtNcu9Az1b4YB1mSQtnc5C+E8HAcxfUDZQxXeCfFLtr8LoLW3gptbS?=
 =?us-ascii?Q?Lkc22PNBO2dIs6wt2S3ZhtYvkjNRdsxOOnC/cHhwA6ZaxdQtolc7uDRm59Ui?=
 =?us-ascii?Q?uyErYcxQXlXBcaWv7nOyMIgedj9DwtTbPWzykwCo2vJgvzFPXY2Uy2gtUqm4?=
 =?us-ascii?Q?mW8jMl6X90pa3+qJS1rnFqrIDum/3Bqjmh6AZTH0qENpCbAbapWa4a9RTWrR?=
 =?us-ascii?Q?0QtTdNmHjSesSqgffiQ07Km+7SN4SxrVYMw02lZ8QidOFRdg4aIEL/MKhXsH?=
 =?us-ascii?Q?UPAM/CuhSi0JCluBzmDkmPyxtnFq/1jmDTx1ffqUaTwufSRweh2wHujn3mva?=
 =?us-ascii?Q?w90bJ3JQd6BfEndwnZVfZFZS0rw/JNWSlfjiFDtQ?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: UShA5C+mJtbFP5Kx4CSoWEQzImMmOGfGJUfVZPOwZyYbpgnrp8oI9ljDzWo+Ic1Bu0GFl0NqItmDPWOFNpJ9rLieYnHgg8YWF7LrYMcl7cyKOkEzaS+ebhPm3zta7jllcQHc4nE22iwXnwRVTD/m7S153xbzouE9XAiQYBhBxKnKlqyLqSZiKBOXd2SphQI974uKnyy4APGJB8ZC5WkeMRkP57lEt/ILyvsE4Me64yddfFpoS8R+DngAEuEZJMquL5bSaMGYOoqQjY2SuO9X/cdvV1nAs/vJHxtxmX/zl9ZAJhkE8ArKcKfzmACMYX1t7fi3ckUuU7pOXBv2YSupT8eNUDUX+5dR61sVlLvro1WDwKBGFsyw8Kjw4kSZYKJvt54sm2ylxGB7gAbBNyBgXbNhGyMa0qyl4k2Vg0WlJss4dZFA9mIu7d6v7sTPobl8uAif4xsll8pdLXOex/eQVzvP8+m57KiyDvGnrupk+v5BKseDNfWV7Qq8VUW9NIIFutMTHpx5XMBRBSEyB0Ep/OD/tm15ediKeEWjf2f6o5fvGJnUpXl4dOffi0OAqsfsBoyXv8wW+NosVgrSUxSZyR87QbLeilC7BD7KW2Pw2qc=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 4c650c66-0174-4c14-55f3-08dc71117d30
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2024 16:51:50.7889 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: rH6/OrtAFDQkIi4MeYmEHQjOzg7diVSC407ffMiY6+2LoX4zRETKRFEtwRNQOOwXhU4DmBD27+8L1LX6naIrmA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7515
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-10_12,2024-05-10_02,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
 bulkscore=0 suspectscore=0
 mlxscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000
 definitions=main-2405100122
X-Proofpoint-ORIG-GUID: nPvyfNrpLNWXBEu1RWVkOtY1_1nWJDS9
X-Proofpoint-GUID: nPvyfNrpLNWXBEu1RWVkOtY1_1nWJDS9
Received-SPF: pass client-ip=205.220.177.32;
 envelope-from=drew.adams@HIDDEN; helo=mx0b-00069f02.pphosted.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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.3 (--)

> > But the car of a cons `dired-directory' isn't
> > necessarily a directory name or any file name.
> > It's just a string used as the Dired buffer
> > name.  (Often it is a directory name, but it
> > need not be.)
>=20
> That's exactly the kind of problem why I have CC'd you.
>=20
> Is this a documented feature, however?

No, I don't think so.  But very little is said
in any doc about Dired listings of arbitrary
files (i.e., the cons `dired-directory' case).

Even in the code very little is said about it.

> Heard about it (from you).  But
> `dired-noselect' doesn't seem to handle or support this case at all, at
> least not specifically, although the code doesn't error in this case.

Dunno much about that, or I don't recall what
I might have known about it; sorry.

But note this comment in the code for
`dired-internal-noselect' (in dired.el):

;; We can do this unconditionally
;; because dired-noselect ensures that the name
;; is passed in directory name syntax
;; if it was the name of a directory at all.
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Whether doc'd or commented or not, it's pretty
clear to me that the any-string (i.e., non-dir)
case for the car of `dired-directory' was
expected/intended from the outset, even if it's
not always respected (taken into account).

Someone (maybe Sebastian Kremer) provided for
it, from the outset.=20

And even if that weren't the case, that's the
behavior.

To me, it makes sense.  If a listing can list
files and dirs from anywhere - not even the
same file-system hierarchy, then clearly the
name of the Dired buffer isn't necessarily a
directory name.

Or, put differently, whatever its name, the
listed files and dirs don't necessarily "belong"
to any particular directory - they need not even
have a common ancestor (at least in Dired+ - see
my other reply to you today).

I agree that the cons case isn't as fully
supported or fleshed out as the straightforward
single-directory case.

In particular, there's no _interactive_ support
for it, i.e., no way for users to interactively
create a Dired buffer listing arbitrary files
and dirs.  (Dired+ does let users do that, in
multiple ways.)

> I can only find places in the documentation where the
> car is described or referred to as "directory name".

Yes, I know.  As I say, AFAIK the cons case was
never fully developed, especially at the user
level (e.g. interactive use).

> Could you please briefly refresh my knowledge about this use
> case?  Does Vanilla Emacs somewhere make use of this case?

No, not that I know of.  I think I discovered it
by accident.  This isn't the only thing in Dired
that's not particularly well-known/advertised,
but it might be the main such thing that wasn't
ever fully exploited/developed.

Apart from WDired, I don't think much in the way
of _features_ has been added to Dired since its
beginning.  I think most work on the code has
been essentially maintenance.

I have no doubt that there are hidden/unknown
corners concerning the use of arbitrary Dired
listings.  Someday maybe someone will dig in and
develop it more thoroughly.
___

FWIW, this is my take (for Dired+) on how a Dired
listing of arbitrary files and dirs can be used,
including caveats about side-band modifications
(e.g. renaming, addition, and deletion of files
originally listed).  It's from the dired+.el
Commentary.  HTH.
_________________


Dired Snapshot Listings: Arbitrary Files and Dirs From Anywhere
---------------------------------------------------------------

Suppose you use a command such as `find-name-dired', to generate a
Dired buffer that lists files from various places.  The search
part of that operation might take a long time.

And suppose that you later want to get back to such a listing,
even if that buffer no longer exists.  In particular, maybe you
want to get to it in another Emacs session.

And suppose that you don't want to pay the penalty of performing
the `find' search again, and you're content with the set of file
names found by the original search.  That is, you don't care
whether that set of names is still 100% up-to-date.

In such a context you want, in effect, to create a Dired buffer
snapshot of some sort - you want to record the set of names that
your search found, and later use them again in Dired.

Dired+ gives you two ways to do this.  Both involve first creating
a Dired buffer that's produced from an explicit set of file names,
from anywhere, rather than one that's produced using `ls' or
similar, and then saving that set of file names for re-creating
such a Dired buffer later.

1. Use `C-M-*' (`diredp-marked-other-window') or `diredp-marked',
   to create a snapshot Dired buffer.  Then bookmark that buffer.
   Just jump to the bookmark to restore the snapshot buffer.

2. Use command `diredp-define-snapshot-dired-commands', to create
   two commands (for same-window and other-window) that will
   create a snapshot Dired buffer.  Save the `defun's of those
   commands to your init file, for persistent access.

The saved set of files, whether embedded in a bookmark or in a
special Dired command, is a snapshot of the files available at a
particular time.

When you later use Dired with that explicit set of file names,
only those files are listed - if a name no longer corresponds to
an existing file then it is ignored.  The resulting Dired buffer
represents the current state of the file system, but only as far
as the files it lists are concerned.

I think the first approach is generally preferable, but you might
prefer the second.

If you use approach #1 then you also need my library Bookmark+:

  https://www.emacswiki.org/emacs/BookmarkPlus

If you bookmark a Dired buffer without using Bookmark+ then the
bookmark records only the Dired directory name.  It doesn't record
the snapshot information - the explicit list of files to be
restored.  (It also doesn't record the `ls' switches or which
files were marked in the bookmarked snapshot listing, so you can't
restore them.)

Both approaches, #1 and #2, use the marked files and dirs as the
set to snapshot.  More precisely, they use the Dired+ version of
function `dired-get-marked-files'.  That means that you can use a
prefix arg to get a different set of files to snapshot, instead of
those that are explicitly marked.  See the doc strings.

Note too that it is the full content of the original Dired buffer
that's used to define the files to snapshot.  In particular,
inserted subdir listings are included.

Snapshot listings are composed of arbitrary files and directories.
Such a listing might result from a program such as `find', or from
a particular set of Dired markings, of from some other way of
selecting files - any way at all.  What makes them different from
the usual Dired listings is that they're not the output of `ls'.

You can persist any snapshot listing, as just mentioned, but in
most cases you won't.  The case of not wanting to recompute a
`find' result is a bit of an exception.

You can create snapshot listings in the following additional ways.

You can use the regular `dired' commands (`C-x d', `C-x 4 d', `C-x
5 d').  Just use a non-positive prefix arg (e.g., `C--') when
invoking them.

You're then prompted for the Dired buffer name (anything you like,
not necessarily a directory name) and for the individual files and
directories that you want listed.  (Use `C-g' to stop selecting.)

A non-negative prefix arg still prompts you for the `ls' switches
to use.  (So `C-0' does both: prompts for `ls' switches and for
the Dired buffer name and the files to list.)

`Dired+' provides these snapshot-producing commands for combining
and augmenting existing Dired listings.

 * `diredp-add-to-dired-buffer', bound globally to `C-x D A', lets
   you add arbitrary file and directory names to those in an
   existing Dired buffer.

 * `diredp-dired-union', bound globally to `C-x D U', lets you
   take the union of multiple Dired listings, or convert an
   ordinary Dired listing to an explicit list of absolute file
   names.  With a non-positive prefix arg, you can add extra file
   and directory names, just as for `diredp-add-to-dired-buffer'.

You can use `C-x D S' or `C-x 4 D S' to open an Emacs fileset as a
Dired (snapshot) listing.  See the Emacs manual, node Filesets, or
https://www.emacswiki.org/emacs/FileSets, for info about filesets.

You can visit your recent files or directories as a (snapshot)
listing, using `C-x D R' or `C-x D r'.

You can revert (using `g') or sort any Dired snapshot listing.

You can also sort such a listing in various ways, but you need to
use `C-M-L' (aka `C-M-S-l') to do so - you can't use the ordinary
Dired sort commands, such as `s'.  You're prompted for the sort
order.  The default sort order for such buffers is determined by
option `diredp-default-sort-arbitrary-function'.

When using a Dired snapshot listing other than one composed of
recent files, be aware that any operation that reverts the buffer
relists the same file names, and only those that still correspond
to currently existing files.  This means that:

1. If any of the files no longer exist then they will no longer be
   listed (which is likely what you would expect).

2. If any of the files has been renamed then it will no longer be
   listed (which is likely not what you would expect).  This
   applies to the use of WDired to rename files: the renamed files
   are not listed when you return to Dired from WDired.  It
   applies also to the use of `R' (`dired-do-rename').  (A renamed
   file is listed with its new name in any ordinary Dired buffer.)

(With Emacs prior to version 28 you can't use WDired on a
recent-files buffer at all, because such a buffer uses a
`revert-buffer-function' that updates the file list to show the
currently recent files, and older versions of WDired hard-code the
function used to revert back to Dired mode when you exit WDired.)
___________________________




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

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


Received: (at 70593) by debbugs.gnu.org; 10 May 2024 16:51:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 12:51:58 2024
Received: from localhost ([127.0.0.1]:42998 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5TTR-0004Mh-Kv
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 12:51:58 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:28222)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5TTO-0004Mb-Hi
 for 70593 <at> debbugs.gnu.org; Fri, 10 May 2024 12:51:55 -0400
Received: from pps.filterd (m0246632.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 44AGj5H6000893; Fri, 10 May 2024 16:51:54 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=qTe4x0aP1RpaXQJ1HZaqfxSAV4NTiJf162oKWsKpXkw=;
 b=DKxD20ZTR/LAu2rDgGnkUSoQ50GU6FBEmjDTiVsSMUOnRZu3ZwwcC5Kvp9yoPzCbl/pW
 D+LQh7QpnVYncn1hHEA6QIdD1B/lyIqiN1oz7ibwtjAgdIvavH/sNa946A3gNe+1X4s8
 VIAnbwgCtecO8o6DGfsch3zhWQF5VU2Y8hH2D4JPC+Zi/4e5TZ3pQvSeIJbVq9L3Ul8R
 +03i3/5HcSQZwrEpcUVH4NsvZZjaCBK4OQKstb4wXeA+XhUXxVldB9Dwp0Ev3PxcrPUQ
 iphB6lK+Pa9oSGkBDGm9EdgoYJeywlekSwzJTrlI4lth53z2B+nhpYs6FeKKK8Uj7lEi dQ== 
Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com
 (iadpaimrmta02.appoci.oracle.com [147.154.18.20])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y1pgw04mn-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:51:54 +0000
Received: from pps.filterd
 (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1])
 by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 44AGBkr7021427; Fri, 10 May 2024 16:51:53 GMT
Received: from nam10-mw2-obe.outbound.protection.outlook.com
 (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100])
 by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfsc7ga-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 10 May 2024 16:51:53 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=DA5JT+QXWzvcWaZ+iXR8ue1otuRivtj1BS7TyK1JDzZdUzpcjCH4jgGxV+D0zsmEqbum5bqqlJqSFqz5YuO4jHFTVMzjrSOuSSBgrFI0YxmIVbZhJ4NGXwJs76G7OqXbj7/nzoZWxVgNSJCBeUffukvgRTIP73gIsPzFz2NXR8GtOlNDQKso/E7c3kWeUGQ/BLZqt5+12DTPOCqJJy5fugBS4gJ2iJ+Y4tqZpwNgwG560iPoIZtYRtcrRYbzg9ZWT9hADTt08z+vHGoRL9Xi1S032cqvmAiEcZeTe0N8NPKX+Al3Gxw5FLPNJKC3d3gICEv0V5LzXRofWoEnjgeb8A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=qTe4x0aP1RpaXQJ1HZaqfxSAV4NTiJf162oKWsKpXkw=;
 b=OTMEkfWRQmkf+OTCeGRBFl9kwaRIFPwnpby+WMufFj/gwozKNvN2g/u8n+TaFnCLI0ojuvbzTnIStwCWYbBwtE2yxbnNPN7qYjnk+IdF91qikCK0a/4Gw0GoRj8hhPf//+XGsP4V2sA5HYI7Ipp+EiUabvtudn03SQ44w49i+IAHZmK8kCh4b175HYXDopmhcnLbKOtj6HjLvjXJUEzgb3H3+LyR7awVD8yNK3IX83QitGKA9/Tj2ZBdvVPr96NTdrfjn7BYweVUpS1c8NxcmFsc852IFkGDeqzIrN3k7Mt4IQMPxMYtX6/l8DSqdxW1XxISNt7F6ZkWYgVKyHT3LQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=qTe4x0aP1RpaXQJ1HZaqfxSAV4NTiJf162oKWsKpXkw=;
 b=wVMuCqzpZ8x0TIzE2vo1FZtfSFmpHFoo0kid/DMUd5W115FW7xKUq179Sng4WMnQ07PqcRVXVzO+Txw6mvohgI+VIfB0s0HJDWJbq1r8ciT4D/CcKBHmTAzYO0pepDLNmedNaP2CrbQ0Vz2KhQVRAJd/evqz4Y1hvBjzyu+PqIQ=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by IA1PR10MB7515.namprd10.prod.outlook.com (2603:10b6:208:450::12)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.49; Fri, 10 May
 2024 16:51:51 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.048; Fri, 10 May 2024
 16:51:50 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaotlbu87NZYrC1UyVsotVEvSM6bGQiU2w
Date: Fri, 10 May 2024 16:51:50 +0000
Message-ID: <SJ0PR10MB54889A6637854F0FC6B7764DF3E72@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
In-Reply-To: <87msoxddw7.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|IA1PR10MB7515:EE_
x-ms-office365-filtering-correlation-id: 4c650c66-0174-4c14-55f3-08dc71117d30
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|366007|376005|1800799015|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?1HsyMxBjwqS4T7pWt4+H/ad0/1kqLe4shKtjTgoddNvwpLYUQN2845JWPXB1?=
 =?us-ascii?Q?51uSBfEEnGG4tN33sc5d7wfx/NmPD/fTmhdLUmyZp1owXm2PKkyOtdkt/JuL?=
 =?us-ascii?Q?exf+bXxofIy19lTr8xtKQcqwx2NWI5OeUFWh1iLzTpu9Z5btHQrleFavqBPN?=
 =?us-ascii?Q?B01tYkLW04eff2YrtIQMJtH6tWgvo6y4jsH4tAWuKSYhQxI+J9LP8paviwOh?=
 =?us-ascii?Q?1DCb5kGG+HTlzTT7V9oLnFtKCFRh7DVRzl5jgy+9PBL4J40g14VzQUXdY/Z8?=
 =?us-ascii?Q?L8BAOH/+vN0M1g3ynlpZqUa+Gw2gkaRQ9mX7Xtg2sKnYLBk9+X3DLb15oAm1?=
 =?us-ascii?Q?gMoK5XZ1eYVLKazkb7ycsHFUcSP95HA/UjUPN+wFWubf+gkqfaWfXF36aFKN?=
 =?us-ascii?Q?N46WurGMq3GMmCUR4muDH660kqYW4XQcpAnGD4uOyvXlSUi1Fbt0vZ2w89tE?=
 =?us-ascii?Q?oBrWjzJAk9bS812lA01ez2ipKw8Gww5p9DdrwSjcbURoWVQl7MBt4aSm6EkO?=
 =?us-ascii?Q?GuLSyg/kYoPnqKHRUTuF+EyllIDqD1vM8fQGkkNRmHVSKh625dK9nmBs6YDI?=
 =?us-ascii?Q?aOmF9GnYMx8+TNJM9iZn2VgM0lpFRFR1nAc502bBE8rHQIMLG2TAqXE8FbC4?=
 =?us-ascii?Q?XDtuEwmUA6ZWUZidt3XOq2WeYrNcELjHrAlvdkY+jCimSuAFYgw6/opGslct?=
 =?us-ascii?Q?CuVjsVadfR+ETPfK69NParpExYlVHGaxpwIBNjpiLWME97Q9h6IdRWgvbPoz?=
 =?us-ascii?Q?YIqe7J/hVDOYPNAboD+wGU/xNuYu03BEHGS8eX1+ul1PmRdklsxYwMPYyY7j?=
 =?us-ascii?Q?dEwYBqgYxNhNKsE8jhxD9dj6coSRANfvTFKi64ekiDjmfbmPfIYc71YHppq0?=
 =?us-ascii?Q?KLYFNdI7DowmIabATrb7VM2XQzfjO51Sb1I5mQHj9ysfXarHjvPX4wpHjyKh?=
 =?us-ascii?Q?N+ro7BLgkbuDi0s94EbXUO0fgboNx/MbOsvah2n9K4+AdesDpdGfjnEolE4J?=
 =?us-ascii?Q?7pYAUTrEC9/b/aX88Zvc5EkYzh1iwQpxT7lPZWK9JXCqAtYHrBgf9eRc+0AJ?=
 =?us-ascii?Q?4nCn9jxWDxlKGflXKA21smZwQFn+0zzaMNY6XA2kcisUCqr5LPtGDwcOrfgh?=
 =?us-ascii?Q?offwu7KpFN4xs6RYa+SlyXJcY3wjyrraoxuNHXB7ntDK5tnwMi4F7XKl7onU?=
 =?us-ascii?Q?mJajMyAca/RdAbSOJZjGqzhewueGEfHDTLew8Yr/3wex8QPmb9MTIif5TlsK?=
 =?us-ascii?Q?LjnZcpgfrATAOjIb54++hnsqRVu81DbQR4N9iZvGuw=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(366007)(376005)(1800799015)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hdpoQiuv/GfzL3DxFmsD6NK5usHwzkFEk6NoLbkafulTDH2B9f+ozg1VkEG7?=
 =?us-ascii?Q?gNLwd+uxrvzg4WzU+BpKoMmtAXvRtL4d9ewr85kyO8FQQj05XlPbkyhf/2R6?=
 =?us-ascii?Q?8jAKgMK8grK1xaSJyWGtEW1DxL7Plyu7fXpscdOVLjBRWNQR2eDPtYtboD/h?=
 =?us-ascii?Q?N6oHn4ifIj3aYLt7whabAtpjkb1KykqEgEzw+p7qa6/HSV2QN5Ib/FSunVSu?=
 =?us-ascii?Q?/w+h8ufsKhSynKm/ybFxZSbnXvTWtWraPgmHelTo6Vjahoc34RCWly8SBIlH?=
 =?us-ascii?Q?SGeIo0KPYip0sm0mox6I17E3WcCpecWsaVUYXtOWAqmXvQ1GgSAXnxog0Y+R?=
 =?us-ascii?Q?8HyLU5DrMqkP86E9c0M1BGEUmDvtgryo3uPqPJDeb3D3r1FCLRLRSbf8IXaD?=
 =?us-ascii?Q?Jri7Cfw/Zq40skvDgJs/rz1X+Tlyb/QTKoHNBpsPRKStkzOiRUhw8G/C4KhT?=
 =?us-ascii?Q?JfiswZFsG/avcqLOegMstGOzr2T2lw5U5tKiTCl7skcC7Iu4NnfW8ip4YGvF?=
 =?us-ascii?Q?zE5Id1L0aQb9cUYRjTyIFyaF95ADcIqX+Cu7y2SYQ5D6B4VCG2SZ2vL6AKEE?=
 =?us-ascii?Q?GOoGs9wTs4m1d81lhEGb+j3WviBLm3zjhkGjiY5mIk68+OHXqRf44uYMgrQy?=
 =?us-ascii?Q?HhvG7qEkBIg96+Xm1W3s92l/Ui3LQjfrsy49qrlAGQuVu+SB0QB1eQQALwC7?=
 =?us-ascii?Q?1MjOD6n3Tmg1VY0w50t2rwO6ejB0LXYDQLKRNDBKRivYaemI4SbaYdnrkzsP?=
 =?us-ascii?Q?vuokB/LweZVZptXU0W8KFOo+D8ElMEU1nn9VakwtWez+y5j1yjpNhh+5HeAa?=
 =?us-ascii?Q?YP/LRaukzgyrsX5yWUWZX2QJLGXd/HjeOHNpShp+UiGXIC+lLz/dCrO4XIh2?=
 =?us-ascii?Q?g3W0qlfBtYjNa7s8cUUG58boSFeCRUfvV1wPSYduLMTtIc1oXUeP+9cTY4q8?=
 =?us-ascii?Q?kNK24co90bBi8FP4we57oc9iPK1uJWmqzp+lx3qj05Ut+GrtKSAYQaIADFIr?=
 =?us-ascii?Q?b4ALdL89Dg1LUfFZ+EnpgQ3AR99cVqr+naj0cHUEny4mpUyKLgTCNa4pY7nk?=
 =?us-ascii?Q?uyY4QrOBVfgWQyBAgjwZE4y5qmqD1MIGgdllSK6GDs1/ZujBcVLAqrPtMjbz?=
 =?us-ascii?Q?bJcs0jcQluA9NZYeI9KfvqGHSkwk+u0cEpyNQuz291GpRJti5bT2SDWS6nRv?=
 =?us-ascii?Q?/kHYnAKtNcu9Az1b4YB1mSQtnc5C+E8HAcxfUDZQxXeCfFLtr8LoLW3gptbS?=
 =?us-ascii?Q?Lkc22PNBO2dIs6wt2S3ZhtYvkjNRdsxOOnC/cHhwA6ZaxdQtolc7uDRm59Ui?=
 =?us-ascii?Q?uyErYcxQXlXBcaWv7nOyMIgedj9DwtTbPWzykwCo2vJgvzFPXY2Uy2gtUqm4?=
 =?us-ascii?Q?mW8jMl6X90pa3+qJS1rnFqrIDum/3Bqjmh6AZTH0qENpCbAbapWa4a9RTWrR?=
 =?us-ascii?Q?0QtTdNmHjSesSqgffiQ07Km+7SN4SxrVYMw02lZ8QidOFRdg4aIEL/MKhXsH?=
 =?us-ascii?Q?UPAM/CuhSi0JCluBzmDkmPyxtnFq/1jmDTx1ffqUaTwufSRweh2wHujn3mva?=
 =?us-ascii?Q?w90bJ3JQd6BfEndwnZVfZFZS0rw/JNWSlfjiFDtQ?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: UShA5C+mJtbFP5Kx4CSoWEQzImMmOGfGJUfVZPOwZyYbpgnrp8oI9ljDzWo+Ic1Bu0GFl0NqItmDPWOFNpJ9rLieYnHgg8YWF7LrYMcl7cyKOkEzaS+ebhPm3zta7jllcQHc4nE22iwXnwRVTD/m7S153xbzouE9XAiQYBhBxKnKlqyLqSZiKBOXd2SphQI974uKnyy4APGJB8ZC5WkeMRkP57lEt/ILyvsE4Me64yddfFpoS8R+DngAEuEZJMquL5bSaMGYOoqQjY2SuO9X/cdvV1nAs/vJHxtxmX/zl9ZAJhkE8ArKcKfzmACMYX1t7fi3ckUuU7pOXBv2YSupT8eNUDUX+5dR61sVlLvro1WDwKBGFsyw8Kjw4kSZYKJvt54sm2ylxGB7gAbBNyBgXbNhGyMa0qyl4k2Vg0WlJss4dZFA9mIu7d6v7sTPobl8uAif4xsll8pdLXOex/eQVzvP8+m57KiyDvGnrupk+v5BKseDNfWV7Qq8VUW9NIIFutMTHpx5XMBRBSEyB0Ep/OD/tm15ediKeEWjf2f6o5fvGJnUpXl4dOffi0OAqsfsBoyXv8wW+NosVgrSUxSZyR87QbLeilC7BD7KW2Pw2qc=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 4c650c66-0174-4c14-55f3-08dc71117d30
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2024 16:51:50.7889 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: rH6/OrtAFDQkIi4MeYmEHQjOzg7diVSC407ffMiY6+2LoX4zRETKRFEtwRNQOOwXhU4DmBD27+8L1LX6naIrmA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7515
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-10_12,2024-05-10_02,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
 bulkscore=0 suspectscore=0
 mlxscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000
 definitions=main-2405100122
X-Proofpoint-ORIG-GUID: nPvyfNrpLNWXBEu1RWVkOtY1_1nWJDS9
X-Proofpoint-GUID: nPvyfNrpLNWXBEu1RWVkOtY1_1nWJDS9
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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: -1.7 (-)

> > But the car of a cons `dired-directory' isn't
> > necessarily a directory name or any file name.
> > It's just a string used as the Dired buffer
> > name.  (Often it is a directory name, but it
> > need not be.)
>=20
> That's exactly the kind of problem why I have CC'd you.
>=20
> Is this a documented feature, however?

No, I don't think so.  But very little is said
in any doc about Dired listings of arbitrary
files (i.e., the cons `dired-directory' case).

Even in the code very little is said about it.

> Heard about it (from you).  But
> `dired-noselect' doesn't seem to handle or support this case at all, at
> least not specifically, although the code doesn't error in this case.

Dunno much about that, or I don't recall what
I might have known about it; sorry.

But note this comment in the code for
`dired-internal-noselect' (in dired.el):

;; We can do this unconditionally
;; because dired-noselect ensures that the name
;; is passed in directory name syntax
;; if it was the name of a directory at all.
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Whether doc'd or commented or not, it's pretty
clear to me that the any-string (i.e., non-dir)
case for the car of `dired-directory' was
expected/intended from the outset, even if it's
not always respected (taken into account).

Someone (maybe Sebastian Kremer) provided for
it, from the outset.=20

And even if that weren't the case, that's the
behavior.

To me, it makes sense.  If a listing can list
files and dirs from anywhere - not even the
same file-system hierarchy, then clearly the
name of the Dired buffer isn't necessarily a
directory name.

Or, put differently, whatever its name, the
listed files and dirs don't necessarily "belong"
to any particular directory - they need not even
have a common ancestor (at least in Dired+ - see
my other reply to you today).

I agree that the cons case isn't as fully
supported or fleshed out as the straightforward
single-directory case.

In particular, there's no _interactive_ support
for it, i.e., no way for users to interactively
create a Dired buffer listing arbitrary files
and dirs.  (Dired+ does let users do that, in
multiple ways.)

> I can only find places in the documentation where the
> car is described or referred to as "directory name".

Yes, I know.  As I say, AFAIK the cons case was
never fully developed, especially at the user
level (e.g. interactive use).

> Could you please briefly refresh my knowledge about this use
> case?  Does Vanilla Emacs somewhere make use of this case?

No, not that I know of.  I think I discovered it
by accident.  This isn't the only thing in Dired
that's not particularly well-known/advertised,
but it might be the main such thing that wasn't
ever fully exploited/developed.

Apart from WDired, I don't think much in the way
of _features_ has been added to Dired since its
beginning.  I think most work on the code has
been essentially maintenance.

I have no doubt that there are hidden/unknown
corners concerning the use of arbitrary Dired
listings.  Someday maybe someone will dig in and
develop it more thoroughly.
___

FWIW, this is my take (for Dired+) on how a Dired
listing of arbitrary files and dirs can be used,
including caveats about side-band modifications
(e.g. renaming, addition, and deletion of files
originally listed).  It's from the dired+.el
Commentary.  HTH.
_________________


Dired Snapshot Listings: Arbitrary Files and Dirs From Anywhere
---------------------------------------------------------------

Suppose you use a command such as `find-name-dired', to generate a
Dired buffer that lists files from various places.  The search
part of that operation might take a long time.

And suppose that you later want to get back to such a listing,
even if that buffer no longer exists.  In particular, maybe you
want to get to it in another Emacs session.

And suppose that you don't want to pay the penalty of performing
the `find' search again, and you're content with the set of file
names found by the original search.  That is, you don't care
whether that set of names is still 100% up-to-date.

In such a context you want, in effect, to create a Dired buffer
snapshot of some sort - you want to record the set of names that
your search found, and later use them again in Dired.

Dired+ gives you two ways to do this.  Both involve first creating
a Dired buffer that's produced from an explicit set of file names,
from anywhere, rather than one that's produced using `ls' or
similar, and then saving that set of file names for re-creating
such a Dired buffer later.

1. Use `C-M-*' (`diredp-marked-other-window') or `diredp-marked',
   to create a snapshot Dired buffer.  Then bookmark that buffer.
   Just jump to the bookmark to restore the snapshot buffer.

2. Use command `diredp-define-snapshot-dired-commands', to create
   two commands (for same-window and other-window) that will
   create a snapshot Dired buffer.  Save the `defun's of those
   commands to your init file, for persistent access.

The saved set of files, whether embedded in a bookmark or in a
special Dired command, is a snapshot of the files available at a
particular time.

When you later use Dired with that explicit set of file names,
only those files are listed - if a name no longer corresponds to
an existing file then it is ignored.  The resulting Dired buffer
represents the current state of the file system, but only as far
as the files it lists are concerned.

I think the first approach is generally preferable, but you might
prefer the second.

If you use approach #1 then you also need my library Bookmark+:

  https://www.emacswiki.org/emacs/BookmarkPlus

If you bookmark a Dired buffer without using Bookmark+ then the
bookmark records only the Dired directory name.  It doesn't record
the snapshot information - the explicit list of files to be
restored.  (It also doesn't record the `ls' switches or which
files were marked in the bookmarked snapshot listing, so you can't
restore them.)

Both approaches, #1 and #2, use the marked files and dirs as the
set to snapshot.  More precisely, they use the Dired+ version of
function `dired-get-marked-files'.  That means that you can use a
prefix arg to get a different set of files to snapshot, instead of
those that are explicitly marked.  See the doc strings.

Note too that it is the full content of the original Dired buffer
that's used to define the files to snapshot.  In particular,
inserted subdir listings are included.

Snapshot listings are composed of arbitrary files and directories.
Such a listing might result from a program such as `find', or from
a particular set of Dired markings, of from some other way of
selecting files - any way at all.  What makes them different from
the usual Dired listings is that they're not the output of `ls'.

You can persist any snapshot listing, as just mentioned, but in
most cases you won't.  The case of not wanting to recompute a
`find' result is a bit of an exception.

You can create snapshot listings in the following additional ways.

You can use the regular `dired' commands (`C-x d', `C-x 4 d', `C-x
5 d').  Just use a non-positive prefix arg (e.g., `C--') when
invoking them.

You're then prompted for the Dired buffer name (anything you like,
not necessarily a directory name) and for the individual files and
directories that you want listed.  (Use `C-g' to stop selecting.)

A non-negative prefix arg still prompts you for the `ls' switches
to use.  (So `C-0' does both: prompts for `ls' switches and for
the Dired buffer name and the files to list.)

`Dired+' provides these snapshot-producing commands for combining
and augmenting existing Dired listings.

 * `diredp-add-to-dired-buffer', bound globally to `C-x D A', lets
   you add arbitrary file and directory names to those in an
   existing Dired buffer.

 * `diredp-dired-union', bound globally to `C-x D U', lets you
   take the union of multiple Dired listings, or convert an
   ordinary Dired listing to an explicit list of absolute file
   names.  With a non-positive prefix arg, you can add extra file
   and directory names, just as for `diredp-add-to-dired-buffer'.

You can use `C-x D S' or `C-x 4 D S' to open an Emacs fileset as a
Dired (snapshot) listing.  See the Emacs manual, node Filesets, or
https://www.emacswiki.org/emacs/FileSets, for info about filesets.

You can visit your recent files or directories as a (snapshot)
listing, using `C-x D R' or `C-x D r'.

You can revert (using `g') or sort any Dired snapshot listing.

You can also sort such a listing in various ways, but you need to
use `C-M-L' (aka `C-M-S-l') to do so - you can't use the ordinary
Dired sort commands, such as `s'.  You're prompted for the sort
order.  The default sort order for such buffers is determined by
option `diredp-default-sort-arbitrary-function'.

When using a Dired snapshot listing other than one composed of
recent files, be aware that any operation that reverts the buffer
relists the same file names, and only those that still correspond
to currently existing files.  This means that:

1. If any of the files no longer exist then they will no longer be
   listed (which is likely what you would expect).

2. If any of the files has been renamed then it will no longer be
   listed (which is likely not what you would expect).  This
   applies to the use of WDired to rename files: the renamed files
   are not listed when you return to Dired from WDired.  It
   applies also to the use of `R' (`dired-do-rename').  (A renamed
   file is listed with its new name in any ordinary Dired buffer.)

(With Emacs prior to version 28 you can't use WDired on a
recent-files buffer at all, because such a buffer uses a
`revert-buffer-function' that updates the file list to show the
currently recent files, and older versions of WDired hard-code the
function used to revert back to Dired mode when you exit WDired.)
___________________________




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

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


Received: (at submit) by debbugs.gnu.org; 10 May 2024 13:10:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 09:10:08 2024
Received: from localhost ([127.0.0.1]:42153 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5Q0j-00019A-45
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 09:10:08 -0400
Received: from lists.gnu.org ([209.51.188.17]:58682)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s5Q0U-00018X-Tw
 for submit <at> debbugs.gnu.org; Fri, 10 May 2024 09:10:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s5PyP-0001rh-4X
 for bug-gnu-emacs@HIDDEN; Fri, 10 May 2024 09:07:41 -0400
Received: from mout.web.de ([217.72.192.78])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s5PyM-0007qv-Vx; Fri, 10 May 2024 09:07:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715346445; x=1715951245;
 i=michael_heerdegen@HIDDEN;
 bh=J8oLYdUP/FekBjyf42VG6k9pDFfrOPzCPJk5iCgWpS0=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=Lym3DmUWkm8IOZoNKEmU/FAE377pVAYPJJ+tlQBBMj8reHG4n0SkaU2sVHo2sLWt
 siajRHZF9UhwyjxgYHKYdeivvzbQO6miSPO+c1qcKyfchKMddMd0/rfrTobM6Zd1H
 Q5N3T0OEjD8F99WjvTo8Vr+Bsm2JNLoX/eLX6My3bJBpec3MrAZ3OhpTYwByw+fDV
 Pd8nMBLS72Qlwt/zfRQqQub+z4ZiRr57cHH4kbYQGGzjV+EhheFH23geOyxh5+eUK
 wXsPtH5ZCBSMMGF2zD5icqcP+KYdX/5D6GpEHfCgwJqT+pAWVYqrNgYOWqW+l85v0
 zx/7eojlM5icrTsNkw==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MrOdp-1sQCCo3DN9-00oUri; Fri, 10
 May 2024 15:07:25 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
 of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <87msoxddw7.fsf@HIDDEN> (Michael Heerdegen via's message of "Fri, 
 10 May 2024 14:56:08 +0200")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
Date: Fri, 10 May 2024 15:08:10 +0200
Message-ID: <87h6f5ddc5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:KuqB8ivF+rsynOTYNd7rsDUiO/aBXmFKpfMs7DzeFFPv1Jzmhca
 goD+fBkg5tcnPswCso/Q2qFWwdv5Recbq3ya6J8NktobAshna1E/9iiWbCoPtqfrZsKBwW3
 l0z1I3JXLkReIl6bIGYo+NjlWpvFE31rJgcDcQnL16rq79k08sXKoRpId4SYgC3IICcE9P/
 k9lsbptSUHQvYGhuV6Z1A==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:040nzLwdjkQ=;knlPHx8too4h98r1Y0bInrM4JDJ
 oeAdr0yR9eDJgKLTuZvdmbZ1UTwvzvoTqrJT9jmYc/cHm5fu0NDuqEM6qBwNIsCSXqNaYimAI
 aQ2PSeRN/NVBbgNx5B0okExCWfkBvhepugWLximjGBVYsiHTOCRYMiyk159ZYuKQko1mQey6D
 ZXcNYKt+mtZdKG6DBeRLAHiqC14haOaiyP1aQhLnGdCGqkrLDm3qFWfJQ283WdaJMUuKxAqo9
 xYI6OoxdaH7gB46z7xks5zir2szGS+LWw0EfcRhyorJFuXLVYxKwSrrK9vRLs0mgA0CB/pbBO
 40XCTn25AUcjczgviyhwsDbGkSDerjmdzOu4P5Jhz0so9qM22/UHME8zcSRlxmHb7/tIiXqSb
 Mbe1TlWCgxIuumGC2iaGJLYn4apCZ5ROy77VAN/jE0QdAKdnwyG0t2ajhsfiQM51Ka4DiIYeH
 IA4N7SrVB2R2YF4wRH/IRwJc86So/R7HMyAe5FZzZp7GGNt6Te17raEGAPq/xE1C+RsjQne9c
 FmwGU6qdEX85+Z9usUcnlX/DkYWgJ7WBJRioU0m8WYk4Ldk84pz/qPw3hEeYtXJiUm3rktv6K
 b9YqRsZEzHoljtaqjfZ4AhqXjEDIlIs1U+TpxcxDx4oVDec6ESz9ILTRVg7rPe1MbOLlG16c0
 K4Rei5XDD8U6KR5hDmLHUKdS9zPJ/7oz0qaJGNwIvqWcoirtU1nSPahF0VpuebFPcGUEeqMGF
 PQsD/YDIYyzN1352cBtLYkoEwwb5eIL++ZfHdKvgTVJPqOUEE9Bh+aWwRnaUkWxTKUq9AzEAW
 XUt+hQEL392Sh5XfEJu3CcQcCosx1WEn+g/0rP/QeLlkE=
Received-SPF: pass client-ip=217.72.192.78;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.0 (+)
X-Debbugs-Envelope-To: submit
Cc: 70593 <at> debbugs.gnu.org, eliz@HIDDEN, Drew Adams <drew.adams@HIDDEN>
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 (---)

Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@HIDDEN> writes:

> > Not sure what you mean.  Even in vanilla Emacs,
> > I think subdir insertion is supported.  E.g.:
> >
> > M-: (dired (list "foobar" "/tata/file.txt"
> >                  "/toto/dir/" "/titi/"))
>
> Hmm, indeed, this works in -Q.  Seems one of my local hacks broke this
> case.

No no... not my fault: this does only work when starting from a buffer
whose `default-directory' is a parent of the listed directories.  Else I
get (in master emacs -Q) a buffer looking like

 /home/micha/.config:
  drwxr-xr-x 24 micha micha 4096 Nov 22 14:27 /home/micha/Treasure
  drwxr-xr-x  4 micha micha 4096 Mai  7 17:38 /home/micha/bin

and hitting i gives me the error "dired-insert-subdir-validate:
/home/micha/Treasure/: Not in this directory tree".


Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 10 May 2024 13:07:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 09:07:37 2024
Received: from localhost ([127.0.0.1]:42149 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5PyL-00017E-IG
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 09:07:37 -0400
Received: from mout.web.de ([217.72.192.78]:37337)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s5PyJ-000178-93
 for 70593 <at> debbugs.gnu.org; Fri, 10 May 2024 09:07:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715346445; x=1715951245;
 i=michael_heerdegen@HIDDEN;
 bh=J8oLYdUP/FekBjyf42VG6k9pDFfrOPzCPJk5iCgWpS0=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=Lym3DmUWkm8IOZoNKEmU/FAE377pVAYPJJ+tlQBBMj8reHG4n0SkaU2sVHo2sLWt
 siajRHZF9UhwyjxgYHKYdeivvzbQO6miSPO+c1qcKyfchKMddMd0/rfrTobM6Zd1H
 Q5N3T0OEjD8F99WjvTo8Vr+Bsm2JNLoX/eLX6My3bJBpec3MrAZ3OhpTYwByw+fDV
 Pd8nMBLS72Qlwt/zfRQqQub+z4ZiRr57cHH4kbYQGGzjV+EhheFH23geOyxh5+eUK
 wXsPtH5ZCBSMMGF2zD5icqcP+KYdX/5D6GpEHfCgwJqT+pAWVYqrNgYOWqW+l85v0
 zx/7eojlM5icrTsNkw==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MrOdp-1sQCCo3DN9-00oUri; Fri, 10
 May 2024 15:07:25 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
 of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <87msoxddw7.fsf@HIDDEN> (Michael Heerdegen via's message of "Fri, 
 10 May 2024 14:56:08 +0200")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 <87msoxddw7.fsf@HIDDEN>
Date: Fri, 10 May 2024 15:08:10 +0200
Message-ID: <87h6f5ddc5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:KuqB8ivF+rsynOTYNd7rsDUiO/aBXmFKpfMs7DzeFFPv1Jzmhca
 goD+fBkg5tcnPswCso/Q2qFWwdv5Recbq3ya6J8NktobAshna1E/9iiWbCoPtqfrZsKBwW3
 l0z1I3JXLkReIl6bIGYo+NjlWpvFE31rJgcDcQnL16rq79k08sXKoRpId4SYgC3IICcE9P/
 k9lsbptSUHQvYGhuV6Z1A==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:040nzLwdjkQ=;knlPHx8too4h98r1Y0bInrM4JDJ
 oeAdr0yR9eDJgKLTuZvdmbZ1UTwvzvoTqrJT9jmYc/cHm5fu0NDuqEM6qBwNIsCSXqNaYimAI
 aQ2PSeRN/NVBbgNx5B0okExCWfkBvhepugWLximjGBVYsiHTOCRYMiyk159ZYuKQko1mQey6D
 ZXcNYKt+mtZdKG6DBeRLAHiqC14haOaiyP1aQhLnGdCGqkrLDm3qFWfJQ283WdaJMUuKxAqo9
 xYI6OoxdaH7gB46z7xks5zir2szGS+LWw0EfcRhyorJFuXLVYxKwSrrK9vRLs0mgA0CB/pbBO
 40XCTn25AUcjczgviyhwsDbGkSDerjmdzOu4P5Jhz0so9qM22/UHME8zcSRlxmHb7/tIiXqSb
 Mbe1TlWCgxIuumGC2iaGJLYn4apCZ5ROy77VAN/jE0QdAKdnwyG0t2ajhsfiQM51Ka4DiIYeH
 IA4N7SrVB2R2YF4wRH/IRwJc86So/R7HMyAe5FZzZp7GGNt6Te17raEGAPq/xE1C+RsjQne9c
 FmwGU6qdEX85+Z9usUcnlX/DkYWgJ7WBJRioU0m8WYk4Ldk84pz/qPw3hEeYtXJiUm3rktv6K
 b9YqRsZEzHoljtaqjfZ4AhqXjEDIlIs1U+TpxcxDx4oVDec6ESz9ILTRVg7rPe1MbOLlG16c0
 K4Rei5XDD8U6KR5hDmLHUKdS9zPJ/7oz0qaJGNwIvqWcoirtU1nSPahF0VpuebFPcGUEeqMGF
 PQsD/YDIYyzN1352cBtLYkoEwwb5eIL++ZfHdKvgTVJPqOUEE9Bh+aWwRnaUkWxTKUq9AzEAW
 XUt+hQEL392Sh5XfEJu3CcQcCosx1WEn+g/0rP/QeLlkE=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <at> debbugs.gnu.org, eliz@HIDDEN, Drew Adams <drew.adams@HIDDEN>
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: -1.7 (-)

Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@HIDDEN> writes:

> > Not sure what you mean.  Even in vanilla Emacs,
> > I think subdir insertion is supported.  E.g.:
> >
> > M-: (dired (list "foobar" "/tata/file.txt"
> >                  "/toto/dir/" "/titi/"))
>
> Hmm, indeed, this works in -Q.  Seems one of my local hacks broke this
> case.

No no... not my fault: this does only work when starting from a buffer
whose `default-directory' is a parent of the listed directories.  Else I
get (in master emacs -Q) a buffer looking like

 /home/micha/.config:
  drwxr-xr-x 24 micha micha 4096 Nov 22 14:27 /home/micha/Treasure
  drwxr-xr-x  4 micha micha 4096 Mai  7 17:38 /home/micha/bin

and hitting i gives me the error "dired-insert-subdir-validate:
/home/micha/Treasure/: Not in this directory tree".


Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 10 May 2024 12:55:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 08:55:36 2024
Received: from localhost ([127.0.0.1]:42140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5Pmh-0000yL-SV
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 08:55:36 -0400
Received: from mout.web.de ([217.72.192.78]:43787)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s5Pmf-0000yF-9l
 for 70593 <at> debbugs.gnu.org; Fri, 10 May 2024 08:55:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715345725; x=1715950525;
 i=michael_heerdegen@HIDDEN;
 bh=WS5tM/1zxXobIMJ+lEYlaJCCcwa6u4TFBVVDVij3d30=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=vB6K+kk7p/SVD783kEY+77AhmzgAU+HLlPyjgbYPkYfzK43y/Lku0dn7P1+gfNrX
 vFnCVz9+u4nUtAmlWZqd5UpXk4IKyjZXuyATOHJSKOgqR/GIabfx8/CMkWqBvGBRA
 yfHLsmf+XYllgU1wWT8bNpZRy+JAeGp3BE+g3SH5IICoUpifTihXbXLyq01iTSq5x
 5ruMBd8HnxX7PnnCWv6cze5lsDtPo00e13PSZ53PicFVUrd1TPyCOWZZ2rObynHT4
 c8VeHND63NU8ZpHkydwblHGX/HzD16d8TM9JTrhxZkPbFdw+cHsqyF/EJv/z8R80x
 aK2iaW9wH4BHl0/c1w==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N30ZL-1skcgz3WEX-013RBF; Fri, 10
 May 2024 14:55:24 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
In-Reply-To: <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 (Drew Adams's message of "Thu, 9 May 2024 21:20:09 +0000")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
Date: Fri, 10 May 2024 14:56:08 +0200
Message-ID: <87msoxddw7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:YGaKKxm0pPllVMAA5Fy5SWYGFWSdrsQE7UhrrpZ6ST5SoGo5EkO
 9gwmfupDBfYFCNcGURqzGSIXWh343mhmSWtFuOAYZ1sLX8nQGnm+KTcJWqLMvFnG4ZH4zDT
 q6FFVb9iJQQnE4tauCrmu0tZtsXEolSIcsxH2qC4TURt/eyYw1DVoRO3k8/LW6Jt9UnmaTl
 hPuzs66vg4M687q4NRlvg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:VyYfaWuaPnM=;RKWd9tG353TotzzaJfUaSmVFN2s
 S3ET1lfuX9n7tI83JxmROvj9BL4rzk12PbhvVZ6FFP1jwNNHcg/oyP9e9ZAjEHF0bJzi297gI
 LfcxfcO3we6XivgXt03/Y2lGTqlrZtddX/X728IzAuvKy51U1v8ol5FnoZmdMAWeD1DmDzBj/
 iwyjBgNNFoEdK7kkt43trqks3dOZNCzTc8cai9kKk4hARoR6PUWHlHxQH2LsFsnFcFG2YvesY
 owKFm20Tqm74gnFxmBnxApCODYldr9mr462CSicqztLjBPGtdvOifQeN/AVP3iM7qy54RZbMk
 2f45/bDGfPvyMR7BuwELDpCrqR7E/qaZJz1Qclmgn7kLwqRZFPqWf2aHo6gi+BvFFyVrfsmpp
 EJg8hIyDawr0R/WU9f2juq+7kN3tyTMqsa9NNDbZULeKFFvG93YIWeMnlrQiEl4ueknxGu5yA
 Fj8Qb5dQFrMj88LoOuBTRgXK3/d93CH0ZHS88veimDFzn0FsiAjkMxPvRYaICQs3MQkpx3wmq
 RcNwTzpjtDaSBhmpS6jvHRmRVi+gAjsjs8JYDXIq4/veu/2n5dxAxabrj/hcXn3x9p0zVqgoX
 WQd/rI/jjXswcm2SHZBVE4rAJJCi13kpcQBKwxePMsK9cUNl4cMaUApfDYV2HVS4hXVPtoYMP
 hNcAOFaHYKs9gHHJcleD6TcS2q9ynS2EUbhs6lwhBZx/TfnZ/m/b/FcubjreGUL9Jw3yi69bZ
 nRQMwJ9YsBh/utWIAlaxHbNxKsDY55jkSftS7xnUc2C8eePTsc9WgnH9FyxKH25rYESILe+wk
 BBU43QLDt2BaCKAGvJls9vvREfc4QIYd8bcvH/IVCGXpQ=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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: -1.7 (-)

Drew Adams <drew.adams@HIDDEN> writes:

> But the car of a cons `dired-directory' isn't
> necessarily a directory name or any file name.
> It's just a string used as the Dired buffer
> name.  (Often it is a directory name, but it
> need not be.)

That's exactly the kind of problem why I have CC'd you.

Is this a documented feature, however?  Heard about it (from you).  But
`dired-noselect' doesn't seem to handle or support this case at all, at
least not specifically, although the code doesn't error in this case.

I can only find places in the documentation where the car is described
or referred to as "directory name".

Could you please briefly refresh my knowledge about this use case?  Does
Vanilla Emacs somewhere make use of this case?


> > Subdir insertion in cons value `dired-directory' buffers
> > are not really supported currently it seems
>
> Not sure what you mean.  Even in vanilla Emacs,
> I think subdir insertion is supported.  E.g.:
>
> M-: (dired (list "foobar" "/tata/file.txt"
>                  "/toto/dir/" "/titi/"))

Hmm, indeed, this works in -Q.  Seems one of my local hacks broke this
case.


Thx,

Michael.




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

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


Received: (at submit) by debbugs.gnu.org; 10 May 2024 12:55:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 08:55:47 2024
Received: from localhost ([127.0.0.1]:42143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5Pmt-0000yY-8u
	for submit <at> debbugs.gnu.org; Fri, 10 May 2024 08:55:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:51876)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s5Pmr-0000yS-HI
 for submit <at> debbugs.gnu.org; Fri, 10 May 2024 08:55:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s5Pmq-00078N-TS
 for bug-gnu-emacs@HIDDEN; Fri, 10 May 2024 08:55:46 -0400
Received: from mout.web.de ([217.72.192.78])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s5Pmo-0004c5-Nf; Fri, 10 May 2024 08:55:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715345725; x=1715950525;
 i=michael_heerdegen@HIDDEN;
 bh=WS5tM/1zxXobIMJ+lEYlaJCCcwa6u4TFBVVDVij3d30=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=vB6K+kk7p/SVD783kEY+77AhmzgAU+HLlPyjgbYPkYfzK43y/Lku0dn7P1+gfNrX
 vFnCVz9+u4nUtAmlWZqd5UpXk4IKyjZXuyATOHJSKOgqR/GIabfx8/CMkWqBvGBRA
 yfHLsmf+XYllgU1wWT8bNpZRy+JAeGp3BE+g3SH5IICoUpifTihXbXLyq01iTSq5x
 5ruMBd8HnxX7PnnCWv6cze5lsDtPo00e13PSZ53PicFVUrd1TPyCOWZZ2rObynHT4
 c8VeHND63NU8ZpHkydwblHGX/HzD16d8TM9JTrhxZkPbFdw+cHsqyF/EJv/z8R80x
 aK2iaW9wH4BHl0/c1w==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N30ZL-1skcgz3WEX-013RBF; Fri, 10
 May 2024 14:55:24 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
In-Reply-To: <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
 (Drew Adams's message of "Thu, 9 May 2024 21:20:09 +0000")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
 <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
Date: Fri, 10 May 2024 14:56:08 +0200
Message-ID: <87msoxddw7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:YGaKKxm0pPllVMAA5Fy5SWYGFWSdrsQE7UhrrpZ6ST5SoGo5EkO
 9gwmfupDBfYFCNcGURqzGSIXWh343mhmSWtFuOAYZ1sLX8nQGnm+KTcJWqLMvFnG4ZH4zDT
 q6FFVb9iJQQnE4tauCrmu0tZtsXEolSIcsxH2qC4TURt/eyYw1DVoRO3k8/LW6Jt9UnmaTl
 hPuzs66vg4M687q4NRlvg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:VyYfaWuaPnM=;RKWd9tG353TotzzaJfUaSmVFN2s
 S3ET1lfuX9n7tI83JxmROvj9BL4rzk12PbhvVZ6FFP1jwNNHcg/oyP9e9ZAjEHF0bJzi297gI
 LfcxfcO3we6XivgXt03/Y2lGTqlrZtddX/X728IzAuvKy51U1v8ol5FnoZmdMAWeD1DmDzBj/
 iwyjBgNNFoEdK7kkt43trqks3dOZNCzTc8cai9kKk4hARoR6PUWHlHxQH2LsFsnFcFG2YvesY
 owKFm20Tqm74gnFxmBnxApCODYldr9mr462CSicqztLjBPGtdvOifQeN/AVP3iM7qy54RZbMk
 2f45/bDGfPvyMR7BuwELDpCrqR7E/qaZJz1Qclmgn7kLwqRZFPqWf2aHo6gi+BvFFyVrfsmpp
 EJg8hIyDawr0R/WU9f2juq+7kN3tyTMqsa9NNDbZULeKFFvG93YIWeMnlrQiEl4ueknxGu5yA
 Fj8Qb5dQFrMj88LoOuBTRgXK3/d93CH0ZHS88veimDFzn0FsiAjkMxPvRYaICQs3MQkpx3wmq
 RcNwTzpjtDaSBhmpS6jvHRmRVi+gAjsjs8JYDXIq4/veu/2n5dxAxabrj/hcXn3x9p0zVqgoX
 WQd/rI/jjXswcm2SHZBVE4rAJJCi13kpcQBKwxePMsK9cUNl4cMaUApfDYV2HVS4hXVPtoYMP
 hNcAOFaHYKs9gHHJcleD6TcS2q9ynS2EUbhs6lwhBZx/TfnZ/m/b/FcubjreGUL9Jw3yi69bZ
 nRQMwJ9YsBh/utWIAlaxHbNxKsDY55jkSftS7xnUc2C8eePTsc9WgnH9FyxKH25rYESILe+wk
 BBU43QLDt2BaCKAGvJls9vvREfc4QIYd8bcvH/IVCGXpQ=
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=217.72.192.78;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 "Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
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.3 (--)

Drew Adams <drew.adams@HIDDEN> writes:

> But the car of a cons `dired-directory' isn't
> necessarily a directory name or any file name.
> It's just a string used as the Dired buffer
> name.  (Often it is a directory name, but it
> need not be.)

That's exactly the kind of problem why I have CC'd you.

Is this a documented feature, however?  Heard about it (from you).  But
`dired-noselect' doesn't seem to handle or support this case at all, at
least not specifically, although the code doesn't error in this case.

I can only find places in the documentation where the car is described
or referred to as "directory name".

Could you please briefly refresh my knowledge about this use case?  Does
Vanilla Emacs somewhere make use of this case?


> > Subdir insertion in cons value `dired-directory' buffers
> > are not really supported currently it seems
>
> Not sure what you mean.  Even in vanilla Emacs,
> I think subdir insertion is supported.  E.g.:
>
> M-: (dired (list "foobar" "/tata/file.txt"
>                  "/toto/dir/" "/titi/"))

Hmm, indeed, this works in -Q.  Seems one of my local hacks broke this
case.


Thx,

Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 9 May 2024 21:20:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 17:20:14 2024
Received: from localhost ([127.0.0.1]:40864 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5BBW-0001YQ-BC
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 17:20:14 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:59504)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5BBT-0001YK-Cm
 for 70593 <at> debbugs.gnu.org; Thu, 09 May 2024 17:20:13 -0400
Received: from pps.filterd (m0246630.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 449LJx9x020339; Thu, 9 May 2024 21:20:12 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=j/CmVpdC2fwbwkRgkYVTac7RYPZFBZSyl7rfM9Rq5wo=;
 b=a9z76mq+o0qLZRlW21LQuF0yH/FfnJnZgji2t3/hjnVc0h6DZarvcXCB9SylEsWKv/s9
 PioR+vMNYLd7FD9a3/OxAG+HhEGEgHMuGfN7IVdQFrCl0FkNzXU/93TGXiYqRvCsbtbB
 kyW03Q4HREzLgMLphsG0357WmaudDM1WLqjm7jWiZOk/+P5KMzuTvv4G1/s/l8fbv63D
 Q/2lelryoYFWNvSjkkj4KaGd71VfXfmR8mGA+UgCDBCIEO8ltVp8PBFhJM8Kvr6AZNIE
 IhotgKRen5QR8tY/OG8EsMg7bQEJVEZyLRsirEH6MJHBIeMiJVLy7psEXpZsNRqOU5wR +Q== 
Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com
 (iadpaimrmta03.appoci.oracle.com [130.35.103.27])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y14xfr417-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 09 May 2024 21:20:12 +0000
Received: from pps.filterd
 (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1])
 by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 449L5WoF024331; Thu, 9 May 2024 21:20:11 GMT
Received: from nam10-dm6-obe.outbound.protection.outlook.com
 (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101])
 by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfqcjns-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 09 May 2024 21:20:11 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=LS1kZsOUxLL732VPkys1UzogJL/qHqI0Ok6f97VPKrTqjya5l2T3c6IGTvYwX1ArIxfRC2N7q8EZN74Rh2Qn/XujlBKAMczq8Xg8PsK61UMRcOTF6dSR3KaWYepccvIDSbdV7jXAKn6Lf52sa0kOjOMRQ7p4dHzXzpFu7EFD4TtvdmdrbJws8iXagrJMu3HNLLLK9yK0Eg3j/l8BYfg4lmarT9UIEGsMZXcMQ4y3bvHX/YNyPL0RUA3s8QdmuXTLVIJBv7fTp6Z/NPcd/XuszDGLHKmVpxxQHF2sxFeE7wLCb6k7OAX7GeiqKaRXBs6M4czWwmgaYq+XoEuGmTTq4g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=j/CmVpdC2fwbwkRgkYVTac7RYPZFBZSyl7rfM9Rq5wo=;
 b=SvmoBEBYsEELzm6U0rlAFCvLrm546ftW8esYsg5aBxDx9yO/ftyyg6ldf2AvWPtanDt+59Woy9WOWk06ZijHX5og70Wk2vbxzj6C4bO/E+dWFJdZt32gBiGKOdGwb4ja+WlK1K+H1OQfTzQ0Q8I3ZnCg6AyqtBEHUKhfBjczWl2lFn2L/b75vFyJvDql/WeycoP6mz2zdIhuLsj68J3hGyXnIJc0yEqDQ87q51lp8UTrpLNOSrrdzyGxb350bklQu0jTqW0aUhyayZpd6FdhXMAS+TUc+EFuj8VNsn+8Ha1LFXQ6jaITfM55e3264LF2COQKAFaW4KMsnNIcXGcuWA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=j/CmVpdC2fwbwkRgkYVTac7RYPZFBZSyl7rfM9Rq5wo=;
 b=kb5E+uV+ty/hLGRuKrrD4GpL5xmDUtRYxd8SdvawKP0BAPbz1Fr8IQ2DtEqPY8tTwZJAhXGQb3AWH6Aq3IK9aVyZqe2dynH1HDCap2b4QM9cDAnWoxduO4jO8z5RKYPQ1snhjXMenRu7ky8FzIDgkrInTyCL9R8ZUHUfpwXa5qQ=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by CY8PR10MB6466.namprd10.prod.outlook.com (2603:10b6:930:62::10)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.45; Thu, 9 May
 2024 21:20:09 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.046; Thu, 9 May 2024
 21:20:09 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>, "Drew Adams via Bug reports
 for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaokba3q8/h/S5mE6SpOHQYpYaZ7GPX03g
Date: Thu, 9 May 2024 21:20:09 +0000
Message-ID: <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
In-Reply-To: <87ikzmg50t.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CY8PR10MB6466:EE_
x-ms-office365-filtering-correlation-id: 7ade5017-587b-4ecf-51aa-08dc706dce2d
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|1800799015|376005|366007|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?EQ2+DjSdW2AwW3nl+pZOJY7BAJddGqulGAeiCzhl99n7VknWcIiELmQhUWSG?=
 =?us-ascii?Q?LBWOnYUN9XA2nRo7p+wyDPcCjHfhqPtUG4ahFuV54eq8FnLC645U6cIhixe+?=
 =?us-ascii?Q?Jg+Zlj1I3bFTxyCCUGGKTAZCTTU1pvBNrKOIFwWAP+t+l5JT0GfGzDET3HtR?=
 =?us-ascii?Q?UqT1X9cjwBebeThP1qK8HU6JrDpzPShV9tG57/zNkgYUnHL/qORxnKMKAaNO?=
 =?us-ascii?Q?TyVgJNHLCGrPqTBoanndubdRPfVdgbQOLw9oDzY28JhZRw2O38n609UU1D9J?=
 =?us-ascii?Q?We8w2+hMEE2WVUZ8QX6SLFHeHMUFnLpBQa5pkFIkqbA+InbMdgm+poFMFLLU?=
 =?us-ascii?Q?x4JaBh90hdvwlCn19folgg3uhTA4ecao2PuuEturKXzqUX3qirrRVz4ZnVAR?=
 =?us-ascii?Q?1NYocD2LkDWKqYw/ivi8xLThj3rP3SA+dAA73dRGE2OwhpXRysz8IrvvEivf?=
 =?us-ascii?Q?PLi2W8ZZ5jXRIYj74VsUluP7y3puJszGvK/mz4NUaOliuBRQRty+AqNo0hB0?=
 =?us-ascii?Q?5hQpQmdus7bHhd/dUfmekXz+WqLnPdx+3YbJyKuEJJ/10/6ccN7cMBAFSYb0?=
 =?us-ascii?Q?iSneBr8+b2oD00sFoyfHt4sc0YrTAZj7xjL4zNx1YVDKCk0nLQy0uZjwhO/Z?=
 =?us-ascii?Q?M+4flBT8Wd9seKzdV/kZa3GQ0y7o7hyNvXd1jX/SetURHtDaxkvdzAyWStWK?=
 =?us-ascii?Q?y0tPVN8XNeXM2H/CQDwpFmDZodC6rcrEuQEjJ1cq6K1+ZHOQ+frSt2HO8MPj?=
 =?us-ascii?Q?3K0ALuoMizojaHNYjZwz2psQ45B9lKfZi/3sQM51nGDvdBONazw8Go0W+ZTu?=
 =?us-ascii?Q?qGQbnFYoAhaZW1acBXFHsQmCdvPOv8l4pm8Ntc0j3NGWgUPnU91bpvk75RUv?=
 =?us-ascii?Q?mLdqjDnvxUVGlQqcutuz6jGrp+wEU3Y0OR7KqLbZ+2vNkozjFN/wy6TaagHa?=
 =?us-ascii?Q?r0/tMhtqerZ/Fm/w65BuvfgmPJbkvrSFtMhKkKfb6CIldWvZW37YPKSJ9vV0?=
 =?us-ascii?Q?B5q0e7PXL22rSpDTG3eajnbp2qJDNCiU4q6anMyrq27BgUAs4/NhhNxXysNh?=
 =?us-ascii?Q?L/9TVSZTSoMVDHus7Iy82H1UG2z19vyh5cKGjArFPVygK4m2JZGF3gvNZV7p?=
 =?us-ascii?Q?5cONaL9JcPIivj1fqsjtU6G+e8G6LtQTKTNGz0eeRsI9oP+ctXSsFiimdFjS?=
 =?us-ascii?Q?BYGQOgtlfzqI0jp6iL4+JbPdD4yqy0GSlvobTk6BmeFMHmXkH9sBIbrv1Jv4?=
 =?us-ascii?Q?L/s73w+N9t5pWxOV+ZX+V2GVxva3Vt6uVFO+47p+G7QAzq512vmucYb4NSe4?=
 =?us-ascii?Q?TkF57WCmmCloW31s2sAy3MNp1SffDj/NXXFZeRov/AYfQQ=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(1800799015)(376005)(366007)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?on8AMvYii8D/1C9vQNufWUqTJPcWTYTTH3fQ5Z4ybb99gj/Yq+tTMypSuFMk?=
 =?us-ascii?Q?8l3gk2aAhBQHZcPgZwti9imfrl7w9obJHfjqcQwefCmUWKHHMx+0WtgNaisC?=
 =?us-ascii?Q?aD+VvtWt8uOybs9DjCJ6TG8qar+y5JScHEBGbSOR7C5mQVdCUpjPDImj7ITW?=
 =?us-ascii?Q?Owaluw+Up9KePjehrd5CtUZPKrPhwHx3rysFnWIBZnhoXQhTxigbxoxP6Ya2?=
 =?us-ascii?Q?eq7x2jZWpksKaLrINg6UHLX3SyWIQTtFp9gwOUuRpr6+k3227aTKdJhWP5Nc?=
 =?us-ascii?Q?fadYuj5Rwvp9D0NvSOJ3OV7W0tvF7zguZXM0AU6ooNyu2MFabPun180n2bu6?=
 =?us-ascii?Q?zc5rTbm4/ovYxuk8uLTgGeBnBbYnWg3XBb3Lhpw2Rz0Hi9MYU721OZLQR0iC?=
 =?us-ascii?Q?6EcSIGjaT8/kX2pz5MTVNe2TwobIcgXORO9Db+LVdAiA03Pk4zl4VdYn9TGt?=
 =?us-ascii?Q?wJJpfio6yczUeZgUJ/nZeS10GUFDV8CKf/0V/sISzxZA+OGI1+V0qt08i+Mg?=
 =?us-ascii?Q?JC6ridbYXnrbSe1Uf/HCh3Otl7TVPaDcN9bnXCKnMVBw9oYyQvUDU/4DMwC4?=
 =?us-ascii?Q?qTFhZPL45I+E36vrf0iDvTvc8uBoKxMB6mer59ifMWNpY2zuopCMA2BbwtkK?=
 =?us-ascii?Q?RsiK+jfqCXqsBOip8rG6pXalWVxBT/CAe3wvbcRWOuV/Q5PokEHtytDSyWMM?=
 =?us-ascii?Q?1lUHDlJG3k+j5BcVNZnl1l+Y/QsSXUq+EPlZuQx9Fjh6zpQUBRgXZA68r/Nl?=
 =?us-ascii?Q?knLsQjr8zh6y5ci+NGT0wNJuFOIRu9ZYc6jHMwSunhbSTboUvpUvitJIy+LR?=
 =?us-ascii?Q?FsjFR5GG8mEMCbXF8a55Qp8PolxDttIVBoVTMoJ45MJj5THq8rGvnTwCjPyB?=
 =?us-ascii?Q?DZjmPukDLSwbzT14yzX+GCbF1AdK42KiuXN4Cf59wg3bARqNuf+/2zAYB8yv?=
 =?us-ascii?Q?uKomCLrSMq/BgtSr9WFlcHJBVOy/aqQkIHYnkPFIKjhTwvyD1Gzys0yrEcgt?=
 =?us-ascii?Q?+0CB47TLaYl/8m9hT0D3LyinqYJz2RP1yop2top7qfF4HtnxhZ+zymgbOi6V?=
 =?us-ascii?Q?rBVNZU7lD1K+fZywLxc4Ra6AZw0YA/Qj1RWubB8eqqIw6jehsZx6trIGaPEr?=
 =?us-ascii?Q?IEkKyq3vY6Aa8SRsroInAZ5NwuEdwkFTpX2jj6+pD7PfINPEZ11zVufA2ILB?=
 =?us-ascii?Q?rGJdCccSq0ZG9GR7/4eCDdT1Ly+8uk2x98YBlQCWSwYAaNQz9IRMHjK/xPnC?=
 =?us-ascii?Q?6ZW9zU5hlV5K32qd+r7ptzQC7Ds7DQ0sS5QDT07tn5lau7wyACkrXMNC5Y5d?=
 =?us-ascii?Q?sbFoliS3hTHLGq3iFC/yKLlgUQYYxKwv86Y4ARZsEeLKtEB8Vsh+/TdX5p4L?=
 =?us-ascii?Q?Kbb0Ymx5YWdnMFkZ9dJatapNVeHHG7vybq+uoW292f42D8NHi3/NvRtKiqdN?=
 =?us-ascii?Q?bx7s57uYAkIhvLTvbwOzv2gbw5l6Fq7TrMFRTzkTbiW6GooWaj3a50FNdClr?=
 =?us-ascii?Q?FVVp8y4gV5XvHqbbBvhV5JaNNS31ME649vCjCGoTKJBiBeJH4H0/KxIu4pSA?=
 =?us-ascii?Q?dDNv1vS/5AFQ9wszM1EVZnHmlogYfgHflVavc2LF?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: lQb4ip6TRz956t+nZZT5q9+XNk6GQ/MmduAvOKcPOVQIlPutBpe6XQaetm5T2tXgH06o80/TI4mBWhmmpFzzyVDp11HtfgbJxv2xZeC/CUl6arNuxu7FI3KwoDsg7kyz69TMP7pRxHWLuI6AC/x4ZBStDmjuoiTmYoI+WI7oe2IOP/iF7JvTmWzWazwfNmdx8S8qH+ivwLyz4YwDX4WWNU02Vh4OeE6GkB+q8V37j+KeZ3bhWYbAEJymOi+YbfeZMk5WiAiYu5s94sdoShtrXV6nI70C2M+Y5r4AmskJKOUDb6WJXNQayjzIhVojDsmvJ2kaC1f/0mo6QIqXlGiJw2Abl9VHscNTbX/nOpUyXtGX+WZuq6+LwjMSnb11P3zOT4ZUdfL0S/Jko69TIn8m90wHazdXhTAIb3vtKx+Nu2Z3cCLVYsZKgzLCkb85AdXj6OtFuLeRm3uXtTdLtXQFzcwOUMBcxmVOPSjzM1QB8aH2ncOPj+a/eJS5kr9Q6dGjaOZj5YfvhX+08vBxDU9npRpGDKEvl8ykLXmYHMLf32bVcixz/fUmOA1g5AfeC8UZlFvxgFc82svbP320bDp76sgDfh6mm7h7FiTYYXZ0iWo=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7ade5017-587b-4ecf-51aa-08dc706dce2d
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2024 21:20:09.2204 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: tfd8c7Tyawa/381uLs0orxhKZbXa7iUow3OnQE/GM1IJDq/WgPl5AEFdEZXqT56diHLPtXEmPxTpst7P+wxnWg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6466
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-09_12,2024-05-09_01,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0
 suspectscore=0 mlxscore=0
 mlxlogscore=999 spamscore=0 bulkscore=0 phishscore=0 malwarescore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000
 definitions=main-2405090150
X-Proofpoint-ORIG-GUID: 7sLNg6Tfb53eTWS_slPks7e2FbKqijXY
X-Proofpoint-GUID: 7sLNg6Tfb53eTWS_slPks7e2FbKqijXY
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>
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: -1.7 (-)

> When I call dired with a cons DIRNAME, `dired-directory' will be bound
> to that cons.  And it is consulted for reverting.
>=20
> When I overwrite it with just `default-directory' and revert, the result
> will be a "normal" dired buffer showing this directory - the explicit
> listing is lost.

Right.

> In the scenario of the bug this surely makes a difference.

OK; sounds right.

> My latest patch seems to work as expected.
> Any comment about the patch btw?

I can't really judge.  Eyeballing it, it looks
reasonable.

What I see is that when `dired-directory' is a
cons you replace its car, DIRED-DIR, applying this to that car:

 (abbreviate-file-name
   (file-name-as-directory DIRED-DIR))

But the car of a cons `dired-directory' isn't
necessarily a directory name or any file name.
It's just a string used as the Dired buffer
name.  (Often it is a directory name, but it
need not be.)

If it's a directory name then what you're doing
looks right to me.  If it's not then I think
it's probably still OK - that code would
generally just append a `/' to the string.

But if the string has some particular file-name
syntax then maybe there could be some other=20
resulting behavior; dunno.
=20
> Subdir insertion in cons value `dired-directory' buffers=20
> are not really supported currently it seems

Not sure what you mean.  Even in vanilla Emacs,
I think subdir insertion is supported.  E.g.:

M-: (dired (list "foobar" "/tata/file.txt"
                 "/toto/dir/" "/titi/"))

You get a Dired listing in buffer `foobar' with
those 3 filename entries.  Hitting `i' when on
the second entry inserts a listing of directory=20
/toto/dir.  Hitting `i' on the third entry
inserts a listing of directory /titi.  That's
what I see, at least.

But maybe you meant something else?

> so I took this complication aside for now.
> The code does handle the subdir alists, though.

By "the subdir alists" I guess you mean
`dired-subdir-alist'.

___

What I think you've done seems reasonable.  It
should probably be checked in various scenarios,
however - at least a sanity check.




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

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


Received: (at submit) by debbugs.gnu.org; 9 May 2024 21:20:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 17:20:23 2024
Received: from localhost ([127.0.0.1]:40868 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5BBe-0001Yd-PE
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 17:20:23 -0400
Received: from lists.gnu.org ([209.51.188.17]:49424)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s5BBb-0001YX-Ol
 for submit <at> debbugs.gnu.org; Thu, 09 May 2024 17:20:20 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5BBc-0008Fu-36
 for bug-gnu-emacs@HIDDEN; Thu, 09 May 2024 17:20:20 -0400
Received: from mx0b-00069f02.pphosted.com ([205.220.177.32])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1s5BBY-0007Hk-Tt; Thu, 09 May 2024 17:20:19 -0400
Received: from pps.filterd (m0246630.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 449LJx9x020339; Thu, 9 May 2024 21:20:12 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=j/CmVpdC2fwbwkRgkYVTac7RYPZFBZSyl7rfM9Rq5wo=;
 b=a9z76mq+o0qLZRlW21LQuF0yH/FfnJnZgji2t3/hjnVc0h6DZarvcXCB9SylEsWKv/s9
 PioR+vMNYLd7FD9a3/OxAG+HhEGEgHMuGfN7IVdQFrCl0FkNzXU/93TGXiYqRvCsbtbB
 kyW03Q4HREzLgMLphsG0357WmaudDM1WLqjm7jWiZOk/+P5KMzuTvv4G1/s/l8fbv63D
 Q/2lelryoYFWNvSjkkj4KaGd71VfXfmR8mGA+UgCDBCIEO8ltVp8PBFhJM8Kvr6AZNIE
 IhotgKRen5QR8tY/OG8EsMg7bQEJVEZyLRsirEH6MJHBIeMiJVLy7psEXpZsNRqOU5wR +Q== 
Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com
 (iadpaimrmta03.appoci.oracle.com [130.35.103.27])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y14xfr417-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 09 May 2024 21:20:12 +0000
Received: from pps.filterd
 (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1])
 by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 449L5WoF024331; Thu, 9 May 2024 21:20:11 GMT
Received: from nam10-dm6-obe.outbound.protection.outlook.com
 (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101])
 by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfqcjns-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 09 May 2024 21:20:11 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=LS1kZsOUxLL732VPkys1UzogJL/qHqI0Ok6f97VPKrTqjya5l2T3c6IGTvYwX1ArIxfRC2N7q8EZN74Rh2Qn/XujlBKAMczq8Xg8PsK61UMRcOTF6dSR3KaWYepccvIDSbdV7jXAKn6Lf52sa0kOjOMRQ7p4dHzXzpFu7EFD4TtvdmdrbJws8iXagrJMu3HNLLLK9yK0Eg3j/l8BYfg4lmarT9UIEGsMZXcMQ4y3bvHX/YNyPL0RUA3s8QdmuXTLVIJBv7fTp6Z/NPcd/XuszDGLHKmVpxxQHF2sxFeE7wLCb6k7OAX7GeiqKaRXBs6M4czWwmgaYq+XoEuGmTTq4g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=j/CmVpdC2fwbwkRgkYVTac7RYPZFBZSyl7rfM9Rq5wo=;
 b=SvmoBEBYsEELzm6U0rlAFCvLrm546ftW8esYsg5aBxDx9yO/ftyyg6ldf2AvWPtanDt+59Woy9WOWk06ZijHX5og70Wk2vbxzj6C4bO/E+dWFJdZt32gBiGKOdGwb4ja+WlK1K+H1OQfTzQ0Q8I3ZnCg6AyqtBEHUKhfBjczWl2lFn2L/b75vFyJvDql/WeycoP6mz2zdIhuLsj68J3hGyXnIJc0yEqDQ87q51lp8UTrpLNOSrrdzyGxb350bklQu0jTqW0aUhyayZpd6FdhXMAS+TUc+EFuj8VNsn+8Ha1LFXQ6jaITfM55e3264LF2COQKAFaW4KMsnNIcXGcuWA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=j/CmVpdC2fwbwkRgkYVTac7RYPZFBZSyl7rfM9Rq5wo=;
 b=kb5E+uV+ty/hLGRuKrrD4GpL5xmDUtRYxd8SdvawKP0BAPbz1Fr8IQ2DtEqPY8tTwZJAhXGQb3AWH6Aq3IK9aVyZqe2dynH1HDCap2b4QM9cDAnWoxduO4jO8z5RKYPQ1snhjXMenRu7ky8FzIDgkrInTyCL9R8ZUHUfpwXa5qQ=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by CY8PR10MB6466.namprd10.prod.outlook.com (2603:10b6:930:62::10)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.45; Thu, 9 May
 2024 21:20:09 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.046; Thu, 9 May 2024
 21:20:09 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>, "Drew Adams via Bug reports
 for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
Subject: RE: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Topic: [External] : Re: bug#70593: 30.0.50; Dired: buffers of renamed
 dirs are broken
Thread-Index: AQHaokba3q8/h/S5mE6SpOHQYpYaZ7GPX03g
Date: Thu, 9 May 2024 21:20:09 +0000
Message-ID: <SJ0PR10MB5488835B79853A021FBB21AEF3E62@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 <87ikzmg50t.fsf@HIDDEN>
In-Reply-To: <87ikzmg50t.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CY8PR10MB6466:EE_
x-ms-office365-filtering-correlation-id: 7ade5017-587b-4ecf-51aa-08dc706dce2d
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|1800799015|376005|366007|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?EQ2+DjSdW2AwW3nl+pZOJY7BAJddGqulGAeiCzhl99n7VknWcIiELmQhUWSG?=
 =?us-ascii?Q?LBWOnYUN9XA2nRo7p+wyDPcCjHfhqPtUG4ahFuV54eq8FnLC645U6cIhixe+?=
 =?us-ascii?Q?Jg+Zlj1I3bFTxyCCUGGKTAZCTTU1pvBNrKOIFwWAP+t+l5JT0GfGzDET3HtR?=
 =?us-ascii?Q?UqT1X9cjwBebeThP1qK8HU6JrDpzPShV9tG57/zNkgYUnHL/qORxnKMKAaNO?=
 =?us-ascii?Q?TyVgJNHLCGrPqTBoanndubdRPfVdgbQOLw9oDzY28JhZRw2O38n609UU1D9J?=
 =?us-ascii?Q?We8w2+hMEE2WVUZ8QX6SLFHeHMUFnLpBQa5pkFIkqbA+InbMdgm+poFMFLLU?=
 =?us-ascii?Q?x4JaBh90hdvwlCn19folgg3uhTA4ecao2PuuEturKXzqUX3qirrRVz4ZnVAR?=
 =?us-ascii?Q?1NYocD2LkDWKqYw/ivi8xLThj3rP3SA+dAA73dRGE2OwhpXRysz8IrvvEivf?=
 =?us-ascii?Q?PLi2W8ZZ5jXRIYj74VsUluP7y3puJszGvK/mz4NUaOliuBRQRty+AqNo0hB0?=
 =?us-ascii?Q?5hQpQmdus7bHhd/dUfmekXz+WqLnPdx+3YbJyKuEJJ/10/6ccN7cMBAFSYb0?=
 =?us-ascii?Q?iSneBr8+b2oD00sFoyfHt4sc0YrTAZj7xjL4zNx1YVDKCk0nLQy0uZjwhO/Z?=
 =?us-ascii?Q?M+4flBT8Wd9seKzdV/kZa3GQ0y7o7hyNvXd1jX/SetURHtDaxkvdzAyWStWK?=
 =?us-ascii?Q?y0tPVN8XNeXM2H/CQDwpFmDZodC6rcrEuQEjJ1cq6K1+ZHOQ+frSt2HO8MPj?=
 =?us-ascii?Q?3K0ALuoMizojaHNYjZwz2psQ45B9lKfZi/3sQM51nGDvdBONazw8Go0W+ZTu?=
 =?us-ascii?Q?qGQbnFYoAhaZW1acBXFHsQmCdvPOv8l4pm8Ntc0j3NGWgUPnU91bpvk75RUv?=
 =?us-ascii?Q?mLdqjDnvxUVGlQqcutuz6jGrp+wEU3Y0OR7KqLbZ+2vNkozjFN/wy6TaagHa?=
 =?us-ascii?Q?r0/tMhtqerZ/Fm/w65BuvfgmPJbkvrSFtMhKkKfb6CIldWvZW37YPKSJ9vV0?=
 =?us-ascii?Q?B5q0e7PXL22rSpDTG3eajnbp2qJDNCiU4q6anMyrq27BgUAs4/NhhNxXysNh?=
 =?us-ascii?Q?L/9TVSZTSoMVDHus7Iy82H1UG2z19vyh5cKGjArFPVygK4m2JZGF3gvNZV7p?=
 =?us-ascii?Q?5cONaL9JcPIivj1fqsjtU6G+e8G6LtQTKTNGz0eeRsI9oP+ctXSsFiimdFjS?=
 =?us-ascii?Q?BYGQOgtlfzqI0jp6iL4+JbPdD4yqy0GSlvobTk6BmeFMHmXkH9sBIbrv1Jv4?=
 =?us-ascii?Q?L/s73w+N9t5pWxOV+ZX+V2GVxva3Vt6uVFO+47p+G7QAzq512vmucYb4NSe4?=
 =?us-ascii?Q?TkF57WCmmCloW31s2sAy3MNp1SffDj/NXXFZeRov/AYfQQ=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(1800799015)(376005)(366007)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?on8AMvYii8D/1C9vQNufWUqTJPcWTYTTH3fQ5Z4ybb99gj/Yq+tTMypSuFMk?=
 =?us-ascii?Q?8l3gk2aAhBQHZcPgZwti9imfrl7w9obJHfjqcQwefCmUWKHHMx+0WtgNaisC?=
 =?us-ascii?Q?aD+VvtWt8uOybs9DjCJ6TG8qar+y5JScHEBGbSOR7C5mQVdCUpjPDImj7ITW?=
 =?us-ascii?Q?Owaluw+Up9KePjehrd5CtUZPKrPhwHx3rysFnWIBZnhoXQhTxigbxoxP6Ya2?=
 =?us-ascii?Q?eq7x2jZWpksKaLrINg6UHLX3SyWIQTtFp9gwOUuRpr6+k3227aTKdJhWP5Nc?=
 =?us-ascii?Q?fadYuj5Rwvp9D0NvSOJ3OV7W0tvF7zguZXM0AU6ooNyu2MFabPun180n2bu6?=
 =?us-ascii?Q?zc5rTbm4/ovYxuk8uLTgGeBnBbYnWg3XBb3Lhpw2Rz0Hi9MYU721OZLQR0iC?=
 =?us-ascii?Q?6EcSIGjaT8/kX2pz5MTVNe2TwobIcgXORO9Db+LVdAiA03Pk4zl4VdYn9TGt?=
 =?us-ascii?Q?wJJpfio6yczUeZgUJ/nZeS10GUFDV8CKf/0V/sISzxZA+OGI1+V0qt08i+Mg?=
 =?us-ascii?Q?JC6ridbYXnrbSe1Uf/HCh3Otl7TVPaDcN9bnXCKnMVBw9oYyQvUDU/4DMwC4?=
 =?us-ascii?Q?qTFhZPL45I+E36vrf0iDvTvc8uBoKxMB6mer59ifMWNpY2zuopCMA2BbwtkK?=
 =?us-ascii?Q?RsiK+jfqCXqsBOip8rG6pXalWVxBT/CAe3wvbcRWOuV/Q5PokEHtytDSyWMM?=
 =?us-ascii?Q?1lUHDlJG3k+j5BcVNZnl1l+Y/QsSXUq+EPlZuQx9Fjh6zpQUBRgXZA68r/Nl?=
 =?us-ascii?Q?knLsQjr8zh6y5ci+NGT0wNJuFOIRu9ZYc6jHMwSunhbSTboUvpUvitJIy+LR?=
 =?us-ascii?Q?FsjFR5GG8mEMCbXF8a55Qp8PolxDttIVBoVTMoJ45MJj5THq8rGvnTwCjPyB?=
 =?us-ascii?Q?DZjmPukDLSwbzT14yzX+GCbF1AdK42KiuXN4Cf59wg3bARqNuf+/2zAYB8yv?=
 =?us-ascii?Q?uKomCLrSMq/BgtSr9WFlcHJBVOy/aqQkIHYnkPFIKjhTwvyD1Gzys0yrEcgt?=
 =?us-ascii?Q?+0CB47TLaYl/8m9hT0D3LyinqYJz2RP1yop2top7qfF4HtnxhZ+zymgbOi6V?=
 =?us-ascii?Q?rBVNZU7lD1K+fZywLxc4Ra6AZw0YA/Qj1RWubB8eqqIw6jehsZx6trIGaPEr?=
 =?us-ascii?Q?IEkKyq3vY6Aa8SRsroInAZ5NwuEdwkFTpX2jj6+pD7PfINPEZ11zVufA2ILB?=
 =?us-ascii?Q?rGJdCccSq0ZG9GR7/4eCDdT1Ly+8uk2x98YBlQCWSwYAaNQz9IRMHjK/xPnC?=
 =?us-ascii?Q?6ZW9zU5hlV5K32qd+r7ptzQC7Ds7DQ0sS5QDT07tn5lau7wyACkrXMNC5Y5d?=
 =?us-ascii?Q?sbFoliS3hTHLGq3iFC/yKLlgUQYYxKwv86Y4ARZsEeLKtEB8Vsh+/TdX5p4L?=
 =?us-ascii?Q?Kbb0Ymx5YWdnMFkZ9dJatapNVeHHG7vybq+uoW292f42D8NHi3/NvRtKiqdN?=
 =?us-ascii?Q?bx7s57uYAkIhvLTvbwOzv2gbw5l6Fq7TrMFRTzkTbiW6GooWaj3a50FNdClr?=
 =?us-ascii?Q?FVVp8y4gV5XvHqbbBvhV5JaNNS31ME649vCjCGoTKJBiBeJH4H0/KxIu4pSA?=
 =?us-ascii?Q?dDNv1vS/5AFQ9wszM1EVZnHmlogYfgHflVavc2LF?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: lQb4ip6TRz956t+nZZT5q9+XNk6GQ/MmduAvOKcPOVQIlPutBpe6XQaetm5T2tXgH06o80/TI4mBWhmmpFzzyVDp11HtfgbJxv2xZeC/CUl6arNuxu7FI3KwoDsg7kyz69TMP7pRxHWLuI6AC/x4ZBStDmjuoiTmYoI+WI7oe2IOP/iF7JvTmWzWazwfNmdx8S8qH+ivwLyz4YwDX4WWNU02Vh4OeE6GkB+q8V37j+KeZ3bhWYbAEJymOi+YbfeZMk5WiAiYu5s94sdoShtrXV6nI70C2M+Y5r4AmskJKOUDb6WJXNQayjzIhVojDsmvJ2kaC1f/0mo6QIqXlGiJw2Abl9VHscNTbX/nOpUyXtGX+WZuq6+LwjMSnb11P3zOT4ZUdfL0S/Jko69TIn8m90wHazdXhTAIb3vtKx+Nu2Z3cCLVYsZKgzLCkb85AdXj6OtFuLeRm3uXtTdLtXQFzcwOUMBcxmVOPSjzM1QB8aH2ncOPj+a/eJS5kr9Q6dGjaOZj5YfvhX+08vBxDU9npRpGDKEvl8ykLXmYHMLf32bVcixz/fUmOA1g5AfeC8UZlFvxgFc82svbP320bDp76sgDfh6mm7h7FiTYYXZ0iWo=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7ade5017-587b-4ecf-51aa-08dc706dce2d
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2024 21:20:09.2204 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: tfd8c7Tyawa/381uLs0orxhKZbXa7iUow3OnQE/GM1IJDq/WgPl5AEFdEZXqT56diHLPtXEmPxTpst7P+wxnWg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6466
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-09_12,2024-05-09_01,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0
 suspectscore=0 mlxscore=0
 mlxlogscore=999 spamscore=0 bulkscore=0 phishscore=0 malwarescore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000
 definitions=main-2405090150
X-Proofpoint-ORIG-GUID: 7sLNg6Tfb53eTWS_slPks7e2FbKqijXY
X-Proofpoint-GUID: 7sLNg6Tfb53eTWS_slPks7e2FbKqijXY
Received-SPF: pass client-ip=205.220.177.32;
 envelope-from=drew.adams@HIDDEN; helo=mx0b-00069f02.pphosted.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>
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.3 (--)

> When I call dired with a cons DIRNAME, `dired-directory' will be bound
> to that cons.  And it is consulted for reverting.
>=20
> When I overwrite it with just `default-directory' and revert, the result
> will be a "normal" dired buffer showing this directory - the explicit
> listing is lost.

Right.

> In the scenario of the bug this surely makes a difference.

OK; sounds right.

> My latest patch seems to work as expected.
> Any comment about the patch btw?

I can't really judge.  Eyeballing it, it looks
reasonable.

What I see is that when `dired-directory' is a
cons you replace its car, DIRED-DIR, applying this to that car:

 (abbreviate-file-name
   (file-name-as-directory DIRED-DIR))

But the car of a cons `dired-directory' isn't
necessarily a directory name or any file name.
It's just a string used as the Dired buffer
name.  (Often it is a directory name, but it
need not be.)

If it's a directory name then what you're doing
looks right to me.  If it's not then I think
it's probably still OK - that code would
generally just append a `/' to the string.

But if the string has some particular file-name
syntax then maybe there could be some other=20
resulting behavior; dunno.
=20
> Subdir insertion in cons value `dired-directory' buffers=20
> are not really supported currently it seems

Not sure what you mean.  Even in vanilla Emacs,
I think subdir insertion is supported.  E.g.:

M-: (dired (list "foobar" "/tata/file.txt"
                 "/toto/dir/" "/titi/"))

You get a Dired listing in buffer `foobar' with
those 3 filename entries.  Hitting `i' when on
the second entry inserts a listing of directory=20
/toto/dir.  Hitting `i' on the third entry
inserts a listing of directory /titi.  That's
what I see, at least.

But maybe you meant something else?

> so I took this complication aside for now.
> The code does handle the subdir alists, though.

By "the subdir alists" I guess you mean
`dired-subdir-alist'.

___

What I think you've done seems reasonable.  It
should probably be checked in various scenarios,
however - at least a sanity check.




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

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


Received: (at 70593) by debbugs.gnu.org; 9 May 2024 19:26:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 15:26:45 2024
Received: from localhost ([127.0.0.1]:40804 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s59Ph-0000d0-BH
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 15:26:45 -0400
Received: from mout.web.de ([212.227.15.4]:47575)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s59Pc-0000cr-TE
 for 70593 <at> debbugs.gnu.org; Thu, 09 May 2024 15:26:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715282792; x=1715887592;
 i=michael_heerdegen@HIDDEN;
 bh=pwxtVos+4I1dZTy8Fqkg7GM2bo7i9ogwPmnfQxICAUA=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=Pybf4Z85OCpEhAruGetpke+pGl+3EOqmAAj0xfxft+US+S68tTb7gTifGLoecLp0
 Ow35ixv+ySyIU+xuUrCr6l00sntpbYDqUlXQCdRoTE3FvLqkIMUmPBzDkg/WXONYt
 vIb/pXlqHgobXQEbc8/5N67UleDDOOCoCA9uD+F2kZyNamSCwtufNnaWRLmlAlkCo
 wqSI5bGSoEazYMlRkfK0+7AGMbQCsLcI5YZVtRfv3MoNhQ2xkzx62eDSEuhetrSxU
 qmI84OQPtEmq8dV2AvJku1VhRqNwkNGNmk6AHQsJr979aHafxmE25C4v/BGHfmTcC
 ghnbgooitPdp29+yjw==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb006
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M1rTQ-1s2xY81LNg-002McC; Thu, 09
 May 2024 21:26:32 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Drew Adams via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 (Drew Adams via's message of "Thu, 9 May 2024 16:30:18 +0000")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
Date: Thu, 09 May 2024 21:27:14 +0200
Message-ID: <87ikzmg50t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:qeClarNWhMYEOn8il/lBNnvdITQyQuZyIvUkv6dZveqQDchmhDJ
 P/q+Ctpo7TvCw/pXYycVHXEpJloJpYU//KI3lVB6z1tZliri3Bhg4yqw+m6laNJbP5qYv86
 LrNWNpuSsd9ZeHJaexzCozN9EZYbyr47hVQ9l8WYve2IPw/38F54rxae7OxxTI92h6AbQ3P
 vGBBdhckhGgXprGfYgumw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:ixKWc+W9kCw=;zwf6rakvHjVL+QIBva9dQrKmi0p
 FjuL4ZJ8vpuPKty1yH/0+bTKfJkcIB5me6u3n+sdGhPe5npLFgJQmlStiwGKd7wpX+SA4ibjD
 gGIwcIP6+/1JBQwhqyODyYiFBYN/Ye6QyBmWeM2ZNIe+LI9M/jGFuCNdRU/P4wK3AQZoYweFN
 DWOwHqI00PpB/7xas7sjbI/YKMlrvi/gsovRm+LE4HRHqtcocWXO5ioYJlRGZl2yzXJZsi2md
 sFedkq3Zvsgn4edf9Be6SjP9uGYJG62+H/Axh7YtnVjv1DvkpHlep6G7qoTQXCH/NcKFnqHeh
 P6g7hVaRIOyzxMxRIOp0gxhBYjeyEKck2DzbUDF4VuEhkpAp0XiramWS1NgMTIA9dX8PC2daB
 MkhySVv7T+ZpRgiEz+DV3+3laK9hGCX9jSpkLTAKJ2u14SmvqkK8RroRZZCV9S7Q+jVLkfLok
 qpiTBGardm9XvvZ95BvqXSvneNY+nzxVktBOIWJ/Yy54thWFUXC4NAFuek4tTx8ZgjM2EOVIT
 LFKnoXLNOv4PGFgVhdpASH/QlmFGKFGAvTxOldnmgH2DRbeqgluf3M2ES1VI/LQyPMFjImSUp
 oN5tm/UkOFZw36mV5jb7qrHOzW99QnrJ5VdIokHL6yQihxPzjynGjgChIoVv8LiudZuvDawFP
 N94csfHYr1om7zVNAGgekZIZ+pXNHsKaNLNRUciYpgslkpwhyAtwK+JTPnk9JLU+YlLbaAxn4
 RUw+kH6yBtY946ibr5LXVXEPCJGf1t8sZ3lrOmKm9fMcU8G+F8b4UOsrA/oixOHaQBXeZw8+z
 UAFA1slQqRG6a/Vcag2FzKcydmFupLpKPTenvPmJLTvWk=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
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: -1.7 (-)

Drew Adams via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@HIDDEN> writes:

> `dired-directory' is a buffer-local variable.
> I don't think there's any support for subdir
> listings that are of arbitrary files (i.e., cons
> `dired-directory').  I don't recall, but I think
> that's the case - in which case it shouldn't
> matter that such a list of arbitrary files is
> discarded here.  But it should be checked first.

Not sure whether I can follow.

When I call dired with a cons DIRNAME, `dired-directory' will be bound
to that cons.  And it is consulted for reverting.

When I overwrite it with just `default-directory' and revert, the result
will be a "normal" dired buffer showing this directory - the explicit
listing is lost.

In the scenario of the bug this surely makes a difference.  My latest
patch seems to work as expected.  Any comment about the patch btw?


Subdir insertion in cons value `dired-directory' buffers are not really
supported currently it seems so I took this complication aside for now.
The code does handle the subdir alists, though.


Thanks for your comments so far Drew,

Michael.




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

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


Received: (at submit) by debbugs.gnu.org; 9 May 2024 19:26:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 15:26:53 2024
Received: from localhost ([127.0.0.1]:40807 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s59Po-0000dD-MM
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 15:26:52 -0400
Received: from lists.gnu.org ([209.51.188.17]:53124)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s59Pm-0000d7-JH
 for submit <at> debbugs.gnu.org; Thu, 09 May 2024 15:26:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s59Pn-0006Xh-0c
 for bug-gnu-emacs@HIDDEN; Thu, 09 May 2024 15:26:51 -0400
Received: from mout.web.de ([212.227.15.4])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s59Pk-00086m-6U; Thu, 09 May 2024 15:26:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715282792; x=1715887592;
 i=michael_heerdegen@HIDDEN;
 bh=pwxtVos+4I1dZTy8Fqkg7GM2bo7i9ogwPmnfQxICAUA=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=Pybf4Z85OCpEhAruGetpke+pGl+3EOqmAAj0xfxft+US+S68tTb7gTifGLoecLp0
 Ow35ixv+ySyIU+xuUrCr6l00sntpbYDqUlXQCdRoTE3FvLqkIMUmPBzDkg/WXONYt
 vIb/pXlqHgobXQEbc8/5N67UleDDOOCoCA9uD+F2kZyNamSCwtufNnaWRLmlAlkCo
 wqSI5bGSoEazYMlRkfK0+7AGMbQCsLcI5YZVtRfv3MoNhQ2xkzx62eDSEuhetrSxU
 qmI84OQPtEmq8dV2AvJku1VhRqNwkNGNmk6AHQsJr979aHafxmE25C4v/BGHfmTcC
 ghnbgooitPdp29+yjw==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb006
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M1rTQ-1s2xY81LNg-002McC; Thu, 09
 May 2024 21:26:32 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Drew Adams via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
 (Drew Adams via's message of "Thu, 9 May 2024 16:30:18 +0000")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
 <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
Date: Thu, 09 May 2024 21:27:14 +0200
Message-ID: <87ikzmg50t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:qeClarNWhMYEOn8il/lBNnvdITQyQuZyIvUkv6dZveqQDchmhDJ
 P/q+Ctpo7TvCw/pXYycVHXEpJloJpYU//KI3lVB6z1tZliri3Bhg4yqw+m6laNJbP5qYv86
 LrNWNpuSsd9ZeHJaexzCozN9EZYbyr47hVQ9l8WYve2IPw/38F54rxae7OxxTI92h6AbQ3P
 vGBBdhckhGgXprGfYgumw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:ixKWc+W9kCw=;zwf6rakvHjVL+QIBva9dQrKmi0p
 FjuL4ZJ8vpuPKty1yH/0+bTKfJkcIB5me6u3n+sdGhPe5npLFgJQmlStiwGKd7wpX+SA4ibjD
 gGIwcIP6+/1JBQwhqyODyYiFBYN/Ye6QyBmWeM2ZNIe+LI9M/jGFuCNdRU/P4wK3AQZoYweFN
 DWOwHqI00PpB/7xas7sjbI/YKMlrvi/gsovRm+LE4HRHqtcocWXO5ioYJlRGZl2yzXJZsi2md
 sFedkq3Zvsgn4edf9Be6SjP9uGYJG62+H/Axh7YtnVjv1DvkpHlep6G7qoTQXCH/NcKFnqHeh
 P6g7hVaRIOyzxMxRIOp0gxhBYjeyEKck2DzbUDF4VuEhkpAp0XiramWS1NgMTIA9dX8PC2daB
 MkhySVv7T+ZpRgiEz+DV3+3laK9hGCX9jSpkLTAKJ2u14SmvqkK8RroRZZCV9S7Q+jVLkfLok
 qpiTBGardm9XvvZ95BvqXSvneNY+nzxVktBOIWJ/Yy54thWFUXC4NAFuek4tTx8ZgjM2EOVIT
 LFKnoXLNOv4PGFgVhdpASH/QlmFGKFGAvTxOldnmgH2DRbeqgluf3M2ES1VI/LQyPMFjImSUp
 oN5tm/UkOFZw36mV5jb7qrHOzW99QnrJ5VdIokHL6yQihxPzjynGjgChIoVv8LiudZuvDawFP
 N94csfHYr1om7zVNAGgekZIZ+pXNHsKaNLNRUciYpgslkpwhyAtwK+JTPnk9JLU+YlLbaAxn4
 RUw+kH6yBtY946ibr5LXVXEPCJGf1t8sZ3lrOmKm9fMcU8G+F8b4UOsrA/oixOHaQBXeZw8+z
 UAFA1slQqRG6a/Vcag2FzKcydmFupLpKPTenvPmJLTvWk=
Received-SPF: pass client-ip=212.227.15.4;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "70593 <at> debbugs.gnu.org" <70593 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
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.3 (--)

Drew Adams via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@HIDDEN> writes:

> `dired-directory' is a buffer-local variable.
> I don't think there's any support for subdir
> listings that are of arbitrary files (i.e., cons
> `dired-directory').  I don't recall, but I think
> that's the case - in which case it shouldn't
> matter that such a list of arbitrary files is
> discarded here.  But it should be checked first.

Not sure whether I can follow.

When I call dired with a cons DIRNAME, `dired-directory' will be bound
to that cons.  And it is consulted for reverting.

When I overwrite it with just `default-directory' and revert, the result
will be a "normal" dired buffer showing this directory - the explicit
listing is lost.

In the scenario of the bug this surely makes a difference.  My latest
patch seems to work as expected.  Any comment about the patch btw?


Subdir insertion in cons value `dired-directory' buffers are not really
supported currently it seems so I took this complication aside for now.
The code does handle the subdir alists, though.


Thanks for your comments so far Drew,

Michael.




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

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


Received: (at 70593) by debbugs.gnu.org; 9 May 2024 16:42:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 12:42:14 2024
Received: from localhost ([127.0.0.1]:56226 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s56qT-000883-Pc
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 12:42:14 -0400
Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:7878)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1s56qQ-00087x-4H
 for 70593 <at> debbugs.gnu.org; Thu, 09 May 2024 12:42:12 -0400
Received: from pps.filterd (m0246627.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id
 449GZqOv015540; Thu, 9 May 2024 16:41:42 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2023-11-20;
 bh=VSkAFnCQ0mKs0TYxfezePCbwCm8X1o9CAKljGpux0I4=;
 b=GHQGCu/znypL8ero3Ov10puQfyKHUyrKljECqwhG9DVFb6ajy2NrtOfbBN0aBOci1GBe
 wR8Fr0IhWe5ZeuAU8ygXJQJ0qah+kmM/mLVBkglPwWqlN9fjcPFVyzy7mBAWA1hQkuMq
 cqwWpuZ4daPPedkLYiytPQOb9Syrnfg1CPuZ1F2N5bkhkqvKL0M0ZSmSLeooXJtYbaK0
 jmvIUcNGL/0cu3iALyQicYdWkifCpXS9XNwjixRdE4eiHKyxETnlLzwqLWv/BDrQRd56
 6v3XNlvSGbh1Ap/xPgXKVgipMkcumqELBh4vQ6+K0QgrtWCynePKqn6JwpsYRa5aOKIy Yw== 
Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com
 (phxpaimrmta01.appoci.oracle.com [138.1.114.2])
 by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y10e0rch7-31
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 09 May 2024 16:41:42 +0000
Received: from pps.filterd
 (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1])
 by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19)
 with ESMTP id 449G24BR031708; Thu, 9 May 2024 16:30:20 GMT
Received: from nam12-dm6-obe.outbound.protection.outlook.com
 (mail-dm6nam12lp2168.outbound.protection.outlook.com [104.47.59.168])
 by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id
 3xysfkfjgg-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 09 May 2024 16:30:20 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=iYsO4dExvujhw6aB8gzBrpl9IGbrQ3DrODMYA0igqxzr13troDnxoHCD7mxgJ9vXt3WoBuEpvjw+iezmOmVAMXlHsewVa5v7nZkRMtEJ3NMh44EBdyw1qghmuwfyP9WsP5+9XM98oD8Av1dOWR51SCpcCCrHXbMWr5FDf8ZsoHGPsF1gqa4YnUnLqoetx2AYHDJdUQfVAlrRLJ34aCXnGBV9WPaMJ/Qa+O//HQW8sYDOMGelrOcaYuHVLJfkA0x6cl42Kx9yqxqaopl8ouVBqLM9I9/VArWw4cwxgocDP1T56PERBx8SU78sBrHT1ae5tL/cdReZvO0tmJUY7xIUTg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=VSkAFnCQ0mKs0TYxfezePCbwCm8X1o9CAKljGpux0I4=;
 b=Imxb1X8cdvYhod/KLLfDaZpxtr1NGPiah+mdT3KEhWNxAgoZ/BX0MfFDaxXIUKJmYtOMjIxI/toPYbC5IY8q8yaK5jS6Km0PXGX/LY6NeADaQeMd+Rbg+XPUgzJOp23vRtD3BUBVFKYRJRTxZuuloy0N4zzlKcaBQ4W+oW/o+1QfpnIdFLwAtmVKY5z4Ejhbi/SYcrD40ylDpD1fx3Fd3S8+cy88vg1RI4+eQs+81Y2eNJroUaMSrbneqSNoWRje09HP9f97RRwGtsk40+DdQX/vbjH/k8WEBdmFCvtr8YJreuXDvGyG9JmgWe+0laMfmLlT9HlxtgX6qUAkASSzFQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=VSkAFnCQ0mKs0TYxfezePCbwCm8X1o9CAKljGpux0I4=;
 b=t5hdqC1HIBQ65yKFup9ljITO1GGVgSpZrxyX4qsTe2uU+sn6ZtDlnWJWIC0MO2gYRK3WT/aT/GILAnPQF3AvkZzvbXSNF2MsuEuKhFDfETWjUfz2c2dMd+gBZB76sFZb9NjyMi90ASUeytyFZoc616sAPU7XPzUMM7NDlc5XnAg=
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by SA1PR10MB7681.namprd10.prod.outlook.com (2603:10b6:806:375::5)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.45; Thu, 9 May
 2024 16:30:18 +0000
Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7544.046; Thu, 9 May 2024
 16:30:18 +0000
From: Drew Adams <drew.adams@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: RE: [External] : bug#70593: 30.0.50; Dired: buffers of renamed dirs
 are broken
Thread-Topic: [External] : bug#70593: 30.0.50; Dired: buffers of renamed dirs
 are broken
Thread-Index: AQHaohdZBQOIzhYsSUqGyEKwPC+0RLGPBCkA
Date: Thu, 9 May 2024 16:30:18 +0000
Message-ID: <SJ0PR10MB5488FBE35907E2A1BD77CB8CF3E62@HIDDEN>
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
In-Reply-To: <87msozqes5.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|SA1PR10MB7681:EE_
x-ms-office365-filtering-correlation-id: 733a892a-c442-41e7-ce9c-08dc70455083
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230031|1800799015|376005|366007|38070700009;
x-microsoft-antispam-message-info: =?us-ascii?Q?585zq3UQQOfQb1obYnN6Rq/godrG8oL9NEUKKOJfkwQ9svE565YwrQo5Ryq0?=
 =?us-ascii?Q?JFAGsux7FzOwnHswbx/E/q3+2RPhQf/xXXL3EsrrftNMnZcY/swmX39OiIYy?=
 =?us-ascii?Q?rzkS1KmkpwxKn5yuDCH2s/JYDuCIQG/60ODhKEyAkNCFmeNxUY/1KwqKoS1v?=
 =?us-ascii?Q?v1J+bGp+hU4Z2BGNrttsQpfTXvL2qLgNyYM306plrQ2g7o8KxG4ieCQ7haxX?=
 =?us-ascii?Q?qTWC8Xseke7hW3Jf71GzsXGhm4vLuPVA7HgbZRyjwVMQZcionIIYMgvUedl+?=
 =?us-ascii?Q?1GK7TxdC4pQ5gLNuOLt/CGbXBq/ozn9Kh3U6sgYa5ibNQu44GBakvnyWJ0fn?=
 =?us-ascii?Q?Xm9TmdNqfiVjxynOlCK2tko+3+IN4p15hJrsHt016pn+U6SHBoGxjKGaCNP9?=
 =?us-ascii?Q?KmOrG37HppJO8xABQjwirtYr+c0jZW8trZzLrqTKuz6NVqAEJrN9BDZ9ic2n?=
 =?us-ascii?Q?WFOjHIM+6mQMnjM2kPwkNDw5AIrUvoYYy3oB2kqRg9ZxSCBmi72QJmNd751r?=
 =?us-ascii?Q?wyPfwjTuAmwTdQunpUzlegRxobt9AUru/58xkUeGVtonUy6L84Eo7KuGpaG6?=
 =?us-ascii?Q?4FFk0Xfjk55RHxImGQ79EDC5eeEtoGpz3Ho3YMJSn5T4SG+pMKKXgsYAiMcR?=
 =?us-ascii?Q?sMz6ssuIBVhALuzpDqYvjJnqXFv/6RmU18B+MHAbcb6Px6lNnbusqUP0OWjE?=
 =?us-ascii?Q?Iy3l/l+rseVv+3qt22TGm728RFRlZUcnk3SQ+YXFcx5cEN3VzHeZhbCKd8SZ?=
 =?us-ascii?Q?hodTUA/OFO1LxfoukF6Iv/VDi6RFvMz/EXwUyT8t09hTR3cPQayGoXTHnVMK?=
 =?us-ascii?Q?5+JBp97zYBMWSGtH3A7dyET/zJ6pn8m9glhSu8y+tFVTkaOEMliqUtHJTYVq?=
 =?us-ascii?Q?UHeNOY5clXqkeetHoDJ05SOZBRY5AO8+Y+BfyLQCS6BT3pIA01Qzp8tVLi5J?=
 =?us-ascii?Q?qxpg3h3wPC+Ku1Su9TcKNwnqMcanN1xLlebezygNNqJty8ysSRZNn9Cqvvye?=
 =?us-ascii?Q?Vz4ZIZkBk0Da7tLb2efvZTEWsImOjjtMvfujAYBsY9vrSAnOOj6UtgWNDwPg?=
 =?us-ascii?Q?CuMzc19haHWvODbFM10Yw+IdnTt71zLEhs/6PeMFUsHolbZ2rD9ph2g/Lm6y?=
 =?us-ascii?Q?ScK6xTj3A9kzQkDxMZuLiK3Dn+BeY71FpLRj+1lHTy5q7D0XsMI2jk2kIcue?=
 =?us-ascii?Q?6AR0AUaQ0Sa5R8OB3Hf5ZgwtM+wkjD4RtkCbHKThEUrffRnTQDZcgMyCTzbD?=
 =?us-ascii?Q?M8FXb8JJNI3ST51SqIryEq2fYJLyr5JmJE4APDxfqi5TDTj+xAx+CAHsgFtT?=
 =?us-ascii?Q?nmjqVD9l2s7gcZXORWKDEV3MaoA7SgQohit6Ugy/R3filQ=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(1800799015)(376005)(366007)(38070700009); DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Ht7gkJh2qauSFAolTZZtMxhIP2fnV5wQIgMDFie/Z7uDk9+XaJ0MLW92mDiq?=
 =?us-ascii?Q?H7+V7EfYaKV5Nzj6dLbwTA58T5v4tRzk6fx/QZ7t+ukocSw5CswcqjQG969t?=
 =?us-ascii?Q?+8hnIGSKgTF5eY0UiVl0aWmjUIErCQGTf0Oq0ofxlob72lwuJJ5K8s7r4z5D?=
 =?us-ascii?Q?0jmGyzALWDGIJl8kCUTGriowP5ulG39XfUamAe4xSu/NEzRYXzbX2zJAVDhE?=
 =?us-ascii?Q?WMYkY4ej2bCG4Er5BtgFtVoPcacX1qIBSGnOeFJw5uxoG881529FI0tyBntr?=
 =?us-ascii?Q?YcHk2T3HmfZYKcuxcZfzJsbIDHpY8W4PsqqzNRvNDOfaDkvipETcIPulg1IS?=
 =?us-ascii?Q?oFDbjlzDXmMJJG44jJ4wJx39rlGN3SDuHKaW2ypETI9QTu35ZSF39NtVuHlz?=
 =?us-ascii?Q?ElYOuUGWz7SoRqSdDJjrZUkaPp1+pc1rRGieslc8HeXdpRjSr3qF6JsaPxVg?=
 =?us-ascii?Q?rQzjJfrVhIQBUFyl97BqwLyds8IdsABWXNbhDspCNF0yGv5gm8uGwJpctW39?=
 =?us-ascii?Q?OtPoHhI6V0bMJhfEo8geVYMES/RpeefdCjDPtHQmJRta0cbPjjIpOYN59FYj?=
 =?us-ascii?Q?W8HYWrMe6eZNn1JIJyIRGmw6QCnZk8D9TPI8YzIgNaQjXypafAWlzF8E19P4?=
 =?us-ascii?Q?Cn6yNGYrhuZbRDa8vA65DPKD2NQRCrhglxCxxq2SufURq+dMMTfil/FRmbjG?=
 =?us-ascii?Q?Om/Wg+zxaOrAh7oSq+G4WW5a1w6r1dlWGhhynrT16Y8vsnbDMI3WNlnne0zK?=
 =?us-ascii?Q?McP5GAcxDUwpONSDE4WXn8zJ17R+lpNvCBsBPsp6vFIUypwC1vBklSykJ+8r?=
 =?us-ascii?Q?igHMbvG9uli6NBENANdLP4UFb6SG3GaIeLyGIZmn3iVW8+8EH//nzAHRc1zA?=
 =?us-ascii?Q?9CD/vI/rwId9JObylHWvLc643WlhO5JqGFtJpeKUOtuxRWMVbFL8RjJjbgPM?=
 =?us-ascii?Q?R0aCorN3+/Usp59llBgNBZZkcRURuUHFyhoL+3TrLHGQad48l8LN163ziKo9?=
 =?us-ascii?Q?jvcx/XL9asfYOiIALumYYsxtKwRS27/24sJkp5m2cEKH0tFMql/t8SXZZ7Mb?=
 =?us-ascii?Q?U1JTCPR1vsDZOfDm/RcJfDWbuRxCHODfij33ZXtArnrYTuwTr6qNxjUn43HY?=
 =?us-ascii?Q?vrN+X30mFlpCHqiyaFCWMT5yOFpNUnObolythshn4NavDjLmClM5Dl8sLwF+?=
 =?us-ascii?Q?K0fxshdURfu8g6/pCY7ZEifq8nM3vDaYoEFy3XgzyxiXCipblyl5vhds/Zhw?=
 =?us-ascii?Q?Iqr7L5lgrC3y5Y4aWrQmVHqtmnHxAJtFgDgvTqrtDn+h6ZpDAkN1FWyWrB+h?=
 =?us-ascii?Q?fx1UIsvbiwxlXsK5fcX2rE0qkkF7Gh/MC9LrQJOgvGfV7h0x3D2I/wLicsID?=
 =?us-ascii?Q?kO4Idb10WlrCAC+TyD2yxVAceHaAR0eorg4fHVODVjZiKt+81PQGVroImbFI?=
 =?us-ascii?Q?CQ8XEpbz6bKIYjlDwbieu+FOdPa2MvxCLogMnbZ/TXtJYvjVAa6ndZOHEiyy?=
 =?us-ascii?Q?FDDMrvFpM15RnlIU18To5sm9Ua2jFFjsWVG5ojx0zWulPOB2YyhhEaKoGF04?=
 =?us-ascii?Q?9a9/fhSdFFWgDOXKYfdPPDLzEd301y/YOb5LGbvq?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: a4Tkj+Zfi7BXVgEW0EbcV77E8OOC/O/SEw4gSmoyHPN3IKkLSHcgVuVlUbVHM24/d/TL+3WchQr+FdANPOR0UiskWDiIVKSZ2Qlmmk8+vACbqkCAqp5CKUVh97HqOr/v+cftMI03OaaXyY/OciT0A3jjJW5023o550Je9TyVbavxtcX9++yUL8dw5UBnSpt09xRIC8O3Jwy0nMhA6txIowwVj22+Vm/0ttWJFKy8WDzLlSAnysokWm80NAlgelyGdtjUpJDgq/cd5bH/MNhbNzlFn4Gf7FFGmbQw0BTsT2roM6yQzuaCgDm83pZ+uxQiQXpDWuFr4JOP3jTRwZuEsYdqKL0uKd7isfNhh9nqIXYAnCDVYLHSpw1y3tW6RGmIp5wx3v30VKBJ7dr/GBoZnJy49FsBgxXw0H99GHdLTvSx25jad6gbMHIGYIqBpVckxg1w0w9B1PnoJj7Q3m7FwkdXNobnNCZPdP/2nUGOFOOY14JSbQvdZYXiNUJr5U1L2FewbqVXb7kFBLwSRmdU3G7nsh4v3IyYqmlbVP48E2anSItjDFLTUGteTr0Sj7C3exueP5XI6dRxgQkx1+eo48+juE5QYmwWXrVSsrcbTMs=
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 733a892a-c442-41e7-ce9c-08dc70455083
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2024 16:30:18.5025 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: uNISpSQfpXr/1jMESRbBqtwo5USjwPXRx09TBjezVuxgOQqUStKX4F8OFT/6npjI+zAOyIth5c6duS+jAZMX2Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB7681
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26
 definitions=2024-05-09_08,2024-05-09_01,2023-05-22_02
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0
 mlxlogscore=999
 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0
 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2405010000 definitions=main-2405090113
X-Proofpoint-GUID: vC-g5g5UCGaGgV7YIewNfI4z4rZRkcDr
X-Proofpoint-ORIG-GUID: vC-g5g5UCGaGgV7YIewNfI4z4rZRkcDr
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: "70593 <at> debbugs.gnu.org" <70593 <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: -1.7 (-)

> I'm CC'ing Drew.  Drew, do you happen to have any experience with this
> case case (in general)?

Thanks for cc'ing me.

No, I have no particular experience with the
`dired-rename-subdir' code, other than using it in
typical ways.

In general, the support for a cons value of
`dired-directory' is not 100% wonderful.  I'm not
surprised when some uses of `dired-directory' don't
really handle the cons case or don't handle it well.

IMO the cons case is an important Dired feature,
but it's not taken into account well everywhere.

This is maybe partly the result of it being ignored
when changes have been made over the years to some
of the underlying basic functions.  IOW, use of a
cons `dired-directory' might not get tested after
some basic-level code change.

A Dired listing of arbitrary files (the cons case)
can be complicated, especially when it comes to
reverting the listing and in the face of changes
such as renamings.  Some of the basic plumbing
functions can be involved, and that's where some
of the complication lies.

Dunno whether it helps or would waste your time,
but in dired+.el I redefined some if the basic
functions to support a cons `dired-directory'.
E.g., you might look at `dired-buffers-for-dir'.
This is the comment for it in dired+.el:

;; REPLACE ORIGINAL in `dired.el'.
;;
;; 1. Allow for consp `dired-directory' too.
;; 2. Updated for Emacs 28: Added optional arg SUBDIRS-P.
;; 3. Fix for Emacs bug #52395.  Expand DIR with
;;    `default-directory', so `file-name-as-directory'
;;    gets applied to absolute name.  Otherwise,
;;    (dired-buffers-for-dir "~/some/dir/") returns nil,
;;    because the element in `dired-subdir-alist' is
;;    ("/the/home/dir/some/dir/" . #<buffer dir>), not
;;    ("~/some/dir/" . #<buffer dir>).

> In the meantime I've though about this particular question:
>=20
> > (1) What do we need to do we do when `dired-directory' is a cons
> > (i.e. dir along with a file list)?  The existing code just threw away
> > the file list (that's why I unified the cases for now - the code didn't
> > make sense to me).

`dired-directory' is a buffer-local variable.
I don't think there's any support for subdir
listings that are of arbitrary files (i.e., cons
`dired-directory').  I don't recall, but I think
that's the case - in which case it shouldn't
matter that such a list of arbitrary files is
discarded here.  But it should be checked first.
And maybe there's a need for an error message
somewhere if things aren't as expected (?).

However, the explicit list of files can of course
include (arbitrary) directory names.  And in the
Dired buffer you can use `i' to insert a "subdir"
listing (which really means you can insert a
listing of any of the directories that are listed).

If you do that to insert a directory that's one of
the arbitrary files listed in `dired-directory',
then the files and dirs listed in that inserted
directory listing are not included in the
`dired-directory' cons value - it defines only the
main listing, not any inserted "subdir" listings.

So I think there's no problem with discarding the
explicit list of files in the case you raise.  But
I don't really know.

> I continue thinking like that.  But what should we do instead?  The file
> list can contain anything - relative or absolute names.=20

Yes, the top-level listing (i.e., the value of
`dired-directory') can.

> And there can
> be names affected by the renaming operation in the list even when the
> `dired-directory' is not affected.  Would we want to exchange affected
> file names in the list silently, or leave them as they are?

Not sure I follow completely, but I think yes,
rename them in `dired-directory' also.  Maybe
if you showed some examples it would be clearer.

HTH somehow, though I doubt it.

Overall, I'd say that it's good to at least try
to test a bit with the cons `dired-directory'
case, whatever changes/fixes you might make.




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

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


Received: (at 70593) by debbugs.gnu.org; 9 May 2024 14:05:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 10:05:24 2024
Received: from localhost ([127.0.0.1]:55444 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s54Oi-0003B2-3K
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 10:05:24 -0400
Received: from mout.web.de ([212.227.15.3]:51257)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s54Od-0003Ac-3k
 for 70593 <at> debbugs.gnu.org; Thu, 09 May 2024 10:05:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715263468; x=1715868268;
 i=michael_heerdegen@HIDDEN;
 bh=ye0BiuxJob2qxNrHfvzqbiOTqpkPMfm9CpKXhJe63+Y=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=e7BMai1blpMrGpFOC4cqpUFnNP/N650ewshd0FknJ2l134TWRZX6UucWkrHbr0Q6
 IBLEk27PkqXfY90Am24c7Yl//vRJ/711XKJkweZu4WLjB41dBUEcM035fDLXX1cyo
 wZMGpf7PmZGWdhYxlRrzhoJuqnthD64kdZe5MeHWmc5em3C911cYHSwZBAH1TedCh
 uuEvICHlJd26fMCVo/1PbZrzOVwSFchAAeLlR4t7x7myOEMaY/OusGD5kaBtejNVj
 0Z4krNCU6X60OKzwnws8pqKteQkdWtStyM7GaMc7Lozdqs4W/CWhvlasgo5Gmn+82
 evBvCvyNuyBQgNm/zw==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mmhjm-1sUo940iSk-00ZOdd; Thu, 09
 May 2024 16:04:28 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
 of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <87msozqes5.fsf@HIDDEN> (Michael Heerdegen via's message of "Thu, 
 09 May 2024 15:46:18 +0200")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
Date: Thu, 09 May 2024 16:05:11 +0200
Message-ID: <871q6bgjxk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:RBoJuJAmKCemLiaPoth5JdUnU1fWpxAOyII+PKhgy/CPLHJClEM
 BrKFrID6vl/wa1V9XlZilED8AtOuSwiN6Vgmur0OK6p2f3eY6up8QP7lanXlECQWF2AJwCy
 OKvGIOYIu5KzQJ/bG7hD1+fdy7YDnazLIAUbgq/hgTsGu3izdQM3hyqmSQJvG6b2GTrXxFZ
 w/7Djf+vstpugH6eK2KzA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:2todKgEwzDc=;YWYGtAhyT9f+shJV2W36vYZcrGF
 jmpOb1xudYheeEqNXgPETm+ZibLJMHEQ1ISglCKVb4+UU9MzWH2y4TIa7DaSFVhrN5fIv+4Q/
 d1QJRTYx443tjUbzndPHKAK92IrS+C3MDr/sgdP+261vs/g2wdvy79vnsu7KBNFKMxJUVFgWT
 ikY/QUwJsW/giVjvZBw9wx37jBoQZBdirAErvyRLgmFJfIRi7gcPD7EhtMOsnTEasVO0UBRlJ
 MQLG+Co5gqVW13i845Q/oZhYcI6NCHmfCLHGzw0v/uLh1JFIwpZo+IMGvRZgKJ/Om0Ukev08D
 RTJUhSgDtp5aFMKhogrOkWlcEMKq38z/lXzZhfBnTyHh1X/q8sFazSVPitS06AzGmhudQeZbH
 3KhVANupNhtIIqqNtrvlwx1QhWuEG3ZYssObqDnwyboa7s5ZGlX65DvTZTEAvDmjfC8j6+8vf
 6PfVg9M2OeYFvjw/GrwfdBvvwpD4qe/ZP2yZbzCvYmxRJOWCk+fWS1TNGR9TM0P0uripS+eQU
 VF6clFCURufyD54GY84TCYxHIDlv1hlleL07G4V1Aj+SYRPkpjFFdtvGyE8DddC0WC237DVms
 zMeA7LVDI3ZLn1F/hnZ6+gswgMw8GqcVUXQwN2bEZvjQuxWhfuYCuxIkTOIGhhP24KRmsMb+F
 51lbricxMYSsAiL2YCyuppvibEzzCodeIpS6J/OKoD0n+k4oCrATevFEQuXAQ8LNvgC31WIzx
 lEtAdCQ78zxwmQOxgTGTZhZkvwYHTNO7FGHh3ybe7P81LGVAJhZX+Tn8n36UGp+ViXpDGBiCW
 rIld+k6Uk6NWMIpqcfiMsJEjiLwr0KWqpX+f8uE0Fpgqo=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 Drew Adams <drew.adams@HIDDEN>
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: -1.7 (-)

--=-=-=
Content-Type: text/plain

Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@HIDDEN> writes:

> > (1) What do we need to do we do when `dired-directory' is a cons
> > (i.e. dir along with a file list)?

Here is an update of the former patch doing the minimum in that case:
update only the car of a consp `dired-directory' when the car is
affected by the renaming, and leave the rest untouched:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=0001-WIP-Try-to-fix-70593.patch
Content-Transfer-Encoding: quoted-printable

=46rom 30d1546d30a75f5ff52a7aad10063c49a5e76789 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
Date: Mon, 29 Apr 2024 16:10:29 +0200
Subject: [PATCH] WIP: Try to fix #70593

=2D--
 lisp/dired-aux.el | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index e340f98a551..9c7cd8aa1f4 100644
=2D-- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2331,18 +2331,25 @@ dired-rename-subdir-1
       (if (dired-in-this-tree-p (car elt) expanded-dir)
 	  ;; ELT's subdir is affected by the rename
 	  (dired-rename-subdir-2 elt dir to)))
-    (if (equal dir default-directory)
+    (if (string=3D dir (expand-file-name default-directory))
 	;; if top level directory was renamed, lots of things have to be
 	;; updated:
 	(progn
 	  (dired-unadvertise dir)	; we no longer dired DIR...
-	  (setq default-directory to
-		dired-directory (expand-file-name;; this is correct
-				 ;; with and without wildcards
-				 (file-name-nondirectory (if (stringp dired-directory)
-                                                             dired-direct=
ory
-                                                           (car dired-dir=
ectory)))
-				 to))
+	  (let* ((dired-dir (if (stringp dired-directory)
+                                dired-directory
+                              (car dired-directory)))
+                 (dired-dir-new
+                  (abbreviate-file-name
+                   (file-name-as-directory
+                    (expand-file-name ;; this is correct
+		     ;; with and without wildcards
+		     (file-name-nondirectory dired-dir)
+		     to)))))
+            (if (stringp dired-directory)
+                (setq dired-directory dired-dir-new)
+              (setcar dired-directory dired-dir-new))
+            (setq default-directory dired-dir-new))
 	  (let ((new-name (file-name-nondirectory
 			   (directory-file-name (if (stringp dired-directory)
                                                     dired-directory
=2D-
2.39.2


--=-=-=
Content-Type: text/plain



Michael.

--=-=-=--




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

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


Received: (at submit) by debbugs.gnu.org; 9 May 2024 14:05:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 10:05:51 2024
Received: from localhost ([127.0.0.1]:55449 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s54P8-0003CT-ML
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 10:05:51 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57088)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s54P6-0003BE-AF
 for submit <at> debbugs.gnu.org; Thu, 09 May 2024 10:05:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s54OZ-00079h-1N
 for bug-gnu-emacs@HIDDEN; Thu, 09 May 2024 10:05:15 -0400
Received: from mout.web.de ([212.227.15.3])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s54OJ-000425-Jf; Thu, 09 May 2024 10:05:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715263468; x=1715868268;
 i=michael_heerdegen@HIDDEN;
 bh=ye0BiuxJob2qxNrHfvzqbiOTqpkPMfm9CpKXhJe63+Y=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=e7BMai1blpMrGpFOC4cqpUFnNP/N650ewshd0FknJ2l134TWRZX6UucWkrHbr0Q6
 IBLEk27PkqXfY90Am24c7Yl//vRJ/711XKJkweZu4WLjB41dBUEcM035fDLXX1cyo
 wZMGpf7PmZGWdhYxlRrzhoJuqnthD64kdZe5MeHWmc5em3C911cYHSwZBAH1TedCh
 uuEvICHlJd26fMCVo/1PbZrzOVwSFchAAeLlR4t7x7myOEMaY/OusGD5kaBtejNVj
 0Z4krNCU6X60OKzwnws8pqKteQkdWtStyM7GaMc7Lozdqs4W/CWhvlasgo5Gmn+82
 evBvCvyNuyBQgNm/zw==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mmhjm-1sUo940iSk-00ZOdd; Thu, 09
 May 2024 16:04:28 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
 of text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <87msozqes5.fsf@HIDDEN> (Michael Heerdegen via's message of "Thu, 
 09 May 2024 15:46:18 +0200")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN> <87msozqes5.fsf@HIDDEN>
Date: Thu, 09 May 2024 16:05:11 +0200
Message-ID: <871q6bgjxk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:RBoJuJAmKCemLiaPoth5JdUnU1fWpxAOyII+PKhgy/CPLHJClEM
 BrKFrID6vl/wa1V9XlZilED8AtOuSwiN6Vgmur0OK6p2f3eY6up8QP7lanXlECQWF2AJwCy
 OKvGIOYIu5KzQJ/bG7hD1+fdy7YDnazLIAUbgq/hgTsGu3izdQM3hyqmSQJvG6b2GTrXxFZ
 w/7Djf+vstpugH6eK2KzA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:2todKgEwzDc=;YWYGtAhyT9f+shJV2W36vYZcrGF
 jmpOb1xudYheeEqNXgPETm+ZibLJMHEQ1ISglCKVb4+UU9MzWH2y4TIa7DaSFVhrN5fIv+4Q/
 d1QJRTYx443tjUbzndPHKAK92IrS+C3MDr/sgdP+261vs/g2wdvy79vnsu7KBNFKMxJUVFgWT
 ikY/QUwJsW/giVjvZBw9wx37jBoQZBdirAErvyRLgmFJfIRi7gcPD7EhtMOsnTEasVO0UBRlJ
 MQLG+Co5gqVW13i845Q/oZhYcI6NCHmfCLHGzw0v/uLh1JFIwpZo+IMGvRZgKJ/Om0Ukev08D
 RTJUhSgDtp5aFMKhogrOkWlcEMKq38z/lXzZhfBnTyHh1X/q8sFazSVPitS06AzGmhudQeZbH
 3KhVANupNhtIIqqNtrvlwx1QhWuEG3ZYssObqDnwyboa7s5ZGlX65DvTZTEAvDmjfC8j6+8vf
 6PfVg9M2OeYFvjw/GrwfdBvvwpD4qe/ZP2yZbzCvYmxRJOWCk+fWS1TNGR9TM0P0uripS+eQU
 VF6clFCURufyD54GY84TCYxHIDlv1hlleL07G4V1Aj+SYRPkpjFFdtvGyE8DddC0WC237DVms
 zMeA7LVDI3ZLn1F/hnZ6+gswgMw8GqcVUXQwN2bEZvjQuxWhfuYCuxIkTOIGhhP24KRmsMb+F
 51lbricxMYSsAiL2YCyuppvibEzzCodeIpS6J/OKoD0n+k4oCrATevFEQuXAQ8LNvgC31WIzx
 lEtAdCQ78zxwmQOxgTGTZhZkvwYHTNO7FGHh3ybe7P81LGVAJhZX+Tn8n36UGp+ViXpDGBiCW
 rIld+k6Uk6NWMIpqcfiMsJEjiLwr0KWqpX+f8uE0Fpgqo=
Received-SPF: pass client-ip=212.227.15.3;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
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,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
Cc: 70593 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 Drew Adams <drew.adams@HIDDEN>
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: -1.0 (-)

--=-=-=
Content-Type: text/plain

Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@HIDDEN> writes:

> > (1) What do we need to do we do when `dired-directory' is a cons
> > (i.e. dir along with a file list)?

Here is an update of the former patch doing the minimum in that case:
update only the car of a consp `dired-directory' when the car is
affected by the renaming, and leave the rest untouched:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=0001-WIP-Try-to-fix-70593.patch
Content-Transfer-Encoding: quoted-printable

=46rom 30d1546d30a75f5ff52a7aad10063c49a5e76789 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
Date: Mon, 29 Apr 2024 16:10:29 +0200
Subject: [PATCH] WIP: Try to fix #70593

=2D--
 lisp/dired-aux.el | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index e340f98a551..9c7cd8aa1f4 100644
=2D-- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2331,18 +2331,25 @@ dired-rename-subdir-1
       (if (dired-in-this-tree-p (car elt) expanded-dir)
 	  ;; ELT's subdir is affected by the rename
 	  (dired-rename-subdir-2 elt dir to)))
-    (if (equal dir default-directory)
+    (if (string=3D dir (expand-file-name default-directory))
 	;; if top level directory was renamed, lots of things have to be
 	;; updated:
 	(progn
 	  (dired-unadvertise dir)	; we no longer dired DIR...
-	  (setq default-directory to
-		dired-directory (expand-file-name;; this is correct
-				 ;; with and without wildcards
-				 (file-name-nondirectory (if (stringp dired-directory)
-                                                             dired-direct=
ory
-                                                           (car dired-dir=
ectory)))
-				 to))
+	  (let* ((dired-dir (if (stringp dired-directory)
+                                dired-directory
+                              (car dired-directory)))
+                 (dired-dir-new
+                  (abbreviate-file-name
+                   (file-name-as-directory
+                    (expand-file-name ;; this is correct
+		     ;; with and without wildcards
+		     (file-name-nondirectory dired-dir)
+		     to)))))
+            (if (stringp dired-directory)
+                (setq dired-directory dired-dir-new)
+              (setcar dired-directory dired-dir-new))
+            (setq default-directory dired-dir-new))
 	  (let ((new-name (file-name-nondirectory
 			   (directory-file-name (if (stringp dired-directory)
                                                     dired-directory
=2D-
2.39.2


--=-=-=
Content-Type: text/plain



Michael.

--=-=-=--




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

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


Received: (at 70593) by debbugs.gnu.org; 9 May 2024 13:46:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 09:46:09 2024
Received: from localhost ([127.0.0.1]:55355 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5465-0002xd-Ek
	for submit <at> debbugs.gnu.org; Thu, 09 May 2024 09:46:09 -0400
Received: from mout.web.de ([212.227.17.11]:53667)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s5462-0002xM-Uf
 for 70593 <at> debbugs.gnu.org; Thu, 09 May 2024 09:46:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1715262335; x=1715867135;
 i=michael_heerdegen@HIDDEN;
 bh=qaQXrCu/tOHvaIezSwjO6G3EGyImiJfU+ElQoILkPms=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=EwIeNK2NGVIZ7ioBg3cSgUfcL9MYo0oPuw++9J0sz6o27lr9ChyimisKM2P/iXi1
 IG1CjwzS/Pn9UwGGwyvKL1dbtgd7KBXFAbc2ZTSMJ7qfRwEKj3z/AeOHDfdzyEAQM
 bjlbcyHQ9VuM1buM3TMoKHVVI429SrqVypZGxKdxxiumfGi3i8zbEW22NEAYkNC2K
 l3Y+qeIbUxXWir2TRyERvgqRmkzZfv6yQZHrQODi6njOUBxLrrT3otsmrOdpS/YZK
 KG3mYlUqCXDNwE9Q2L1oJ8gCgCfchjLl1dyxuYfDSFMKWv9t9LnIn3LBcl/HTWdo5
 7YTOSkOBXSnEL2XAhg==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb105
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N3ouw-1smtGY3LAu-00wYFy; Thu, 09
 May 2024 15:45:34 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <87plu8xmb9.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 29
 Apr 2024 16:42:18 +0200")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
 <87plu8xmb9.fsf@HIDDEN>
X-Debbugs-Cc: Drew Adams <drew.adams@HIDDEN>
Date: Thu, 09 May 2024 15:46:18 +0200
Message-ID: <87msozqes5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:7/IEkQp++tnOPtv0E6j30xa7iRgF8tjCjwu2Cj8nDFINBj2cvGR
 pBfgysI9XDeplM5qnU16XCknC3hg45cUyFhNCjWnuy3SdzuiN8hspECxTdo2ZOaAXwHa044
 tey7KDORiF173C7F8Nk1NdxHGQtej4ngZS8iwGs8KbLpL+VB7s5GXrFVgWrP8eyWFHyLhMF
 0FVR4bdjyjMoBq/+tlkCw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:Z24pCEY5778=;Dazif64vlNP9VRLM0C+9AON+XLK
 jbAE8gpEeTW2PUfoLM7rRcTExgbVYGzdx2xh+r+MaqKP+N0Ltb4SdDzPzZ/wUBXbUEeiN9ZJW
 OVqnZ8iL58NOhElOJZ2hGkVwKfcCWXNKJaB6zMDTEQM2H4pDKZ8zTEMKLDgbhkeFzysHcH3bZ
 rlIGlCT0D7aGpOrPizuIdoGlsLuoI3zDr8N3KO4PuzWsB8WxNHrnEe9XF66nALE91VyyiEuJ7
 cAh+VQpg+99746s+/2LS9SOJjV2k87tsVvuBmQsfPcjZkjOHta5fuAg4G6NkT6Xhk64olZ03G
 d3PKqdmAHm0AnZfnS1V+wGGlceQB5MoFvQ8QLHneWPCou2xXYl0L6q2M11FNEj8l6eXtaUezZ
 3sgY3vqr2l/DEP51w2gFSGQOW/n27IartSKGZW+ctpL+5YM611WO3wzaNNBABPj4x+nnIe7s0
 TsdLCZsJAsu1AXTn0pAw1YY27Z0eCcUrQKUUUk6RaXsV/OD3891L2Ot13UDpn5oaGBQVrWjQm
 Oxj8Py3f5f2STKmjNjyDZYFjTm6OFAz3sZeRNOGineXvjqZcvjLx1i72XcWkxkVVsz4uqPXLi
 TEI6XkrNpJnQVpTPr3OtCVOEnZum5Vasg5qof2Ldde37MFO1a9Nb2ANYWVXCK8GLIlZ7TC1Hf
 +pLq+cMYkdRp96YKewGNUm1h2348wWVGWTKT/FJ8SsSsdyaxWEHXcePzC+wzV+o+hCE48iNdI
 X6aiw8m4vRpIafdptM28mpFTmNylh1gHf3rZ0odB03dDYtakMbXVF/36+VEDIjKOcf9+gBuQg
 9cAT3CA6AgZblSJUcUAEiioY7JohY1/u81QHT8St72xWQ=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <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: -1.0 (-)

Hello,

I'm CC'ing Drew.  Drew, do you happen to have any experience with this
case case (in general)?


In the meantime I've though about this particular question:

> (1) What do we need to do we do when `dired-directory' is a cons
> (i.e. dir along with a file list)?  The existing code just threw away
> the file list (that's why I unified the cases for now - the code didn't
> make sense to me).

I continue thinking like that.  But what should we do instead?  The file
list can contain anything - relative or absolute names.  And there can
be names affected by the renaming operation in the list even when the
`dired-directory' is not affected.  Would we want to exchange affected
file names in the list silently, or leave them as they are?


Michael.




Information forwarded to drew.adams@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#70593; Package emacs. Full text available.

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


Received: (at 70593) by debbugs.gnu.org; 29 Apr 2024 14:42:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 29 10:42:08 2024
Received: from localhost ([127.0.0.1]:57609 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s1SCl-0003b3-VV
	for submit <at> debbugs.gnu.org; Mon, 29 Apr 2024 10:42:08 -0400
Received: from mout.web.de ([212.227.17.11]:35607)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s1SCi-0003aE-EY
 for 70593 <at> debbugs.gnu.org; Mon, 29 Apr 2024 10:42:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1714401698; x=1715006498;
 i=michael_heerdegen@HIDDEN;
 bh=ORoIpS7EhA0CEtzO8w3gnN/ooEmUM0bKL6nb7EWgF8c=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=n+aYKun3iUxpNzt6XUnQlFueIgIxDa6SCB6MQImkuuRnYemGLUS0c4VjGnsns4Ut
 Jrik7lg4ywSQhz3siQ7y71D1wtc0aOf5ooQTmF22qat4B0AEIDoPsktKnhuIG+hzz
 KDK7PDjs1gHiroK21sEOZQfkmNnnGjZPzN6EO4NV7SEHXzfHmARe2o3iMOtOqVB5k
 Wi2zkvjE45VjA7WSUCQoyLo30n/Adc/tbdcavfj6mXNm1Rn1qUbjNSt0893efE93L
 uwCRGdOPWbXL5oB6xCtbg8oYv2a3cvOFDNWYXBVOWiNCMdj1zNmOTVVl0hl8IospO
 1vJpxp5XkpZdwGJnXg==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MnX1L-1sQJ9T0eGb-00jUhQ; Mon, 29
 Apr 2024 16:41:38 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
In-Reply-To: <861q6syxzb.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 26 Apr
 2024 17:55:52 +0300")
References: <87a5lguygb.fsf@HIDDEN> <861q6syxzb.fsf@HIDDEN>
Date: Mon, 29 Apr 2024 16:42:18 +0200
Message-ID: <87plu8xmb9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:lOrl6U+9gphwTFERUWSANEFso5w45fbOiqjQLH/ankGoDm5gt7E
 LbHiV35vndQJC6+5/d/3sGIRyPd0X73adnKKf22D3SLnCo0lQGysZVKbelbzZu1g1XoSUB0
 Jp5iEunjP8CyKpZDzebiV0h6a3Z3mEknSawtAhFeAAekBlegA2lJqHPGldJ7TUUnEGlxQOw
 agC6+8UCYuwUbqqv6aG+g==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:U7rJHL026aI=;0rR8uZo6N/u6j/2IL0AVXLkiB5V
 RRFQYVZ6NkWT6HmkzjyeCgH0E/Z/EffLe4lh/K3OG9G20uyoDKKJ4ernxkB205+VhDh/85HO+
 nblvmgYmkh8KGq6dAoZs+uR9PTz8M2gBqZhxwfbflEvug1n8v2GHJRX83WIu8dg/3dtuncLZ/
 uhMVdz3qikjymIob/1T1n4irpauoVn5LbgvEzoW+KH72WfpyFpgsmlVp0Tb9fy3JzsrmgnMzu
 k14oClhlh3nn83uAcVvD5vzGvZrMd+BdeQxT/N/Qjh6coG64cf435Di0Gpjndx/eQV8oOoB2+
 rTdq6jZG0DBP2XIzFWVP5atoZcIZy4+9kcwa68lHetKGFbu7fTYnkTYm4qMv7psjnBMhQq3Pd
 LnZLFbccXBzPc2qYoksgi0GYfUBj8hCiBzR6+jZSZnn0XwoTatOB77QZ0KuIDdA1AAOnQwSCn
 Ld2c+mGggtEM/u2m+SF+dcnEjtbMEsYhJ0p5HHuPXGkYh0angQ+no4XhAISVWSzjsTt0OdAgL
 JaYQ5e+lryuND2icTOyyXkOxo5ude6mKMU4vOh7fU7RXm2J8ea1F6ujMRCK0Ejkv9KFk+877h
 a2Kf+6qZa+zaWySmxMBEog6NC0saZAliYXY7TGn6GpI5cTJ96ofufPa/XywGEF1nSm9Ekdg7u
 owJ9qs9SJLaEsbLgB1Q6OL0sk+JNdBUpGyIVPEUlASV6UD2BxzvV36g+npTQwoVjOR7Gd4cec
 3atvSWBwHvAtI4Lx6g75UKS1gs3+uxFLevxqW5hdWRA5zN0kFJzMWnbar4HH8ZAJ6aqja/B7O
 NTHFxXAc7HchGR6naSu/Mj6mwjjRpecur7HlgC21O+Xno=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <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: -1.0 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Eli Zaretskii <eliz@HIDDEN> writes:

> > The code wants to do this in `dired-rename-subdir-1':
> >
> >     (if (equal dir default-directory)
> > 	;; if top level directory was renamed, lots of things have to be
> > 	;; updated:
> >
> > DIR is the old directory name.  But the `equality' test fails simply
> > because default-directory is "~/test/" but DIR has the tilde expanded.
>
> So all we need to do is call expand-file-name on both of them?  Or do
> we need also to call file-truename?

A sign of life with intermediate results:

Turns out this is a difficult and not even the only question (see
below).  It looks to me like this branch of the code (after the always
failing test) was never in use, or only a very long time ago.  Because
that unreachable branch is broken in several ways.

I needed to add a `file-name-as-directory' wrapper, else dired wouldn't
recognize the new directory as a directory and treats the file name as a
wildcard instead.

I would also add `abbreviate-file-name' calls so that the format of the
file names is like before (abbreviated).  Finally I don't understand why
the existing code computes `default-directory' and `dired-directory'
differently, so I reduced that to one computation for now, but also see
below for more.

This took me to this first actually working version for the
simplest case:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=0001-WIP-Try-to-fix-70593.patch
Content-Transfer-Encoding: quoted-printable

=46rom aa6146e69d8d9d97424ccaf4d69db9eea64d0011 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
Date: Mon, 29 Apr 2024 16:10:29 +0200
Subject: [PATCH] WIP: Try to fix #70593

=2D--
 lisp/dired-aux.el | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index e340f98a551..60a0f16bfe4 100644
=2D-- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2331,18 +2331,21 @@ dired-rename-subdir-1
       (if (dired-in-this-tree-p (car elt) expanded-dir)
 	  ;; ELT's subdir is affected by the rename
 	  (dired-rename-subdir-2 elt dir to)))
-    (if (equal dir default-directory)
+    (if (string=3D dir (expand-file-name default-directory))
 	;; if top level directory was renamed, lots of things have to be
 	;; updated:
 	(progn
 	  (dired-unadvertise dir)	; we no longer dired DIR...
-	  (setq default-directory to
-		dired-directory (expand-file-name;; this is correct
-				 ;; with and without wildcards
-				 (file-name-nondirectory (if (stringp dired-directory)
-                                                             dired-direct=
ory
-                                                           (car dired-dir=
ectory)))
-				 to))
+	  (setq dired-directory
+                (abbreviate-file-name
+                 (file-name-as-directory
+                  (expand-file-name ;; this is correct
+		   ;; with and without wildcards
+		   (file-name-nondirectory (if (stringp dired-directory)
+                                               dired-directory
+                                             (car dired-directory)))
+		   to)))
+                default-directory dired-directory)
 	  (let ((new-name (file-name-nondirectory
 			   (directory-file-name (if (stringp dired-directory)
                                                     dired-directory
=2D-
2.39.2


--=-=-=
Content-Type: text/plain



Open questions:

(1) What do we need to do we do when `dired-directory' is a cons
(i.e. dir along with a file list)?  The existing code just threw away
the file list (that's why I unified the cases for now - the code didn't
make sense to me).

(2) What to do when symlinks are involved?  This question is also not
trivial.  It might be necessary to handle different cases and change
more than one part of the code.

Just calling `file-truename' before comparing as you (Eli) suggested
might fix more valid cases but will also resolve symlinks as side
effect: the dired buffer will afterwards visit a directory behind a
(probably unrelated) symlink when the visited directory name had not
been unresolved before.  This is not what we want.  Hope it's
understandable what I mean.

Another tricky case is when the user accidentally broke a symlink
and a dired buffer we handle visits a directory with a name that can't
be resolved any more.


Michael.

--=-=-=--




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

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


Received: (at 70593) by debbugs.gnu.org; 26 Apr 2024 14:56:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 26 10:56:30 2024
Received: from localhost ([127.0.0.1]:38195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0N01-00035w-Qa
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2024 10:56:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34818)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s0Mzy-00034U-M9
 for 70593 <at> debbugs.gnu.org; Fri, 26 Apr 2024 10:56:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1s0MzY-0001Pk-RD; Fri, 26 Apr 2024 10:56:01 -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=pL3Ms0aN9b1eW2RMy7GHev6SZP4+qAQLyDMl9KlfxIY=; b=NlpLBcI/inLi
 DANHnyVWKhgGYucojHmRofco6LBqKapUKgIMuJhGFvZ+7nWGj5eQRn9EfGZ8skr+k+Ey/ZL8Thof1
 kJnPGYJA2CL2dIqZRmtQFCYXI/1Kxw+WeVnyx3ikkVt4Md9FLsZ72sA4LretRDaH+1q/UqLLrdOrB
 KL6pQzN0uf2NXBgudNBFU/VIv7oD0g1rfW76WSFO80cZo6vTssW+UF72KORoa/n19DgXu5UCmRfCQ
 lOn88SlZfS/ehQL8NfWsZosYPRQN2xuzlJid6nqIb1q3Rj2LDizWC4mdCo/0ZMvMUlqiUPdMdx+sZ
 udWr5/Y41KjD2+3mkyoK2Q==;
Date: Fri, 26 Apr 2024 17:55:52 +0300
Message-Id: <861q6syxzb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87a5lguygb.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
References: <87a5lguygb.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70593
Cc: 70593 <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 (---)

> Date: Fri, 26 Apr 2024 13:59:16 +0200
> From:  Michael Heerdegen via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> The problem is that we partially fail to update the affected buffers.
> 
> The code wants to do this in `dired-rename-subdir-1':
> 
>     (if (equal dir default-directory)
> 	;; if top level directory was renamed, lots of things have to be
> 	;; updated:
> 
> DIR is the old directory name.  But the `equality' test fails simply
> because default-directory is "~/test/" but DIR has the tilde expanded.

So all we need to do is call expand-file-name on both of them?  Or do
we need also to call file-truename?




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

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


Received: (at submit) by debbugs.gnu.org; 26 Apr 2024 12:03:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 26 08:03:53 2024
Received: from localhost ([127.0.0.1]:34239 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0KIx-000331-5p
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2024 08:03:53 -0400
Received: from lists.gnu.org ([2001:470:142::17]:34910)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1s0KEM-00028B-Rj
 for submit <at> debbugs.gnu.org; Fri, 26 Apr 2024 07:59:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s0KDx-0000T5-G0
 for bug-gnu-emacs@HIDDEN; Fri, 26 Apr 2024 07:58:41 -0400
Received: from mout.web.de ([212.227.15.4])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1s0KDv-00065l-6X
 for bug-gnu-emacs@HIDDEN; Fri, 26 Apr 2024 07:58:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1714132717; x=1714737517;
 i=michael_heerdegen@HIDDEN;
 bh=Cw6LTPdphWEQ6F37xj5uqjot6FND4VESuDHbbdiJBuU=;
 h=X-UI-Sender-Class:From:To:Subject:Date:Message-ID:MIME-Version:
 Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=iLxBTnZa6pmMmotNbh2pEtcjQy/Dq1mNRu9TI2HsesK2wZ8yMhqjDORj42Ipi7gR
 mLn6QSntG+sRb9QP9Ea70m6h7aKhJBDdBDTDZHGfA6lgC2dQuT/5eJWVQ/vw43FOB
 xU40sXtKD86hVT5T2csYFmwEgF82XHZqeshkruLFuJ9nW/owf6TJbV/CK0p2w74mE
 A4kdjNNuI1oyPa357CfbGs4P5qW6cc50BGnoJPk6qiQ6a/rlBjcj7bqyDyTbOWMyD
 9sfrIMBqeJ3yhLHwqoPgLOr8cJJJpkXDP/tiRH6IRGH4cNqEjaFzkl5QI8UTztNVE
 BgtENyzfskXn6eZi3w==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([84.57.248.23]) by smtp.web.de (mrweb006
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MYclj-1sCmfG0SjT-00ViVq for
 <bug-gnu-emacs@HIDDEN>; Fri, 26 Apr 2024 13:58:37 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; Dired: buffers of renamed dirs are broken
X-Debbugs-Cc: 
Date: Fri, 26 Apr 2024 13:59:16 +0200
Message-ID: <87a5lguygb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:5MjEL89HJcEq6tYOcnIxgejbIrw9omFPpoI/UWhwpemI7tsE8xH
 4EHmvq4K/QH7deA3AxcjP50Je5QJusW8SGVPkXDiz6IZiocO7pkWIbQ/+9BuNY3PV0j9soY
 DTmqGJR5Rq7JcxvpdJYjXZYRLQJj7KY07evNN6zPY+Jp+lqUs9cyaeWk/VfH1EdzoYmpHc9
 QeIcsSK0FhP3Ldz6b9xvg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:2+c9NiN1Kak=;/LqAr0ydSNenGzg7s/wFa59zAbZ
 epA3TVT95g6nrPpeNX5Vnp9XlMq9lJdMG9Iehdab7uj6HsGpqeDn23HeOsr5e7sRhQBsEQcup
 x3Xgb9CNhsI+cpjLTOfKR8PTJgYr5/tNnWgGBeU0Pzwpo12j97IdYdjWmAOaLks47UnFAWMg2
 rGMlqv5G78NZAhEuNaxdIdTc3OL46U54y5yDeTz0x4e+L5rowrl7LoLxGVDGuYfUOqQn+NtX2
 dhBi+U8FBS0LDtIsEA2GECjSdb7Q+uEPQO3lKUCRWPm86rFSZtHafg3Z+rd83BTF0tSXwPVZK
 i6Gv1HYbxPQGMDyJaLiM4EXCpMqeYTodeaE/bH65q6ZTP48Jyd5G//q53jLwBTI68qwIUS7tB
 DckOVavz1s84da8nhH8PjHpqFtZDFyGMuCQxk4EUg7KsVj3/AzjRAqEnU6P6f7OWoRfh4qDkJ
 CGZ7nP1wTKKfeH9bL8UPSIWfIjEkC9UE1/85dJyCMlFs1mFXp14xnX4QWfgRdn6tVkv8ZbCcM
 O+QRnzCxFZ6fd766/V+7IJ1wCzsTqUEJCqhpBv6Rz7h01bMmZxzBIUb3bc518mfLv4mXRehmI
 pLjhPa/+i9NmnFI4QFkhydufMZYoKVfV8S1vR8hY/NemIWPJ5PLmMesNffFUyuAcNaqpSIK7i
 xr444/nMKVIalCDjgr7FB057OBNLCx+j4zHWY5O8PCfIUwQlz9l6T2u74pL1PFJaJoF0aPAoN
 kqo1amZPkL8JwjLz/qCBYp3t5fh8ZmiqBIdWOkWE2rvkTjPvDrN5vQq7ihrgXeb1g2eYgRP69
 HQ7yOFnhS3EnU2HnjXU797qGJkI49o7ZOgkdaSeJI3gd0=
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=212.227.15.4;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
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: -1.0 (-)


Hello,

I'm really, really happy that I finally nailed down this not
insignificant dired problem:

When you revert a dired buffer whose default-directory has been renamed,
the buffer is erased and an error message is displayed.  Marks and stuff
are permanently lost.  This even happens when the directory had been
renamed with means of dired.

It follows a recipe for emacs -Q; feel free to skip to the following
analysis of the problem... (we care about this case, but the code is
broken - see below)

[ Recipe:

I have two dired buffers, one showing "~", the other one a subdirectory
"~/test" in the other window.  You can put some trash files into that
directory and mark some of them.

Now I select the "~" dired buffer and enable wdired.  I rename "test"
to, say, "test1", and confirm.

Now select the other dired buffer.  The directory name in the first line
has even been updated.  But when I hit g, the buffer is erased and an
error is raised:

| insert-directory: Setting current directory: No such file or directory,
| /home/micha/test2/

Recipe end ]

The problem is that we partially fail to update the affected buffers.

The code wants to do this in `dired-rename-subdir-1':

    (if (equal dir default-directory)
	;; if top level directory was renamed, lots of things have to be
	;; updated:

DIR is the old directory name.  But the `equality' test fails simply
because default-directory is "~/test/" but DIR has the tilde expanded.


TIA,

Michael.






Acknowledgement sent to Michael Heerdegen <michael_heerdegen@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#70593; 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, 2 Mar 2025 00:00:02 UTC

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