GNU bug report logs - #80499
31.0.50; dired-auto-toggle-b-switch does not work as expected

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: Filipp Gunbin <fgunbin@HIDDEN>; Done: Eli Zaretskii <eliz@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 80499) by debbugs.gnu.org; 26 Jun 2026 11:33:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 26 07:33:11 2026
Received: from localhost ([127.0.0.1]:42198 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wd4nx-000130-5e
	for submit <at> debbugs.gnu.org; Fri, 26 Jun 2026 07:33:10 -0400
Received: from mout.gmx.net ([212.227.15.15]:46293)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wd4nq-0000wp-3z
 for 80499 <at> debbugs.gnu.org; Fri, 26 Jun 2026 07:33:02 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782473569; x=1783078369; i=stephen.berman@HIDDEN;
 bh=hRfdfrVDQ6w8rb14s3T43QMPll/VCRh1CXwqiSLBDZ0=;
 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=og5Nk/bVrJcZHsK74YWQArz0xuMTIH6ySJ56NNPQaBPXKhLgeM5dxfkSUTS7pi+h
 w2HUnIqTLTUdHny30gBiDxw6kYyWkRa6kKF+9EZCTs3hcCDtwriUmkl7LWn3tav2s
 XKvJq8SGR6QKadBih+d2FbChUkBB5YnYIMD+Ow371Yvxe7ixtogUI9O+Tg1R0fFtH
 JeP9GTlXD+/EyzFU4gonTdBcOxVhfp/evSJRFYQC2ScRr9OeK/wWSPVKiQKNCcWQN
 iaGLAz8W+kVDNPFnqIpt/RCi8GTIEdi3yVhCGOexYOxfASrIaoCC0z4+TuWvdXGQr
 57d4Apcv4n24Dpaaqg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MqaxO-1wzCCX1JpI-00h3k5; Fri, 26
 Jun 2026 13:32:49 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87o6gxy5lg.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <m1zf0l8t44.fsf@HIDDEN> <87v7b7eyof.fsf@HIDDEN>
 <m1ldc2cz90.fsf@HIDDEN> <87zf0h8wom.fsf@HIDDEN>
 <87o6gxy5lg.fsf@HIDDEN>
Date: Fri, 26 Jun 2026 13:32:48 +0200
Message-ID: <87v7b58rkv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:mwrT333bu3ExRp8ZUzuOxlDB1sBOQFuJiKOuZgvrB0zF8xkBBD8
 YsxTUbAFdHLLgQjsVqkfZaK4O+7YAm7wnjBGJXpo46GCQFaW0/F0TSiDTSPvwqZvRTPkr6S
 IveXRMLdC9RZun8aOefNj5n/xi/AUbnBvYdJ7mDp804iNsc8g0WimUXf2tyllyQJ91/8rpL
 nlG+j22MfA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kmrxJsFNqvJcO5x0LYbR+aTF/Mv72ba/RWdzZOFsBUSuTErmpA7T+kflrBlvJhBoR2hrxAA0
 4vw5uCZA4Oceclp366z4OLnV0RoWwsOkV8xh+DeJsHHSnQ2813+9vCikBo80R2tw+m1Bcw5nE
 j4YvNj9ldNb2UnwsVyEzPYxtzFjMjnL1ZF2gtLKXt27UYbNaaVv+lljaNfcqbrBg4URbBOfJq
 qa03sUTsg6Ktpj0VegTiijzClKMqSRVDNuJxyRmes9edVkAlSPwEQXH/ErK+V/EJ/ydNwAhMb
 WmlHGzqlxXZd5zyeyR1hf/BxHLIrm9evsc2AKp2hmppqTOZrirr8vDqhrMm968YQFcon3/0vW
 NY3qoF2ikHeJiN7xpidwYLOViMR7xamTjOy3NYNt6U32UAOlgQr9jm6QJzasaf77NtZ4RPZKH
 vKcCAkUeLb2lMUYwY48gNzHiG2C0DC5A4lEr7qLP6byOFy5QRV7oNeDfVUNDKoVofg9twvBKW
 rKPtU1e463QqZUyPj+RTKGc0tt4lynXy1dpaislha229rb3zGrg1HS1X2Qs1v6XEnl6p0ezHU
 hdBdK4z3a+v6sPyOiDcMMEHMBKRrR6xA0cq95LTPkVgOpDmlHbgs5qqsisW9H050sEHdTdMoL
 VZ3mISl7/AJBc4v6HyFImKB70WzQAGvd398yt0r030H7eVenxwJimJCI1IsWs5eZ5ei5w+/V+
 KAKOf1FdvdYKSJ+Xwlg9j
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>, Filipp Gunbin <fgunbin@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

On Fri, 26 Jun 2026 11:10:51 +0100 Sean Whitton <spwhitton@HIDDEN> wrote:

> Stephen Berman [26/Jun 11:42am +02] wrote:
>> On Thu, 25 Jun 2026 20:21:15 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>>
>>> On 25/06/2026 11:50 +0200, Stephen Berman wrote:
>> [...]
>>>> Ok, that makes sense.  I've now pushed your change (slightly reformulated
>>>> as requested by Sean Whitton) to master as commit c9da3c1a5ed.  Thanks
>>>> again for the report and the patch.
>>>
>>> Thanks! However I think Sean meant: set buffer read-only right after
>>> creation, then use inhibit-read-only on next updates.  With the current
>>> code, we cannot tell whether the buffer is created or reused, so we
>>> always set it read-only and then always use inhibit-read-only, in which
>>> case the point of inhibit-read-only is moot.
>>
>> If I misunderstood Sean (added to Cc:), he can correct me.  But I'm not
>> sure what you mean; something like the following?  (Though AFAICT there
>> is no practical difference between this and what I pushed.)
>>
>> diff --git a/lisp/files.el b/lisp/files.el
>> index 149a3e80866..b9a02570f45 100644
>> --- a/lisp/files.el
>> +++ b/lisp/files.el
>> @@ -8488,10 +8488,11 @@ insert-directory
>>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>>            (let ((errbuf (get-buffer-create "*ls error*")))
>>              (with-current-buffer errbuf
>> -              (setq buffer-read-only t)
>> -              (let ((inhibit-read-only t))
>> +              (let ((inhibit-read-only buffer-read-only))
>>                  (erase-buffer)
>> -                (insert-file-contents errfile)))
>> +                (insert-file-contents errfile))
>> +              (unless buffer-read-only
>> +                (setq buffer-read-only t)))
>>              (setq dired--ls-error-buffer errbuf)))
>>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>>          (setq dired--ls-error-file errfile)
>
> That can't be right.

It DTRT according to my tests; do you have a case where it fails?  If
not, why can't it be right?

> (or (get-buffer "*ls error*")
>     (let ((buf (get-buffer-create "*ls error*")))
>       (with-current-buffer buf (setq buffer-read-only t))
>       buf))
>
> ...
>
> (let ((inhibit-read-only t))
>   ...)

This schematic suggests the or-sexp and the lower let-sexp are at the
same scope level, but that definitely can't be right, because
`dired--ls-error-buffer' gets set to the variable whose value is the
buffer "*ls error*" after the contents of the error file are inserted
into the buffer; so for your suggestion to work it has to be spelled out
something like this:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: insert-directory patch

diff --git a/lisp/files.el b/lisp/files.el
index 149a3e80866..d0b0df75d9b 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -8486,9 +8486,12 @@ insert-directory
         ;; error.
         (when (> (file-attribute-size (file-attributes errfile)) 0)
           (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
-          (let ((errbuf (get-buffer-create "*ls error*")))
+          (let ((errbuf (or (get-buffer "*ls error*")
+                            (let ((buf (get-buffer-create "*ls error*")))
+                              (with-current-buffer buf
+                                (setq buffer-read-only t))
+                              buf))))
             (with-current-buffer errbuf
-              (setq buffer-read-only t)
               (let ((inhibit-read-only t))
                 (erase-buffer)
                 (insert-file-contents errfile)))

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


But again, I see no practical difference between this and either the
patch I posted above or the current code or, for that matter, the patch
Filipp originally posted.

Steve Berman

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 26 Jun 2026 10:11:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 26 06:11:10 2026
Received: from localhost ([127.0.0.1]:42048 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wd3Wb-0008CH-LK
	for submit <at> debbugs.gnu.org; Fri, 26 Jun 2026 06:11:08 -0400
Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]:57153)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1wd3WU-0008Af-BI
 for 80499 <at> debbugs.gnu.org; Fri, 26 Jun 2026 06:11:01 -0400
Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
 by mailfout.stl.internal (Postfix) with ESMTP id B2EA51D0012E;
 Fri, 26 Jun 2026 06:10:52 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-02.internal (MEProxy); Fri, 26 Jun 2026 06:10:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1782468652; x=
 1782555052; bh=rtah51FMcpoaUAQ0S3Bf+E79NzvFA/T8crXV1n7Ls2c=; b=n
 ypIPay0RlU3OtyI4kDwONv+ts91G8L21V+xV6E+GBqhV7gWesSYi4ldKvHwM3w3F
 gRZwem53t/6Mhr53X9QigDm58JiHb6/184mC9w3xGrXxXgbeVg2RyQNKZIoVD0iY
 MjlCWy6vlkJK1vjYvhJAnVG8tL2hTA6th/8UziCaBK6gEyvZJ6D2adoU8F0YXEEK
 Ar+hzpqCeqNI4/IchYlOmGV5lUi5wTh/PRnJpQMoU8rFh/665+eGWlFrzvla/+wF
 bGVJ6gOPYcx5rFQFmmdwgj4X0MxIbtdB+o0gjzaTN1kKgv6ST3wCZktHgLzK41P3
 5Yo6y8rsywVQJSfX7Ictw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782468652; x=1782555052; bh=rtah51FMcpoaUAQ0S3Bf+E79NzvFA/T8crX
 V1n7Ls2c=; b=ddKeLBP1fMJ+xTmBdR8agvdmEBD8UM5/n79WkFYP7wKdGgzsNWj
 1mVhrBKGTKfT+rfUx052xJrn6EWcYE9mD1H3fQkj6yh06jmL4OXmv06qMQd4y1cd
 a6L3m82sZsHQWy358NPdXS0mkjxq4qFRWenVGsofymwdqjKJNqMaxQGgKchEGfJX
 5TGWQah/OtjRCefp7XOn2O2rDzqLS9CXwrrJAEo4KoggvmIsxH0xxZ8gNmzrZOwA
 nIk7ekj1L5RDfR7/k7p9uLCGQiFVnU7tKg/45+hxj/6F9qtD9TJtSORoRM12n7pI
 E+LO7MoBlh5GyuRTTYCmdFOOdfWOqzl3FFA==
X-ME-Sender: <xms:LFA-alTtHRReCjPkf_qEMF9yKy2NqqDkE7xuvFW7jbELHZNkhiyNzw>
 <xme:LFA-alxFlnizHAQv7R-pDIISYAvkcmgp6jYyqg7Wh4gL9A_pA1IUaH-3fzLzjjnnE
 vpysUEw3iy3bC3SaQ-PHyP_oN7L1BCGsjfNaLRIlK0CbIR37bX0FrY>
X-ME-Received: <xmr:LFA-av09BoHUuAd3sEFH0B3_TFA5gPqY6vmv_lVeHcL4rVdkGwbczEeT0TqqjPltgYXVPgSBYeDf>
X-ME-Proxy-Cause: dmFkZTG3agrmx1R1/d4OjXUk+ohKXouzHvpsprRuhPkFkCe4BS1DcWIT/Kxdr/nJ5eqLZy
 zJ7Lqn90e6FSFtbJHrZFVqvj6EP5sIsdfZZccjQctXEJPVRHTsUtJVZGhfO+NY842cCbbb
 BjXofpkwqc+xVJvN2QY+R6jJNNt8hjUp1c+7DIw423clM1TenRyy3X6mabmimrTVVZs/lo
 pfB78qNPKMqbS+foLufy14zla5/01OSynLdQrD7v2TRlhWqDXPWtfUDiP6be9yxDWwEiHn
 7hU3X4H8YcclQJ5SGrdalXroS+SouB/zmT6Yg/wm0qAxgqlEBanO0Eu6P3mwRn23KRp3QV
 SY9Fl5lyoQKwswFG/qRRi2VEBlm9cv26Kh82CY9idOrcGAvkRWhzNMjahUsXMNZO/6V2db
 WwukPfLzjs3Qt/R623Lag06ab4HwFHx1jCaAAZtoIhSIoLRNcDJpby9whdDbeo5PwK80Q5
 c7ADjGX7XYLqf/NOXsO4x2PvbRpTevZPMcR3Rgvv9axvL//bgpT+YH0I/RBH4mOlJ/JEJK
 5yr/Xp6FeDWC3Anh7Y6bFWR+K2A5df58DLTpFyk9bNh9sXfzqPFsLYy+5DaZxLSKbzCSd+
 +bMMrokP0vowdFWUrIw5aFH4znxTGKuJ1CPEjF8ogflIfE/DXjrU2FWPCkdg
X-ME-Proxy: <xmx:LFA-ar7Ate9zGVkR8TRsl-cuWz7baPsTqHmzWy9XigrV51VyI_d6lQ>
 <xmx:LFA-aqX69ntodVuYW6DB-xVs4vetEfoTA6Y_dMyP_J0DeAIR3DemTQ>
 <xmx:LFA-aiBECyLFpM1nEdE0j4H1T2IFj8dhCYY0wx7c3iY4Q1uIzrHRnQ>
 <xmx:LFA-ah7Va7MR95lZTV3SFypefzD0YBtuiCS7vj7gEcTVU4NmGXl5sw>
 <xmx:LFA-agIwLL9EuQ92YSIO9G0l3kb4CRu6RRynwvyJkvp3hHtSDAPL1HoN>
Feedback-ID: i62564b17:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 26 Jun 2026 06:10:51 -0400 (EDT)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 14F907E60AB; Fri, 26 Jun 2026 11:10:51 +0100 (BST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>, Filipp Gunbin
 <fgunbin@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87zf0h8wom.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <m1zf0l8t44.fsf@HIDDEN> <87v7b7eyof.fsf@HIDDEN>
 <m1ldc2cz90.fsf@HIDDEN> <87zf0h8wom.fsf@HIDDEN>
Date: Fri, 26 Jun 2026 11:10:51 +0100
Message-ID: <87o6gxy5lg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

Stephen Berman [26/Jun 11:42am +02] wrote:
> On Thu, 25 Jun 2026 20:21:15 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>
>> On 25/06/2026 11:50 +0200, Stephen Berman wrote:
> [...]
>>> Ok, that makes sense.  I've now pushed your change (slightly reformulated
>>> as requested by Sean Whitton) to master as commit c9da3c1a5ed.  Thanks
>>> again for the report and the patch.
>>
>> Thanks! However I think Sean meant: set buffer read-only right after
>> creation, then use inhibit-read-only on next updates.  With the current
>> code, we cannot tell whether the buffer is created or reused, so we
>> always set it read-only and then always use inhibit-read-only, in which
>> case the point of inhibit-read-only is moot.
>
> If I misunderstood Sean (added to Cc:), he can correct me.  But I'm not
> sure what you mean; something like the following?  (Though AFAICT there
> is no practical difference between this and what I pushed.)
>
> diff --git a/lisp/files.el b/lisp/files.el
> index 149a3e80866..b9a02570f45 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -8488,10 +8488,11 @@ insert-directory
>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>            (let ((errbuf (get-buffer-create "*ls error*")))
>              (with-current-buffer errbuf
> -              (setq buffer-read-only t)
> -              (let ((inhibit-read-only t))
> +              (let ((inhibit-read-only buffer-read-only))
>                  (erase-buffer)
> -                (insert-file-contents errfile)))
> +                (insert-file-contents errfile))
> +              (unless buffer-read-only
> +                (setq buffer-read-only t)))
>              (setq dired--ls-error-buffer errbuf)))
>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>          (setq dired--ls-error-file errfile)

That can't be right.

(or (get-buffer "*ls error*")
    (let ((buf (get-buffer-create "*ls error*")))
      (with-current-buffer buf (setq buffer-read-only t))
      buf))

...

(let ((inhibit-read-only t))
  ...)

-- 
Sean Whitton




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

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


Received: (at 80499) by debbugs.gnu.org; 26 Jun 2026 09:43:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 26 05:43:00 2026
Received: from localhost ([127.0.0.1]:41994 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wd35M-00058v-A6
	for submit <at> debbugs.gnu.org; Fri, 26 Jun 2026 05:42:59 -0400
Received: from mout.gmx.net ([212.227.17.21]:50051)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wd35G-000582-8N
 for 80499 <at> debbugs.gnu.org; Fri, 26 Jun 2026 05:42:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782466955; x=1783071755; i=stephen.berman@HIDDEN;
 bh=Ko14jCVnSESQw4NItb6PyQ6IDM6wN0hIGkIITz24Tak=;
 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=txas6LLjwdiQe53q31dipFG5JVNZ4ol1H2fDOv0VMzy+kEHNKhKvPWDNotuNaMka
 OJSSTLubBLrDJa42oouiYTkCKkJncP/njinMjW24/q/+1/VnMhRyLeDnimU875zZB
 Uv6amaU6x7c6G0lj2dHLFQ3Pd9ZZojyVbCnuCb6aLAZmYLhsOG2VAMeK9dDt2S5Jl
 wJ8Y7pax9WIqQkEqtBDb94rHy7LuyoLwEHl2SBzWV3R0Ujo4JYDoGdFinnbXxoTgJ
 YQGtPpvWUwzrWPDPx4XqrjqufHXGnL9OnWRKYj+qFlv0lDg1HyVuu1nOYxloabG1o
 PnZph9CWOFV8k8xpAg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWAOQ-1wefw03VL0-00XPjB; Fri, 26
 Jun 2026 11:42:34 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <m1ldc2cz90.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <m1zf0l8t44.fsf@HIDDEN> <87v7b7eyof.fsf@HIDDEN>
 <m1ldc2cz90.fsf@HIDDEN>
Date: Fri, 26 Jun 2026 11:42:33 +0200
Message-ID: <87zf0h8wom.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:2YDnvu/KCY9HAYeqMGiE8yJNiV8Qtzg5LrWBUmKT3ZKvF6IZHPz
 98J7VqlhJ4/DeyGNSpdvJtHK91oMYDMqUtiUSAWICu2R0/HQ1L2N6sg2X7CyapkZB9Yuwml
 nSUpGOk5jPKFb0OM6Dv/y2+AbwzF64iCAUpUFCJ7DJSjX4mwY6p6HkrgvE1cCZDMxI2vjRj
 kD/pPqGACO/5g5pJ1bHzQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:iWGBKynMGCo=;diYDe1BEtzji0Uo+FVybHv3pfrm
 Mg281zxab3hQL2m256LevNIQzyjVSM8ekMS5+lEEN6sLpvN8JJ7vyMm5mezyo4wv4DvDnNJQ3
 pNAJ5SHslX9Ktjwz64W2JRRn8xGR70LClUCDzHjY8+EmG6oXexxXcWmxN4TTI5PSXNNEusj1f
 lJMcryB4eltpKbk7Hi2GvPjWKr4fq2klpneG2xCw36I7rG5aco8slJS9U8ITzg0SaGQL2gtRS
 utZIvYzP5wAu1qoXZr8nztuwx8ucEyorUsLRK2KpHOGGDc7s3O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SDxFMLn6uKSeWVmkDnHNc5UWcGX3OPt74dxueoC9YsLY+/orlEd6fn
 xF88JyITSNMZYpsKY9n5aidPE9650ujWGZz8Yfz94sO1rotBDM+/Lw+OYcW2Sr+d3/6CHykh2
 IO1PAkAhM5OyMwH4Ph456khvnramnClWd7UM5f8Ti0oL+KGVFC+BNgkj5Jfiyw1m9l5BHYLD5
 8hjE2csqEq72bZcRrgCkzVOIHXP0QHGuR5cHC8JDy5tEsOj5bTB6fx3g5KWQ31YX09F5AjFZ1
 IzKGmDEl8CqakEJwmWVC0vjy1GE7pDH2QAhZVFbAfUbhGDPg/p3qn2TwgcKHQkJuu3IKNM/Ba
 eGBrrGcVgaNv7sAwxPvn0
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>, Sean Whitton <spwhitton@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

On Thu, 25 Jun 2026 20:21:15 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:

> On 25/06/2026 11:50 +0200, Stephen Berman wrote:
[...]
>> Ok, that makes sense.  I've now pushed your change (slightly reformulated
>> as requested by Sean Whitton) to master as commit c9da3c1a5ed.  Thanks
>> again for the report and the patch.
>
> Thanks! However I think Sean meant: set buffer read-only right after
> creation, then use inhibit-read-only on next updates.  With the current
> code, we cannot tell whether the buffer is created or reused, so we
> always set it read-only and then always use inhibit-read-only, in which
> case the point of inhibit-read-only is moot.

If I misunderstood Sean (added to Cc:), he can correct me.  But I'm not
sure what you mean; something like the following?  (Though AFAICT there
is no practical difference between this and what I pushed.)


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline
Content-Description: insert-directory patch

diff --git a/lisp/files.el b/lisp/files.el
index 149a3e80866..b9a02570f45 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -8488,10 +8488,11 @@ insert-directory
           (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
           (let ((errbuf (get-buffer-create "*ls error*")))
             (with-current-buffer errbuf
-              (setq buffer-read-only t)
-              (let ((inhibit-read-only t))
+              (let ((inhibit-read-only buffer-read-only))
                 (erase-buffer)
-                (insert-file-contents errfile)))
+                (insert-file-contents errfile))
+              (unless buffer-read-only
+                (setq buffer-read-only t)))
             (setq dired--ls-error-buffer errbuf)))
         (defvar dired--ls-error-file) ; Pacify byte-compiler.
         (setq dired--ls-error-file errfile)

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


Steve Berman

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 25 Jun 2026 17:21:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 13:21:31 2026
Received: from localhost ([127.0.0.1]:34499 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcnlY-0007Sn-UT
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2026 13:21:30 -0400
Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]:39199)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <fgunbin@HIDDEN>)
 id 1wcnlT-0007Rm-Vl
 for 80499 <at> debbugs.gnu.org; Thu, 25 Jun 2026 13:21:26 -0400
Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46])
 by mailfout.stl.internal (Postfix) with ESMTP id 54BD11D000B9;
 Thu, 25 Jun 2026 13:21:18 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-06.internal (MEProxy); Thu, 25 Jun 2026 13:21:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h=
 cc:cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm1; t=1782408078; x=1782494478; bh=R580qUIeXO
 clNDFMDEBlUtQspANZSJIeUW7HYVZ+FDk=; b=MJ3Pqc7Fv3DkYI/xoIyW+aLGCL
 0a9r8CD5bJ3fcggU0SjUkv/qJL13gWUiIWr9snH2sfEDFV8Izg2/VUr8zhV47FiC
 oes3cXW9ZHEbNtcLc9+eJQY1lccux/W3M5nqbXJZVm7Q0utb3cIJLiiZ/TvBOjFJ
 R5pTwgkeaXJ498ZqBVLbwyD7pA9d/yNfpM1mNGcCvEk8hYM4naHJi74QalqTqsio
 7g+YJta7aPlfGAJ4kvB2tEg+KxjQLKiWLdDGOA4qu6vQ+xGgMXH7P25M0KWABdmp
 Opow9W4RVqwbJvkoCRTB9QnOetf1A06Hf8wyInEDaMYk2i9znFGwdCWPNreQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to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iEn//cJdtuztm7jlLFdJZIkNHWR6ZTGNPEhAW2oM
 Pd/0oD3uFt3e213sjZ+QBycx089ggNQp3O0ORqxBRtqKvVeFQ4caV//pU5fsswVvQqmmkC
 Zaquy9I0DplyTJnPitH/BjCIMJgnwph8dIJciW2Z/QTg3X7kb2azQRxPkU2QZHF0xh+B3V
 AWhryNjlPjPLIZoOEKewbQRgODEGHpLBZGEqbs2vs1RvBQNvUeMxnr4nOPw6+vWZ2HLmna
 AAbA8ShSw6jOuSrbsrnI4pEvA6Vjxonv7Cq1K7RIVzWWVRUwtDmScc8Ek5kaP/PIcTafAD
 X+DxWl++1oBIgt3rD4qRhfaa5O5u0kRIE71CBG3MP3jnd/MkulF/DJss7AbQ
X-ME-Proxy: <xmx:jmM9arRfEETvgDEJqM-owO5HUfCG_dUkLsK0gabieEYTKrxS2LWY0Q>
 <xmx:jmM9ajrzRW33pp7N8LAHKcidkpoKNUResnn5btGwI6CcyQs3wPIvtA>
 <xmx:jmM9atwsWO-340sbBeKbGi41LrjgJDk11nBiA6Hx45VTQ3O4dugw4Q>
 <xmx:jmM9aoLLe7HlrOG5wvgO_KF1geoUuuPYpddK4X8Z0rOzvbU5IocKjw>
 <xmx:jmM9ahAQA0DW5VpMK1vjiU6tK2bLCY68AYfM2jCnIJGwb5cQzvrjr5RE>
Feedback-ID: id48c41f1:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 25 Jun 2026 13:21:17 -0400 (EDT)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87v7b7eyof.fsf@HIDDEN>
Organization: https://plainsoftware.org
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <m1zf0l8t44.fsf@HIDDEN> <87v7b7eyof.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Thu, 25 Jun 2026 20:21:15 +0300
Message-ID: <m1ldc2cz90.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

On 25/06/2026 11:50 +0200, Stephen Berman wrote:

> On Tue, 23 Jun 2026 13:10:35 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>
>> On 23/06/2026 10:08 +0200, Stephen Berman wrote:
>>
>>> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>>>
>>>> Stephen, I was the OP of this bug, I'd like to thank you (and others)
>>>> for the thorough work you've done here.
>>>
>>> Thanks.
>>>
>>>> What about this little addition of making the error buffer read-only?
>>>>
>>>> diff --git a/lisp/files.el b/lisp/files.el
>>>> index 5aaa0d44a04..caa6c1ec9ca 100644
>>>> --- a/lisp/files.el
>>>> +++ b/lisp/files.el
>>>> @@ -8488,8 +8488,10 @@ insert-directory
>>>>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>>>>            (let ((errbuf (get-buffer-create "*ls error*")))
>>>>              (with-current-buffer errbuf
>>>> +              (setq buffer-read-only nil)
>>>>                (erase-buffer)
>>>> -              (insert-file-contents errfile))
>>>> +              (insert-file-contents errfile)
>>>> +              (setq buffer-read-only t))
>>>>              (setq dired--ls-error-buffer errbuf)))
>>>>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>>>>          (setq dired--ls-error-file errfile)
>>>
>>> I can't think of a serious problem that could occur due to the error
>>> buffer being writable; have you encountered one?
>>
>> Not a serious problem, no, it's rather that it's more natural when
>> informational buffers are read-only.
>
> Ok, that makes sense.  I've now pushed your change (slightly reformulated
> as requested by Sean Whitton) to master as commit c9da3c1a5ed.  Thanks
> again for the report and the patch.

Thanks! However I think Sean meant: set buffer read-only right after
creation, then use inhibit-read-only on next updates.  With the current
code, we cannot tell whether the buffer is created or reused, so we
always set it read-only and then always use inhibit-read-only, in which
case the point of inhibit-read-only is moot.




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

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


Received: (at 80499) by debbugs.gnu.org; 25 Jun 2026 09:51:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 05:51:01 2026
Received: from localhost ([127.0.0.1]:59800 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcgja-0002if-55
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2026 05:51:01 -0400
Received: from mout.gmx.net ([212.227.15.15]:59353)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wcgjU-0002hV-LR
 for 80499 <at> debbugs.gnu.org; Thu, 25 Jun 2026 05:50:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782381041; x=1782985841; i=stephen.berman@HIDDEN;
 bh=2wtv5BjoojLz1OEEaQsrf9J0gj/82cvfrfVfkm54CgU=;
 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=YghRuprfPgLstA+wuTLhsCB8sjLQEzOnFoYTzbpjbj+6kGLIxttnR2UnYoqrv+X/
 pb5OvcC6+UGWIoixylzgAUYPOAEyRcAHkgwnMmxhlazYyqk2CSbXnh8+ZNPMVFtdf
 vWUXlXh3J3fq6/a5NUJiu9/K7AuJsbMMyhezBtMXxKrphS+XknJ1AgOZthWHf92lk
 toIS4fV1o6CdSDW/7o8REA2eMr5ZDeqDgEiqUpm41OYK2rGY1Zn95WJTFM9wsssAp
 2BraYtaITArZ9SYWIdcUh6oN6WRt2H58lxMFfRfoFfXHkg/QLnMAh58qbDyzccbHs
 3g4qabPaufOnUSV9Og==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mlf4S-1x3SxX0Z8c-00dDEW; Thu, 25
 Jun 2026 11:50:41 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <m1zf0l8t44.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <m1zf0l8t44.fsf@HIDDEN>
Date: Thu, 25 Jun 2026 11:50:40 +0200
Message-ID: <87v7b7eyof.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:sH1Ejv2b//fepOHd0K8iNym0lpJpJOVZN6976ScpTXsBQmAmaHl
 mvJSMt+5OGYd1aNgnV95cMmSUFnwWSotHNueea9H5pllkmH/AbkFC9YTBrncj6eKl2fP3CS
 CZWX4Dn0jMtU9M7KwE4A0sun1aPheMRJAUWOpmZxYjPW3espGJFtD9HymbjOGX5e+XrT/T8
 yk7vMaY6QZMZzbJEaLR8A==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:V2TaWdzLP84=;T5XtyJPd0VH2z6NlWlAGpo7DoqJ
 GVbZUzF2buhtp0VW04+SGVtwu9bgyeYLNgrdUixcvBQacf3Nt4Bvf1cEq6BXonTwoiyfbcwwu
 SZVxXe86lCeuoqoBsQB+SruoEcdnTbPQ0r9j+UaZlZ3ZG9GjAvN7Z0BRCoJBUGSw20/apEJkO
 ow56oJ7QNOW7Nqg+KSyF+x6ZtFG6B/FcsffWZA0R2vvazSnf1geGD6GxVB7I4BJ8mOI3EH+uQ
 67sKa1PF6j0qIGbjZC0MrMpstyPBFrrDv8VY9XL3eMn2zMcCa6DHxs8KxSNFJ5kzKkhsqQeZG
 k0lccR6WYvcK6LB52s0JXBVH9Sqdr6Die9j3iNY55XC0SBxmFRAVaHRTD7kbFX9c7kvZyNd93
 NGE0DYXgClMywgaCSGSZvNkxwgirYRuT51zp4oZ2E/ToGUe0BMcoVaPmsX8eMJACtsSyZ6xuX
 kcx2n/iNJY0qydPMrCep/3zEk14/WpVybbuT1QPC1Vgt0eds/Xqft9fJ46Ady/X7Ls5d/sjib
 XeszW9GJrVjyKawA4UssFnLAgWW6uD/EZ9mQyU9AHZaD9dRaYVDTUrltR9O08n4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u.org" <80499 <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 (-)

On Tue, 23 Jun 2026 13:10:35 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:

> On 23/06/2026 10:08 +0200, Stephen Berman wrote:
>
>> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>>
>>> Stephen, I was the OP of this bug, I'd like to thank you (and others)
>>> for the thorough work you've done here.
>>
>> Thanks.
>>
>>> What about this little addition of making the error buffer read-only?
>>>
>>> diff --git a/lisp/files.el b/lisp/files.el
>>> index 5aaa0d44a04..caa6c1ec9ca 100644
>>> --- a/lisp/files.el
>>> +++ b/lisp/files.el
>>> @@ -8488,8 +8488,10 @@ insert-directory
>>>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>>>            (let ((errbuf (get-buffer-create "*ls error*")))
>>>              (with-current-buffer errbuf
>>> +              (setq buffer-read-only nil)
>>>                (erase-buffer)
>>> -              (insert-file-contents errfile))
>>> +              (insert-file-contents errfile)
>>> +              (setq buffer-read-only t))
>>>              (setq dired--ls-error-buffer errbuf)))
>>>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>>>          (setq dired--ls-error-file errfile)
>>
>> I can't think of a serious problem that could occur due to the error
>> buffer being writable; have you encountered one?
>
> Not a serious problem, no, it's rather that it's more natural when
> informational buffers are read-only.

Ok, that makes sense.  I've now pushed your change (slightly reformulated
as requested by Sean Whitton) to master as commit c9da3c1a5ed.  Thanks
again for the report and the patch.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 24 Jun 2026 15:58:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 11:58:32 2026
Received: from localhost ([127.0.0.1]:51741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wcPzh-0003gk-22
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2026 11:58:31 -0400
Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]:48591)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <fgunbin@HIDDEN>)
 id 1wcPzc-0003fT-Qk
 for 80499 <at> debbugs.gnu.org; Wed, 24 Jun 2026 11:58:26 -0400
Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 215937A00FC;
 Wed, 24 Jun 2026 11:58:19 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-02.internal (MEProxy); Wed, 24 Jun 2026 11:58:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h=
 cc:cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm1; t=1782316698; x=1782403098; bh=ZHtgo072RS
 NV3gmQoVxR8NAABguNEKzjBLuMZMo0nlI=; b=FWezqRaS9VOuawWapiG0HIRT0E
 t7etETLt8SZ14/MgWAGjx8+FzauOfNal9wTE+hUoNH7U9RRWfZDOOFsN5NDNZiyv
 aIhI1w75OFxz5f+2MPMU67CWq7VvF3P9HBrJ3lUAUsTXH6Md8Vc4INSUYRQcGWrW
 rPKnO8qjhr+WfEWxzoPooTjhDPrCC0V7EMMqMpayETK5fUkFXUq3ftnRoygXMgEP
 PCWXYiUTH8QW8rqV4360dMQOhvuhhdLwzT8dOOk3yFto3iUZE07oNpIw5BAOS6t4
 UOr6n16HvozRF9TMRsxLy0T4sxLZkuhrQ2iee4rJYyG8gKVjqB580002bdCg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782316698; x=1782403098; bh=ZHtgo072RSNV3gmQoVxR8NAABguNEKzjBLu
 MZMo0nlI=; b=Ki+ZGfyrHgPPrbNGIE0++4nZRfyJQ6xVIxLvgUDJbOD9jDyQ8wL
 z108RJ6ZaG5PM+koPK/M1oUtv7DCG2sXrX3VFWQYKAFDz6kFtxch4dNrAfncnYq4
 EOyulncZmsxgKXr+r/RI+IgAHml3YLFSIIjXQAGvVCEyQzZOd8YuVUxteoQaKbTd
 WQXl/wc08oOuBbramxFOVBCL35eSr2JVfmx7BOyTW9UV2eZNgsegnUK8uB/qIswZ
 z8XEpaRANeM8NG6BkxJuYzXUrzmQIDjLlz1dAzjw9mzW23XIM7ZXEERLA2CWlohJ
 /MIHbOlB7td2eewlrDp7Oh4QXngtqheI13g==
X-ME-Sender: <xms:mv47aiX_WdLAsEIPYZgtOgwUxz7L4bpU59dNckXPvGpQno_Hethrqg>
 <xme:mv47am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V3WnLXDkN7PLUABZd8x7w>
 <xmx:mv47ai41MfMLx9r2JSZVZ_avlp3FCDI11OAA4WmPmMw3D4YTqTdKuw>
 <xmx:mv47aqz0CQNs2Usl5MQHt-x6R1GVtTWPgBx3Eb8nZQVjGUI7mzTIJiim>
Feedback-ID: id48c41f1:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 24 Jun 2026 11:58:17 -0400 (EDT)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <878q85nvmx.fsf@HIDDEN>
Organization: https://plainsoftware.org
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1tsqt8sqk.fsf@HIDDEN> <878q85nvmx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Wed, 24 Jun 2026 18:58:16 +0300
Message-ID: <m1qzlwexrb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

On 23/06/2026 17:07 +0200, Stephen Berman wrote:

> On Tue, 23 Jun 2026 13:18:43 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>
>> Hm, I think I found another problematic case here:
>>
>> - mkdir -p ~/tmp/1/2
>>
>> - emacs -Q -nw --eval "(setopt dired-auto-toggle-b-switch t)"
>>
>> - C-x d ~/tmp/1 RET
>>
>> - Create file with newline in name in subdir: M-! touch "2/a\nb.txt"
>>   (C-q C-j for '\n')
>>
>> - Type i on directory '2' to open it in the same buffer (you can do this
>>   before file creation, no difference)
>>
>> - Observe that -b flag is not added (via "C-u s" or just visually)
>>
>> Or should this be filed as a separate bug?
>
> Yes, please file a new bug report for this.  Since Dired subdirectories
> are inserted within an existing Dired buffer, fixing this may require
> refactoring or perhaps a different approach, so it may take me some
> time.  Thanks for raising this issue!

Filed as bug#81295, thanks!




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 15:07:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 11:07:13 2026
Received: from localhost ([127.0.0.1]:41962 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wc2iX-0006ps-DZ
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 11:07:13 -0400
Received: from mout.gmx.net ([212.227.15.15]:39443)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wc2iU-0006p5-Vm
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 11:07:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782227223; x=1782832023; i=stephen.berman@HIDDEN;
 bh=QPTduRDP2SRAefPKoelvX77RuPfDttfPRUuC6v74djQ=;
 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=d4XqwJVZPoiWRRGPbKR7+pmez1u9RsOJ341uNOxVUeKE7KGJAqptok6FRhrgE5iw
 Zz7PTfSev3bUnTaDjUepJLxZE8HtlbDH79bWW6QOlPQmaMjcuCvf2tkG3vw4Qu87K
 zqf47ZnpicR1fCc9W1IR57FA6ZsrJEquptKZb3b0L6FF8G/gDPmpwOJAqAHUuBivd
 lhD2mZ8fE8uuHxzbUxmAdMcT6YADi28jNOzAIG1At5BQfH0eN4P6GFZHWzfsU7z0S
 o5GV/+tIgCRBMSEKxp9p/WBkG7QUdrUMs1nKlVGva3NncR+4gpv/5a0nYq8T5A4wM
 8um710Pq+T6YbTbvNQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MuUj2-1xSDvZ3EVW-013hJo; Tue, 23
 Jun 2026 17:07:03 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <m1tsqt8sqk.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1tsqt8sqk.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 17:07:02 +0200
Message-ID: <878q85nvmx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:TZMvNNNcU/gUKILtQ+AvBDpS+FNoGnfEf1ygYtGcgMvC0jrmS/Z
 qPX8jW1Vea3VDfoIYA/G/KXMTC2Uw78m0vQonS66Bw9m9JJUKveL2l8BK2ULL2FW7qPwdAZ
 r/X17e7UW4cisuTBh74cYa0QWPXJaH6Ztr7wQq13jT05RQS6nGdfzOwRszAWUMJ/YFjdeWR
 T2yd7SVw63lcXX7BqUzSA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:0BPWOhmihvM=;haeVsdfRiQ4cbXNwcZXq8jj8t9R
 Wdy59WyQV4LImug75mzwkkbBNPQG4oiVXTYTtB/tfVlOOzz4x070smf8PCfIHFiDW3mJQWKig
 N7G1fgabrzugyUIhhlCLQsvGjJFpxm6YL/90TbskXh7Dg72mcYq5nPDY77w+iMs1kW1OPP9/I
 aQwM4CmOEmTt6tLxmhpeAARPILAooaFleCCqhWcpD20/8j40guQRHygHmguUa7SJs9KRnB8sG
 ZH1y6z8owipnJ1QkwWbC1Ccjsvkbsbseh04pQ4+okd44Egc3EP421p97YLJLfAZTdI0BvkmLn
 UKwBtbMt/AgxtI7w0RmpzU9/E8MFuIO83us0NbI3sRaygLROBKXqAFgsPk2rft5j177mvLlFN
 qmj/VoNxqv5jh2siUp9L8GlsqUKY/MgOp/CHAKWG46O4kN9d3s2Vb1DZpJOTO4YT0Vjmg7J0Y
 P1AW5OAO3FEv8auHKla+WyuJgwrKcXo4eFOvTIRER4BAFowy30hRSBRW9DQmvJXj5bYsIajRQ
 SwtwA5xQAWI4vBerEkSkA4o0vP1i/bsZxF5h/SgptAL9SRbq/RgGtbl/y8L1+/oSST7mSLcW3
 p3VIljgcD7+lngY74QiUlXMoq/M7nieatZ8waU4XXuiijVbOyvU0ISqN5VWs6HJLWIjSD1P3F
 6UjMd/zcs6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alDeXo20b3HGr7EOzUekM5ddM
 uzhV3WWwl8kVzQdwy96vMm9rkQLuw4bP/d/nkSl4jhUIlYb4W7P+piknLtBi1L/QSphxVYW2g
 F+lZfuY2Hju8cAhyDJG3bor9dt18C0mpT6Fb4njhh9gukSAesYuGVKPRZt6uodOcR29z2XlMF
 dFPxir0vT/GfsIIpcicCpvrCPyro8q0p5jyjaKABYBA00gCMjLnRj6uXFK22+CRkadBbA0Pyg
 CXIf3jpFeLwZa7JxtgJkuMDuk69zNsLlAvYkh0UKqC9tS64TDIVy0RvNF9Zz+R9lxxZqKbBj5
 RY0GFi0Yhs5T3d6TGYkMQP9rnZTwPUbemh/4j/U5M9mxbDm/bXIWO+UL09EIWFVLZKhvY4UCe
 DbRDX00kfvE1ZW4TOB5eLxcmw3wYCd0BHvROr3Gk804dNqX16AM9/ocJOxwadCjMXrQ+Cho1w
 IjoAA5Ic5OZsbfDZnf9vS6LQAiA15n8NMB1u9D3+b7VvMUjTr9umogFFuy4fqTThHeIoYYpAI
 zvuMxkdMTSsdJpABid2BPsf6xL0vp6TUCTpgbiMEFbqBzvFTs9KRJlgRYH5CtBBX0S+vM4kPC
 0ZZplL078vYKCLCjxHCZVNgC86j/GaRGa/MuiZhaznYCt4I35i+5Ki+vpRx82bgF2tiHtMmZb
 3gKhtoOML0c16k0gYZ9mJCVO9Czid2wAihPL449+zrkAyjklA95lSw7XUhzNb+r41vu6AmcAV
 nVPBCMecChOHDZ770QzCMs+94bzV32mazRRQr3y9yPM96KLYUEbniOEGWJ6vXixyx5MNJijSp
 oplL1oxrK25657fFCFM492joCXqZ5R5hGHCjlfR
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

On Tue, 23 Jun 2026 13:18:43 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:

> Hm, I think I found another problematic case here:
>
> - mkdir -p ~/tmp/1/2
>
> - emacs -Q -nw --eval "(setopt dired-auto-toggle-b-switch t)"
>
> - C-x d ~/tmp/1 RET
>
> - Create file with newline in name in subdir: M-! touch "2/a\nb.txt"
>   (C-q C-j for '\n')
>
> - Type i on directory '2' to open it in the same buffer (you can do this
>   before file creation, no difference)
>
> - Observe that -b flag is not added (via "C-u s" or just visually)
>
> Or should this be filed as a separate bug?

Yes, please file a new bug report for this.  Since Dired subdirectories
are inserted within an existing Dired buffer, fixing this may require
refactoring or perhaps a different approach, so it may take me some
time.  Thanks for raising this issue!

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 12:37:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 08:37:30 2026
Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wc0Nd-0006bI-KQ
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:37:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59310)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wc0Na-0006b2-Ql
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:37: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 1wc0NV-0004sw-G4; Tue, 23 Jun 2026 08:37:21 -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=j0TYVZC5zrlfYYbdI+d+L33xhk4/YB6c58FxhfXlPDQ=; b=I8+WZM7T19mB
 4NSZ99R3BRiezuBhzEWrLjI9fHS/UD4V0kZgp5AvR6hEXridmngXGaVB4q4FY//bUHO26irVis+3P
 eYPy40ANQ70hLRuxDT7yp5Q81n0F3wbxAUpHSOqXJhSPnfGr6yLOouVQengMm1q4ggpKrm20nwC6k
 MwRrQ7EhUFgg4gHJVxsHamrLxTVt7tapq4hkedP8jwWAzs78GolvM5Vb1NxDRLsXShv0RjvoNPdq9
 Sj1RDOoQW+5vSAXvzvs+dEcVj1vpQW858Gyb4eR6TRVWHTM7uliHQNMl3Fw1ATDu6srVTHrsczeLm
 Svr1bpUclEdkm2Th+80UAA==;
Date: Tue, 23 Jun 2026 15:37:16 +0300
Message-Id: <86se6da0w3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87mrwlo3k2.fsf@HIDDEN> (message from Stephen Berman on Tue, 23
 Jun 2026 14:15:57 +0200)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <86zf0la2rz.fsf@HIDDEN> <87mrwlo3k2.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@HIDDEN, spwhitton@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org, Sean Whitton
>  <spwhitton@HIDDEN>
> Date: Tue, 23 Jun 2026 14:15:57 +0200
> 
> On Tue, 23 Jun 2026 14:56:32 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
> 
> >> From: Stephen Berman <stephen.berman@HIDDEN>
> >> Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,  Eli Zaretskii
> >>  <eliz@HIDDEN>
> >> Date: Tue, 23 Jun 2026 10:08:15 +0200
> >> 
> >> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
> >> 
> >> > Stephen, I was the OP of this bug, I'd like to thank you (and others)
> >> > for the thorough work you've done here.
> >> 
> >> Thanks.
> >> 
> >> > What about this little addition of making the error buffer read-only?
> >> >
> >> > diff --git a/lisp/files.el b/lisp/files.el
> >> > index 5aaa0d44a04..caa6c1ec9ca 100644
> >> > --- a/lisp/files.el
> >> > +++ b/lisp/files.el
> >> > @@ -8488,8 +8488,10 @@ insert-directory
> >> >            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
> >> >            (let ((errbuf (get-buffer-create "*ls error*")))
> >> >              (with-current-buffer errbuf
> >> > +              (setq buffer-read-only nil)
> >> >                (erase-buffer)
> >> > -              (insert-file-contents errfile))
> >> > +              (insert-file-contents errfile)
> >> > +              (setq buffer-read-only t))
> >> >              (setq dired--ls-error-buffer errbuf)))
> >> >          (defvar dired--ls-error-file) ; Pacify byte-compiler.
> >> >          (setq dired--ls-error-file errfile)
> >> 
> >> I can't think of a serious problem that could occur due to the error
> >> buffer being writable; have you encountered one?
> >> 
> >> But I don't see any harm in adding this change either, so Eli, is it ok
> >> to install it in emacs-31?
> >
> > Please install it on master, I don't want even the slightest risk of
> > breakage due to this on the release branch.
> 
> Fine with me (though I see no risk of breakage from the patch), but
> since Sean already gave his ok for emacs-31, do you two need to reach
> agreement?

I will explain why I think this should go to master, and then let Sean
decide:

  . the problem is minor, if not nonexistent, basically an aesthetic
    issue
  . this bug was tricky to fix, and the result was installed only very
    recently, which doesn't leave much time to make sure it doesn't
    cause regressions
  . the very fact that this tiny additional change needed several
    messages between you and Sean to decide how to do it correctly
    already speaks volumes that there's more here than meets the eye
  . making a buffer read-only could cause errors if some other code
    wants to modify the buffer without removing the write protection


Last, but not least: we would like to make as few pretests as possible
before releasing Emacs 31.1, since the beginning of the release
process was already delayed too much.




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 12:36:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 08:36:42 2026
Received: from localhost ([127.0.0.1]:39054 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wc0Ms-0006ZE-7s
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:36:42 -0400
Received: from mout.gmx.net ([212.227.15.19]:50993)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wc0Mq-0006Z2-M0
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:36:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782218182; x=1782822982; i=stephen.berman@HIDDEN;
 bh=jinVPNrHT4ZHR6IT/BWAqiN1FFi8QGnUPvw+lDK0sIM=;
 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=CGmG7fK2SYMc06j5jvB+rjJtovo8fRJElfLFCfw+UY6HfL740eHww5tyoNyyg8aF
 L4T+O4Ww9RMHhWNvO6OpjN9fAbWXyV7iWZb/ofkDcTGw7Ig/Qdnxi+097KIlPaukf
 JE0rVAWWFiLuo5RBt9ZUMvbgdikWeZXER8Qezr9xqZCY1G6XxkbDc6rtd5pp9LMXL
 NUsLkkPiTOBQMEEzF/PeeUNdvVROqP2s4fB18NL7Obhh84GIzj8fZmXHP5kfRFCYQ
 jTTEpKHxxIDFplHpQIuPgnmG8zyGteIHvVPK0C5o8FYdXw44nBeXzv6ExcR3GVJ4/
 Z1SQOfDGcjN62AqYSQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfHEP-1x4RMj1QDL-00oVot; Tue, 23
 Jun 2026 14:36:22 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87fr2do35i.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <86zf0la2rz.fsf@HIDDEN> <87mrwlo3k2.fsf@HIDDEN>
 <87fr2do35i.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 14:36:21 +0200
Message-ID: <87ik79o2m2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:uX4SK/Obymg/otw06H1kF2JmOOnBpGR3hjJiwJEFtqgqK+HQjzI
 6VZELl7fk5C5flCfYSvTdEnLkfpQcG0uLAtjdPPTjEWnzJ//NktyU2qdO2OnAjcagXXyKVA
 EkF7obgauRNf1BYik35m0OKlDz8cgN+dCV2MNaF5DmHLQjeyZU666PshV8MUd8hVpJXVCna
 bmnba82Mu0+gL33DhrX1Q==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:0Pog6KMOTvg=;aRyZuR0tVF8z8hbwcezaZmE9fSG
 6BE37hwBjUHHtABJgjFQa1/VPL3epvW9oJ2gkptBynfSLBtoQLOPpWFtbRlBGEVnyefmRtVP3
 rB8Y3jKX1O2t1bz5ZdcOyhH4gGFHNIwcppMwRDti4j99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fCRbJ03zcAoAUAqLASZV1zXwYsLheQkMpjTya8DqYS
 Ow12v8KzpbYO5Szu4/TP6Liy9ufX7eZHsAvo7BqxIrLoj/RWspS+4SXln6bzzMoOZ97OncwYt
 RxZj5+NI9K1FX+1LrSHyJqoY03DobmJTl7fy7o9UAcesavDBTE9z/Q7lK8sVe17Rm8QmcKVpx
 a0Z31+VPz+oEhson+5iA14JzO4UcuJ7ZyAIkzFUZDnjEy2bBlOLe9RSWBMHbcK/FtsEuBr1Ds
 7efwLHktESfPMyNcwuwNpKjio+4=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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 (-)

On Tue, 23 Jun 2026 13:24:41 +0100 Sean Whitton <spwhitton@HIDDEN> wrote:

> Stephen Berman [23/Jun  2:15pm +02] wrote:
>> Fine with me (though I see no risk of breakage from the patch), but
>> since Sean already gave his ok for emacs-31, do you two need to reach
>> agreement?
>
> I withdraw my suggestion to put it on emacs-31.  To be honest I was
> dithering over which one to go with when I wrote that.

Habemus consensum!

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 12:24:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 08:24:48 2026
Received: from localhost ([127.0.0.1]:38968 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wc0BM-0005rv-Ir
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:24:48 -0400
Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]:53183)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1wc0BL-0005ra-LT
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:24:48 -0400
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfhigh.phl.internal (Postfix) with ESMTP id 86A901400074;
 Tue, 23 Jun 2026 08:24:42 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Tue, 23 Jun 2026 08:24:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1782217482; x=
 1782303882; bh=BFf3BAuxJ+Mo15IWNvRRTIsSFX1tEu2Wcd7+b3/TTLM=; b=T
 WA+KL2x+JMw/NuYkiV91dsBmqiwtorUG1hjxqFT8/ojZ9Px0dvUc7cRapPzAR4Ft
 BFYVvpAhMo8UHnfEIl9i4TdR6kZcMXS9LZ7F+zMIhNBoh+cwIohS5G1YeX90hpP7
 +mwKaQKH1obJLdiejfM1yTh9CjMa4JJCdbm3WrrHbTWCWi+yk98pnmJb0qaKN+km
 DffgyBXiIvllrUcMHSgm9yBeIpiVx7wzUztv0a8RPPl+MEsmKY/5dDwQ6/0dy0jW
 mLjTAmi3CKmviQc5PoYQxapEH8IjvgsXPsQiaLQjOrazBL2t7I7nzhddRrtpfMZy
 bHDaJV5HC38cblSFqhL9w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782217482; x=1782303882; bh=BFf3BAuxJ+Mo15IWNvRRTIsSFX1tEu2Wcd7
 +b3/TTLM=; b=W/fmLEkmzykIOFUpbVgirycqac9ZxVo3EDXn06a2oALjgMcwRLF
 iYKPKAeeuC/LMuz2IW13OnpKzEsxfke0Kuv4M2TBI9O9GeBSU0drOIf+C5oZqYsM
 7YlZF8YG5T5lse8NztEfJbMVbJVgOYJwBE0uxvvA13XXhy93prgnoBkPXIxlniWt
 w2rX2FVAdSAxS5tZTH2fGtJqBc+MMd16biQpkUiScrJ8MobPoTTqXFyXK1rDH2st
 f+a2wMd8UarDRsB+MUZF0zbruP5IJUdQ/i/m3T2qRjfKL/AhH7NEBS9lZw7lIobb
 VtqiofdkqQVJAtobINZbaL59K7g0HBbD7AQ==
X-ME-Sender: <xms:Cns6agiwEej123WtGkuKuXI5RJUrslHHXsmVLkG-19qpgU_9tVI7Sw>
 <xme:Cns6agDkPU6QII9twGiIwVXhy9CqfBhOT9m-VI9ldASh-MoA6kPjkbSuxImzH4ELr
 rrvTaoyNhjGPelkVmmcYoHsHomMWmOBfB5xBqO53Rl9a-z4ZlXl>
X-ME-Received: <xmr:Cns6atEhHIkJBxaMkLExEo61LHGKdonkAJe9xFU8vXNDzwab5Cjv7MmcAvxYf6pdp_VXHBSl6Po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messagingengine.com (Postfix) with ESMTPA; Tue,
 23 Jun 2026 08:24:42 -0400 (EDT)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 69FFF7E8A72; Tue, 23 Jun 2026 13:24:41 +0100 (BST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87mrwlo3k2.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <86zf0la2rz.fsf@HIDDEN> <87mrwlo3k2.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 13:24:41 +0100
Message-ID: <87fr2do35i.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (-)

Stephen Berman [23/Jun  2:15pm +02] wrote:
> Fine with me (though I see no risk of breakage from the patch), but
> since Sean already gave his ok for emacs-31, do you two need to reach
> agreement?

I withdraw my suggestion to put it on emacs-31.  To be honest I was
dithering over which one to go with when I wrote that.

-- 
Sean Whitton




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 12:16:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 08:16:07 2026
Received: from localhost ([127.0.0.1]:38910 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wc02x-0005V3-CC
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:16:07 -0400
Received: from mout.gmx.net ([212.227.15.15]:36463)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wc02v-0005UG-6T
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 08:16:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782216958; x=1782821758; i=stephen.berman@HIDDEN;
 bh=Si4FcyChFx/CZR3oc4FU0h0gGdxxBLn9d8k43zYd8eA=;
 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=c5g3fIArYoa/D3h27389JT7tfd2P1SCYZ/Aa38g8jUacerB6jH356g3W+He1s2ef
 KyYSrso4XApFw0jFLnM2QT+PSvUK6M817LN6fR4MQkpuABmQ8DLz0oU0qlwExGfbI
 q9hCve4nN9EUtPggOcS8H5CbUH9SVuGIQzWH46o1fszqdSQSGR+I5NHfjFKDtDiB4
 IxN111tStch/t0FNzWybnyH5FQxavdF6waFztYH5GYOZwgWf2Aj6ncnsF0r3p81ZB
 ZELYa1e3VDJASnwzx7pBZ6DG2JbWUQRvieBIKr2KT+8/Wddq4npBeLBXakNjVawoC
 Dxi3RshGBMswFPYBBA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MF3DW-1wMXYr49we-005X5M; Tue, 23
 Jun 2026 14:15:58 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86zf0la2rz.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <86zf0la2rz.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 14:15:57 +0200
Message-ID: <87mrwlo3k2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:wBpxvqa7lvEZdQb1TRN1r4tiLR1SHh5eqADRrkqb/cHg1ALUXVJ
 8dym8ouDaXYL2SZUpFbHokSUhEDfTIAmqcB7icCpKOohUDqdSyH1baS9ZOoA75jDT7AhT83
 oNTTiQDtL8WeK+4g5UlP0UBEfxaGN3DxtJC4JkJ5KDFu5I+kFp6foTNbNeQ7qG8yDGMSC2C
 GHfM4InLLhbh3VSJZ0MiQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:8nPZdLu3LSI=;pF0dDqMn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lSXiQywOD19BFVubGkCh7jl6R9PfbF+E83W9xXTkfY3YDkqbLYBCFtkl1whEiRqqPi
 mfXPtlklQc+4XmlgIcaGpAisMXPAxXmGXIHrtRDojHoYU0n9lT8QhblhcVo9PF1JHYhCc2fCI
 Oey9YpANVpcO3r0ZvWRzPOoLNiOeMo4J4aKDbFV7LD0EDYVT0eyt3EdPGGGRHVeIHIlqiCg8w
 AHACmuYvoFHJ6nZ3n742X6IE0A7/BDavldZ6kWHs3pEf7/SF9kXb1zYs7ZWr2J2zD8pcUYV/p
 /uKap0OxO+MCrvjJs+YSJrdX7/DD4PjfmLu15IPFXHgN24mAZG2SxHVrxNbz8sDZREI4eSmjk
 Yh0fa893yLDQqtL8jfyNjEFKD6qt4LQ+Wy8EP/CM5URv+qV6NeKyewVmqhqczUgw82HBBkqf5
 07LBFExHMfTnc/2Nr+yV/oJXGVuZYOHpTpr6n5E1Vlpr9dcUTS8q1Pvv8ncX8hupZA+6Ww==
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@HIDDEN,
 Sean Whitton <spwhitton@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 (-)

On Tue, 23 Jun 2026 14:56:32 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,  Eli Zaretskii
>>  <eliz@HIDDEN>
>> Date: Tue, 23 Jun 2026 10:08:15 +0200
>>=20
>> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> =
wrote:
>>=20
>> > Stephen, I was the OP of this bug, I'd like to thank you (and others)
>> > for the thorough work you've done here.
>>=20
>> Thanks.
>>=20
>> > What about this little addition of making the error buffer read-only?
>> >
>> > diff --git a/lisp/files.el b/lisp/files.el
>> > index 5aaa0d44a04..caa6c1ec9ca 100644
>> > --- a/lisp/files.el
>> > +++ b/lisp/files.el
>> > @@ -8488,8 +8488,10 @@ insert-directory
>> >            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>> >            (let ((errbuf (get-buffer-create "*ls error*")))
>> >              (with-current-buffer errbuf
>> > +              (setq buffer-read-only nil)
>> >                (erase-buffer)
>> > -              (insert-file-contents errfile))
>> > +              (insert-file-contents errfile)
>> > +              (setq buffer-read-only t))
>> >              (setq dired--ls-error-buffer errbuf)))
>> >          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>> >          (setq dired--ls-error-file errfile)
>>=20
>> I can't think of a serious problem that could occur due to the error
>> buffer being writable; have you encountered one?
>>=20
>> But I don't see any harm in adding this change either, so Eli, is it ok
>> to install it in emacs-31?
>
> Please install it on master, I don't want even the slightest risk of
> breakage due to this on the release branch.

Fine with me (though I see no risk of breakage from the patch), but
since Sean already gave his ok for emacs-31, do you two need to reach
agreement?

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 11:56:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 07:56:43 2026
Received: from localhost ([127.0.0.1]:38835 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbzkA-0004ZP-Po
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 07:56:43 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57940)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wbzk9-0004ZC-0e
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 07:56:41 -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 1wbzk3-00055o-FI; Tue, 23 Jun 2026 07:56:35 -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=FA/1i1pdkSyGnQnQKMKdLlgTZLaF9a9UXdRqehqAEr4=; b=KgYFB2PTqKsa
 6iUiZitjSggXggJLLhV/cvxbFT5/JG8oPCQgTDZb8q2YdNA4GLVxEUYfG0Z4Wz3cdFKVUJwbF6gpt
 w+PXfr8W534O+AMp2Y0B/gbidiTGxejyjG6p1NvHLO1eRJWTxT7jH/KJQ2m677ot0G5HSvYSX8kyq
 +0+AzAPGZffMtFVQvEyoslc6q/pxlkiPhYC4xxivXqGIqE9+/rm7kohtvRwx/3iQgWb0gRW1wp8Rl
 17lPTBvD5vAXIZrDe1gNogrM2MBL/K49No8H09EuafcsGb00e7T8tnFCTGLFAWnI8jz3uPfzSkbyB
 F/8py48ow0Sw9xF7g0oQbw==;
Date: Tue, 23 Jun 2026 14:56:32 +0300
Message-Id: <86zf0la2rz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87h5mtptlc.fsf@HIDDEN> (message from Stephen Berman on Tue, 23
 Jun 2026 10:08:15 +0200)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,  Eli Zaretskii
>  <eliz@HIDDEN>
> Date: Tue, 23 Jun 2026 10:08:15 +0200
> 
> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
> 
> > Stephen, I was the OP of this bug, I'd like to thank you (and others)
> > for the thorough work you've done here.
> 
> Thanks.
> 
> > What about this little addition of making the error buffer read-only?
> >
> > diff --git a/lisp/files.el b/lisp/files.el
> > index 5aaa0d44a04..caa6c1ec9ca 100644
> > --- a/lisp/files.el
> > +++ b/lisp/files.el
> > @@ -8488,8 +8488,10 @@ insert-directory
> >            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
> >            (let ((errbuf (get-buffer-create "*ls error*")))
> >              (with-current-buffer errbuf
> > +              (setq buffer-read-only nil)
> >                (erase-buffer)
> > -              (insert-file-contents errfile))
> > +              (insert-file-contents errfile)
> > +              (setq buffer-read-only t))
> >              (setq dired--ls-error-buffer errbuf)))
> >          (defvar dired--ls-error-file) ; Pacify byte-compiler.
> >          (setq dired--ls-error-file errfile)
> 
> I can't think of a serious problem that could occur due to the error
> buffer being writable; have you encountered one?
> 
> But I don't see any harm in adding this change either, so Eli, is it ok
> to install it in emacs-31?

Please install it on master, I don't want even the slightest risk of
breakage due to this on the release branch.




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 11:21:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 07:21:09 2026
Received: from localhost ([127.0.0.1]:38686 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbzBl-0000Am-77
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 07:21:09 -0400
Received: from mout.gmx.net ([212.227.17.20]:50903)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wbzBj-0000AA-Vh
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 07:21:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782213653; x=1782818453; i=stephen.berman@HIDDEN;
 bh=Q6s1yd0JKvvlJXq/YC/Szq2ar8Oi/Lufvod56fILdKc=;
 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=KQzEzGzSHL557UXq4YfZoDwKw7NPiC6/7FP+Fd2os7CHU4xrDlksrWpiYyWHeW5M
 Yqm8Ky7jss0nAw9t1Rj7/9z0A7FJmQv4rgyGxMgixQJYlM0E9LgyBTIF25+y2w3yx
 YSYT0nzFmuSrhCl8IDlnhEL9UsA0uGpJSFLS/pPmrXLJ2OEEUnKDgj1vH+8AvPRJQ
 op6ZC855Ftm8HnRePIp/MsFLuTmuN9W3kXgeqJQxm0x9OHw/RYYTBBvkOVS8tszB2
 YgtxyHzTIgZXdqyFxM0kc0iQ53TEWpbt5GtTGunW7di5X4GuLuFHCPl9x2+JxkZy0
 zhwPGmTVAvqzyn4MMQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MgesG-1x5pHt1gjM-00oAvo; Tue, 23
 Jun 2026 13:20:53 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87jyrp1r7y.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <877bnp38ku.fsf@HIDDEN> <87v7b9o9q4.fsf@HIDDEN>
 <87jyrp1r7y.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 13:20:52 +0200
Message-ID: <87qzlxo63v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:rQRsPAMjYHKKjnVij+g5AUPdq7vzEnHLZFoxMX453x4VDxkmlqf
 DgXltMafrsQVCpvJn9ckgJ8VM3+lfz+fhGPS4VQAw6PWbl7JxD0yVUirFXv1vdl7JTiAhGh
 IMVFEbW6HNh5dQ+lMdeO1Va18PF2HSLVbuwI6C8XbE4eqFBR8dH0Q1rkGVsKxK35cvvveOe
 ksrEELd4CIoh92IPyyauQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:YGLRI64mqBY=;0MmD4lkgO7ik4k1fkzuegs2yhBM
 FahJ51Ujs8QIb1TTclzBN0m0CdRBijnBu2OPs7ymfcGzwUBOlQmOvd0Mx4+gGKPyazneztcJC
 PdpRjQQO6VD4nKf88AjbwAXwg63LYAmeBfHxzH+UrPyh3vA8jFc0JVn8MXCnkzeotTtXkY1s8
 vEbZCt2ZWtPSkMeQTBY/wL8hAhDjmcUhkaBHFNsdIMtF+PhAX5PhxJiiIjqt0OfoFITf1LTbL
 F7TtTJmWFmp9NScfMT7iGp+bM+AJ+fhzQYY+ttF46mzkwQTKyg3WvCSBI+l5A2TQKpQ4kHfq0
 6MOpnTatGtE6rJEpM9T+r466Ss5XjiprSHg4JeWUbVVGmqbYK75eL08sQviGotb9uNUQ3hWwN
 KJlNcDIdw2cYQENxIjw7azP9lf11DF52Tv3PIt8xgKqeWJ9rUbbyx0KZYnLyJL8z/151Y8i8F
 zOnSWRVWyykdJmErKcP1hdI6OQsn9AEM1aqSlxRHMAClcGsB894D0YLRQSxLu1TdSMkSJAUIO
 3EFAAlHYkMRolcFeHAnF72hojOThUaV3FolE4qJkoH4CI6T+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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 (-)

On Tue, 23 Jun 2026 11:33:21 +0100 Sean Whitton <spwhitton@HIDDEN> wrote:

> Stephen Berman [23/Jun 12:02pm +02] wrote:
>> No, because `insert-directory' can reuse that buffer, which would then
>> be read-only.
>
> In that case you should set it to t after creation and aftewards use
> (let ((inhibit-read-only t)) ...) instead.

Ah, right, thanks.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 10:33:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 06:33:30 2026
Received: from localhost ([127.0.0.1]:38495 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbyRd-0006Kl-W9
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:33:30 -0400
Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]:54877)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1wbyRc-0006KV-JJ
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:33:29 -0400
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfhigh.stl.internal (Postfix) with ESMTP id DE6D87A0197;
 Tue, 23 Jun 2026 06:33:22 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Tue, 23 Jun 2026 06:33:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1782210802; x=
 1782297202; bh=natVX3P0NFcvfpA5UFw37pJd54bYzSL+zc54sU+3HNw=; b=2
 Se+hnbyhodlTomlJEx4pRCtAO4V5Gv008UqLe9B7g1NZt5OQk+GG7CZY/E6xW2AR
 NRQ1x2J3BJAIa2O16viiwPTkyG5BfeTudT3AmIIH+qyQem8jkrL5+QMBFS1k9WiM
 vDS7xOuyUCwxqGsBOL7wQOCPQ3Bw8WaDCgA/OAYtM7Kp0yOjrHLAAt1tLD6PsatN
 X00EGKcqEMhOmBXOv+OPSOqGrrR5I9A9mpX4D42Kca3KOklc4KivemoV8uoQyzXV
 tG2KluUQLDfRY+tiUlToNAn1FYD1djC5TdX7o9rhBWVrJh+pHSLdF3O8BY5YK8g0
 Cu8p6KffK36EaRO83/Pfw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782210802; x=1782297202; bh=natVX3P0NFcvfpA5UFw37pJd54bYzSL+zc5
 4sU+3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1bJ3fVhdIhobu6jwp8P
 X9FKyajqV9xHFfSswklewsBv80esLu05ivQ7IE6J+UXVDLAkSmv9TU//GJ1YIzPnTyMrz+
 q/A1VVRdlEXjRhf/mZ9EWlvTDEIy/N8HCBHGu54ABsDWJW4SqOQa48mm6qfmzm+DV1H/zA
 ayj/ZV12DzdTkPWd/MqBQl3iCmMwIgeQgFV8B/DsAzXrANdwfnQ0nQsRf04LQBvZUIh8lN
 DdvfBzwaIoVthF9DQQNEuUMLT7yyYlorLTg1fRR1lNGwAoS8QgDAwcBz+kOg
X-ME-Proxy: <xmx:8mA6aitpw_nk9f7w_AcE6zIK5Cr7AmIyxkQrwvkqxYA-sKdr2fIyqQ>
 <xmx:8mA6ag6fldM4F_gMKkiWTcWhgpCVJyphH4hysq94PSmYCsapR0bgYg>
 <xmx:8mA6atWaGZeLKdKWEz255zq5NGhEpwhdgfTwHhtM8yGiT2jZjpmOLQ>
 <xmx:8mA6ai9eSVE8AQnSbiDq2ZJcWLhDD31VGn_nuzi6PiiP9dk1_H6Udw>
 <xmx:8mA6atMb2fw364y9vfJ06czHpeD_C9JcwK96hIbjgvWxGJN-eaHhsMjo>
Feedback-ID: i62564b17:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 23 Jun 2026 06:33:22 -0400 (EDT)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 330C77E8A6C; Tue, 23 Jun 2026 11:33:21 +0100 (BST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87v7b9o9q4.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <877bnp38ku.fsf@HIDDEN> <87v7b9o9q4.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 11:33:21 +0100
Message-ID: <87jyrp1r7y.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>, Filipp Gunbin <fgunbin@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 (-)

Stephen Berman [23/Jun 12:02pm +02] wrote:
> No, because `insert-directory' can reuse that buffer, which would then
> be read-only.

In that case you should set it to t after creation and aftewards use
(let ((inhibit-read-only t)) ...) instead.

-- 
Sean Whitton




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 10:18:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 06:18:54 2026
Received: from localhost ([127.0.0.1]:38421 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbyDV-0005au-QX
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:18:54 -0400
Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]:52299)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <fgunbin@HIDDEN>)
 id 1wbyDT-0005ae-9I
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:18:51 -0400
Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 818417A014D;
 Tue, 23 Jun 2026 06:18:45 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-06.internal (MEProxy); Tue, 23 Jun 2026 06:18:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h=
 cc:cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm1; t=1782209925; x=1782296325; bh=IFRzNGx9v7
 d8kGwSQAVQ27TQXgDycD993Hfvcay6DLo=; b=jmdXwJX+Y4cZnCsLBfFYnsOwBg
 LPcxd7aJ4TQX8CGzBUURoGDQE2cmAH7GImkSweXxmx+jqMdCQ9OFNc7hRRL3Qrze
 obk621gPXPCYYxFL9EnB6lJv+Sqb9dJLCPUZK3Ts0J+J/WPF8BySrgyL2y2uF5uO
 gLRi48s3A5JjNnT5DS8paLQ8oMSoSYufWZp4rNf3e1UwAkdwsD35Zj4qMYu8YRjM
 Uz9wCg9r+CyoG4QAGY2Z14CkFwe0h/dR2dC4KB+uENgLdeOrBedWpOIVkyhG+/bq
 10MSPiob8X0GJZK7vyT0yvRh0wCEFka4vXYJXYo4ro/Wx2RnfOTsy11PFQgw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782209925; x=1782296325; bh=IFRzNGx9v7d8kGwSQAVQ27TQXgDycD993Hf
 vcay6DLo=; b=dbKPF3G2f2QrEeaGEfDuC7W7NChJQEpUuo6OfaH+aJPO0xEIvUP
 SiuEkTLxz/19J1Bufjy4Qnj+mf8a2Jyu8XBO2pAbM/f0yVHzX/AGnN3BS60hDMNs
 kzC96RYn38pU5n74yk3NLprCnVbsxY1WBl8XgdTLDqWrpEoIxs0APQVJlWzlnyvI
 XVI8Osxy24sPqAfg/9Pep88nLujmzt53IAP/NxjmChLRabMktm/eS9xOitP2rVUf
 Zv/3bXQS6OC+Y+C/98+2wbNsI3vLjIf/aw/htgjH860WR6lx+lAV/cFaU+5v0mUX
 B9roeSEu+/bRnML+DZoHIcFctAhKSZbe3OA==
X-ME-Sender: <xms:hV06aunLlZiSglLErx57i-LU02Bgg2A-DLRAzZTktgC5Tej378-O6g>
 <xme:hV06atQfmUfP5Mxmoe40o_BRH0BxBBPbyuZttUEuiIscHt-RoUn6qtCzVFVROkos6
 55bV0CgARcpShqvxLpq868eHLhvk-Hylu_aDYxThfrY7g1zc8FWcQ>
X-ME-Received: <xmr:hV06aqANuXJ04Iklv5b6oCYcj32UpgDl-UMGhR8-n5UnC9V-obbwAF653JxXnHas40P0myFjl90KOxL1tISpY8LKwKRLjiM>
X-ME-Proxy-Cause: dmFkZTFYIUhxoXio/BRthCThC43ih8JtSkoqtrNNKN77XXKyMefubraMpaoJax10p709OO
 39XrDxmOL8Hir9DylHqgaJMNeC0sSusX6FNFXJzLOTSAm+8VJT5vs3bt10x+8f8zYnnH12
 +pRCaUW9fC88E0RCyg0/dci0JK5GbBYzsh4fEchejAhc/hbksT1vwDjdobdAJ1HpYN+Z3O
 Hr5lL2+4bPoXuxUPaGtMzslDleXyXf13MQsS00EibfDcri89lRmjLlVP5TWtWGggxiGa8I
 r4U08yTo6YSKfQ9GNX5aUOdPHeXvPOwjRZOwLW5jYcz0SyK2N+eesAFiJt0+ZSAAq8JQNa
 6sHUXmYIIWuh51VIv6Rnv2emtA+b6AMRIDR2gROWre3TPkmfaBkhc147MyZI8ymAHZEq8i
 7uXGgACULb9ECWuEZOjuT3KHVu0zDFk13+DRZsKc6rt1jGgBhqgjZ7Ea/KVZAiJe2w1rXs
 3m6alcL+qAVG5eM+vcC+lZoj0jzbgBDaV7Yz4kRfvbkHdTG4qTmeTSeAuEpqpQ+pIVN5ox
 xEyf0cxBr3K8LGpIrL2aRFyqCv3IDCc4Jj3qOi1gzhpJqUSbNWdh2uNnX72hhe+C+rD7r8
 Q9e+cS3oLQVoD/MaLRHxwJuXRieWxNwIJ+prDboZ6J3RhafaOQIf6kuHrUHA
X-ME-Proxy: <xmx:hV06asQQU1NjUmnh-boT7mYyEBq31ySLpmZLqznL9aOuW5mNnyYwrg>
 <xmx:hV06agq3f_J6qFebSW6HbIwFtwfL7L5GAzMImZRrWx5T9QLiuMtNbQ>
 <xmx:hV06amxsnXLeifs0dJibOt5F0yjssyfbX519R8WJuBidNCGmM-noHw>
 <xmx:hV06atI700WOtVEfRE4jmEMZFE656HDbB2ia4nc_W2qMoNqdUT0orA>
 <xmx:hV06aqBAQmW2thustCCPqJL_4ZJjizTgYMV5fURAlu7NdA14Dt2FYHac>
Feedback-ID: id48c41f1:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 23 Jun 2026 06:18:44 -0400 (EDT)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87y0gc3wgx.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Tue, 23 Jun 2026 13:18:43 +0300
Message-ID: <m1tsqt8sqk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

Hm, I think I found another problematic case here:

- mkdir -p ~/tmp/1/2

- emacs -Q -nw --eval "(setopt dired-auto-toggle-b-switch t)"

- C-x d ~/tmp/1 RET

- Create file with newline in name in subdir: M-! touch "2/a\nb.txt"
  (C-q C-j for '\n')

- Type i on directory '2' to open it in the same buffer (you can do this
  before file creation, no difference)

- Observe that -b flag is not added (via "C-u s" or just visually)

Or should this be filed as a separate bug?




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 10:10:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 06:10:46 2026
Received: from localhost ([127.0.0.1]:38392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wby5e-0005H3-1k
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:10:46 -0400
Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]:55905)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <fgunbin@HIDDEN>)
 id 1wby5c-0005Gm-HO
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:10:44 -0400
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfhigh.stl.internal (Postfix) with ESMTP id E23747A014D;
 Tue, 23 Jun 2026 06:10:38 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Tue, 23 Jun 2026 06:10:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h=
 cc:cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm1; t=1782209438; x=1782295838; bh=R1K/RbsJGA
 FtyZ6Y/eIh3XRGSnWaYmoYolYKLqAVJvE=; b=VLHr6pwnLeJlPbrb6+RGUthozU
 cx0OtRV9oRxzCRjltgVS98w7pVvhQn8jcbm/oR9HVJGxNf5w59wzgLM2DzDgYVK6
 bYgaSCqQalxrWgfKABNhHJCME0xt6CEw2fv1SFMgdN4z7LSv4ESvPdBT+MOkeMIl
 2rNgzzf5UaMtS1TAxVRy7SLZDywEO+PQxx1sXdgeyDk4Up/eR9Q4YZCKXICg4pL9
 6cBlKBb8xaUG9kq/LpIr/ApMoR063R9YJutlxV3dg3dVli8AzQlt+4HHuoKBqfGb
 PfQdTXarCoZJhJHFBAppCH2eySqv9aOg6gA4hhomP/lIr2LopK67Tu7rkskQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782209438; x=1782295838; bh=R1K/RbsJGAFtyZ6Y/eIh3XRGSnWaYmoYolY
 KLqAVJvE=; b=Z3d7eekQBmuPJU85MIPnS+NSX7JEYQTNuhySYw63fH/9yTU7j10
 fpMxERgGzpOWtBqVFXwqO10yNj/MojjGb9e6BGUy+6An3qkl6ujO6nOSlQZRVKkX
 CaV3GMeWXDLAvVI3wIplFMODXXB6kspcSyWNq5r/2LS3V09AGQChzdJDLjxB2tJ+
 6qZx+9eoNWCnclXIUuGwNHuTpSmwTrSBW34jB2QzbNoejldhtynuZaMGXsl0HLDX
 aq8YCHb/8v5cLwwdxI/D9r8KGPv4A5U2pngobrP0IqdBTTbAaHPApxKpU4FwjrLp
 23XZdgGD6NPMKQf1jFrcp44ELgC/FKermnw==
X-ME-Sender: <xms:nls6ag_gevIflblbkdQDg-hhRsGcFfAKmW60DdE_UWI8BHWkZp9Lgw>
 <xme:nls6agLYROWfgIKeOsoN76Tqkq-zAlSXsepG6jTHXP0hzr7lBg9giJfZa9GRVG1iu
 pi_zAWlC75VZJSo-i4yj0Hzx0fT2iLBBrKOXwTMZpYsQ7zjD_kP>
X-ME-Received: <xmr:nls6ajbNt4p7ipzOkWspGv1HnSRpbM93um_15UR-a2arpGettG5nRNDVzbWMWDgSzLzOPzAR9nxyv3GGm0EuVk9RrRjmMUU>
X-ME-Proxy-Cause: dmFkZTEBNEfUIrKcZvZSeIWAriVYI4c+zUoucyZptaYXr6r4MuWylb/emo5GDbDGD6zGq+
 CJmMaMmbBYTgGydK57/ZFc4fLnZ1Tggh2D+MlLUKCKjne5dNdA8ChQEQwYLy/jyIAyZ+iI
 0svAYK9yDHMkHZa9WjK1XfjsosPUY5JtooPAUqAKzCC542mJ23Fq8ivAqebGXjTRcMp1jc
 vaPS+kGHdTDUNMD3FbZsDamXR3M+VTZOxQiIZ6vyaFJjZ4ajNx8kEi6nrBFJ+Fto5tQp6B
 B7dKPR6a25b/nfaa1gzmrkWGlFu2zsoZoI5CviOLoxoe1VgidDoUKZs3HOHTVrnF4GdXWh
 iS3a4AH0iRcf3TknU4yFuJi9E84+lSwi0UuY4VLsEJnOd37OreVleVqj3qXBqdFwesuwH5
 wz2JQIvXZvMgX7KmGhf+0sZS8jfuo4tc8G+dRdr46yBjjuB+D3tHiFeNjL1h7vVT1Iafwr
 XtCmgJZy/BDRY1z7MnmrAtzmQkkz7D0qnizVEGBWNk2ycetITkgj6T1k4ko58iNDwCX9ON
 LVXJB4VQhJyOW9EQS5psu4B1PIhXWrBCkvZVqRGJeW6azsAdhbHOwAbNZXfef7LsQ1f7K4
 tMeELjcKNdGNVhXPdCCeqIVpbfrPePJzZLr0i36ud041dbQpAK4GaMk3Nq+w
X-ME-Proxy: <xmx:nls6aqJnMx0RKpOyVURy5xLH5bmTA92g1FbfAdTO_u4VFGLeSSsV3A>
 <xmx:nls6apAnuA0Bqps4Blny6pW9ErtXpiX-GG4xJF2PhfIToQOI7dsbaA>
 <xmx:nls6anq5Ra7gWNQPNt-6-wexOVVpG2C4xQmmCQOV-FbIGC0K-hz9Cg>
 <xmx:nls6asieng4exMTSnB9gqa_4KVNYpkGrIo_73pLUj_0Ger0ZdzVdzQ>
 <xmx:nls6ao4frHynhdi8ICHxt_ppVZuMHkUwJegdy63Pyzlb3j-wTQ5sFc53>
Feedback-ID: id48c41f1:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 23 Jun 2026 06:10:37 -0400 (EDT)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87h5mtptlc.fsf@HIDDEN>
Organization: https://plainsoftware.org
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Tue, 23 Jun 2026 13:10:35 +0300
Message-ID: <m1zf0l8t44.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

On 23/06/2026 10:08 +0200, Stephen Berman wrote:

> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>
>> Stephen, I was the OP of this bug, I'd like to thank you (and others)
>> for the thorough work you've done here.
>
> Thanks.
>
>> What about this little addition of making the error buffer read-only?
>>
>> diff --git a/lisp/files.el b/lisp/files.el
>> index 5aaa0d44a04..caa6c1ec9ca 100644
>> --- a/lisp/files.el
>> +++ b/lisp/files.el
>> @@ -8488,8 +8488,10 @@ insert-directory
>>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>>            (let ((errbuf (get-buffer-create "*ls error*")))
>>              (with-current-buffer errbuf
>> +              (setq buffer-read-only nil)
>>                (erase-buffer)
>> -              (insert-file-contents errfile))
>> +              (insert-file-contents errfile)
>> +              (setq buffer-read-only t))
>>              (setq dired--ls-error-buffer errbuf)))
>>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>>          (setq dired--ls-error-file errfile)
>
> I can't think of a serious problem that could occur due to the error
> buffer being writable; have you encountered one?

Not a serious problem, no, it's rather that it's more natural when
informational buffers are read-only.

Thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 10:02:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 06:02:57 2026
Received: from localhost ([127.0.0.1]:38363 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbxy4-0004sV-MW
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:02:56 -0400
Received: from mout.gmx.net ([212.227.15.18]:48105)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wbxy2-0004sC-1i
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 06:02:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782208964; x=1782813764; i=stephen.berman@HIDDEN;
 bh=Qth4FF1TMfM8birNfbgfNgXMgYajP6EWp2gZ0MAOz5w=;
 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=YvEf7t5iIAiyxBcJNJkpM9BmpOj6stUUtQfuQdFHkMhTnuwtwGaC/PAkzs+2gkj/
 jCtPvQTuR7LYX3kx9ealZyu3vH7Uysqk8KKYj7e2tIeaukp0IKEwRAEBgNLlgcAjB
 Q0TYcUWEv1UqVVaOmxQngKTFdfZtXB2ixKn/jlfc/TGywH74SAJKX1K9oiHexHotP
 gPxbMY5fgMVhSJZSZAJcvvFxP+XHbCClEawPYwL+CDLDtGxbQ4rT2zhw18PbFtwj+
 trl0Hm3iUtOujkL8fU8azCqrAnB7naPJx2DPamxr4Yifg8YHQrKbgviBTwMeTwV+5
 sVfHZGuJ17MzKB9wZw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MqaxO-1wy7Rk35Zw-00h3xo; Tue, 23
 Jun 2026 12:02:44 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <877bnp38ku.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
 <877bnp38ku.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 12:02:43 +0200
Message-ID: <87v7b9o9q4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:jTrrhPBLmdRHBxWTaK5fo3n45z+Lhvx4EQnm5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jFqZg+/btYi9gxIrqOk8
 XB4AY1Ld6/JYzX/USDp4ivEuYOhOWhGMVuX+GA+xT+rz/fPfxyT5B4fHqojgvCq6gGCjFUPJt
 2CVaYMW/gzYsThG+tnWz1jfOjFxZDdz7EjcP4QxU6Jn9F3fnURaCqpxoiekzWTNSMpFwUcpGj
 9FRIaQl86RT1wHOp2YgAG44j0HyjwJnitjTYlyF8TIfJDGnN8k3xtnhPlpXlC/dijb8HjxROB
 JYQv2/PHd4lumiaHXyA232I6MdRM5THNENPWpmVaBuDDiiS3GIZR5bEjStS0k/jGAExo0kTzz
 Jwlu3tIrgjeQVWYD2iD+/qMQR3XxaYQ9SKeYjzavqjkjPqtKJ3lKAp4pGz8m0NRfk5V5xLOmr
 XIr+5rS3cPxui5zMwhE7ASe2Qs8wOo6EoAwpvNzZ3wEiPulIU6ggy0MVjwpLrCIOAG9gY/pvg
 5jNyNzPmTnd+Fo5GwfDNW1KaGNXOrg5Y4AFwzw+0gpq65C+a3lF55/o1plptjWYEKBDXLCv78
 pZ4qNMGpOy5f1ERMBTjnC0qjZd1eMRpL1dnUutIAimT+2L0QsT6tSR3dyE2HMYPDh06JvRrfo
 DepSXQklrwASmA9ffVvoNLN4UrmVseoDWNVVPrshw4IjDSRe
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz@HIDDEN>, Filipp Gunbin <fgunbin@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 (-)

On Tue, 23 Jun 2026 10:33:05 +0100 Sean Whitton <spwhitton@HIDDEN> wrote:

> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" [23/Jun 10:08am +02] wrote:
>> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>>
>>> Stephen, I was the OP of this bug, I'd like to thank you (and others)
>>> for the thorough work you've done here.
>>
>> Thanks.
>>
>>> What about this little addition of making the error buffer read-only?
>>>
>>> diff --git a/lisp/files.el b/lisp/files.el
>>> index 5aaa0d44a04..caa6c1ec9ca 100644
>>> --- a/lisp/files.el
>>> +++ b/lisp/files.el
>>> @@ -8488,8 +8488,10 @@ insert-directory
>>>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>>>            (let ((errbuf (get-buffer-create "*ls error*")))
>>>              (with-current-buffer errbuf
>>> +              (setq buffer-read-only nil)
>>>                (erase-buffer)
>>> -              (insert-file-contents errfile))
>>> +              (insert-file-contents errfile)
>>> +              (setq buffer-read-only t))
>>>              (setq dired--ls-error-buffer errbuf)))
>>>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>>>          (setq dired--ls-error-file errfile)
>>
>> I can't think of a serious problem that could occur due to the error
>> buffer being writable; have you encountered one?
>>
>> But I don't see any harm in adding this change either, so Eli, is it ok
>> to install it in emacs-31?
>
> You don't need to set it to nil right after creating it, so just set it
> to t afterwards.

No, because `insert-directory' can reuse that buffer, which would then
be read-only.

>                   Otherwise, this is okay for emacs-31.

Thanks.  I'll wait for Filipp to respond and then install it.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 09:33:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 05:33:16 2026
Received: from localhost ([127.0.0.1]:38227 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbxVM-0003P6-2r
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 05:33:16 -0400
Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]:43089)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1wbxVK-0003Ol-8J
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 05:33:14 -0400
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfhigh.stl.internal (Postfix) with ESMTP id ACE627A0105;
 Tue, 23 Jun 2026 05:33:08 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Tue, 23 Jun 2026 05:33:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1782207188; x=
 1782293588; bh=tS+JSNvqDXLqtdU/GcborJs5PgZ6KKbcyewONgA2yHo=; b=Q
 +GF3WC6bfuRRJmTCQAmCSnyFXwGRHzbS/2crys51GsV3eVHUW7SXpNYc8qhivpkR
 93XI+7W4Ck6q3BNwkln00XSR47pDWTNU6mIKybC0YfKw3CPfb2H7V+jzk7N4uDAs
 doO0Ffc00lBdI/NYSyCvV5uHFsdehAa7hfTELqsd1Pq5Uvbovkw58uywUr0qOIdN
 nXAS3I6XYs8OlWlf1Wmwcks3/XOPjiftrNP266wk5znYAmxmPnKA3ZpxVAyThNA/
 f5i4H6uL5uxN7EzQIsgTseItUZdUwE3UQ70/TZ7XBRMm9M/JDwb/4C/Xsw0hrJJf
 Bnhl3pqYA4AL9SSwxWs4Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782207188; x=1782293588; bh=tS+JSNvqDXLqtdU/GcborJs5PgZ6KKbcyew
 ONgA2yHo=; b=CeCjokZSecYEvQ1nf7ewnYd75t2Avp7wC1V5pv4dKy7wBm9u+/E
 gjLhNvnzbZH7P8qR9JknXk8SelGYNuLyFde+btLU2RrRpM52OolsBzICwbEWTztW
 qwdbZeTQ72lWM423K2HUKF7UF8LN8MQv8nbmvCSNlgFk7c8tzVvcLAy/IfL4pJjL
 7XBa6w7bFxQO7SK4tjgg/NPX94Th2auoHPLPjxffN6k8YASsGLH6ZQ83QzTgA1Fx
 fhV/JsTm2Kl0HT2fguQbsL1j9hlIXPqHKEAHIsCBXZD4ew+3cuXtoaD+WiL4msw+
 m579bNbvoSzhvXAv0wlGKVVuVuM9hbrKtLw==
X-ME-Sender: <xms:1FI6athkMUuwG22EaqcBM8gF07q7gdyMblXeAJp9nRx8MNjKZtJ74Q>
 <xme:1FI6apDA8A4dLfgs2lJ2kpAk9_VUNQEGJfg1WlacpL2O6P0M6aiP7wHMBc-CQzlBe
 MKYd-YtYvnyE5kzpE_HPPujnmxmR-qqiEisA9XEo8jzkz27BeCzCgc>
X-ME-Received: <xmr:1FI6aiFrLXzDW5X87r0akKVS7c-RV8uLx7bGUQxlwQRNmCtiz1RCkft2QS8Cmaztny4Nb4-KUrCv>
X-ME-Proxy-Cause: dmF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com (Postfix) with ESMTPA; Tue,
 23 Jun 2026 05:33:08 -0400 (EDT)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 9C67F7E8A2C; Tue, 23 Jun 2026 10:33:05 +0100 (BST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>, Filipp Gunbin
 <fgunbin@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87h5mtptlc.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN> <87h5mtptlc.fsf@HIDDEN>
Date: Tue, 23 Jun 2026 10:33:05 +0100
Message-ID: <877bnp38ku.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" [23/Jun 10:08am +02] wrote:
> On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:
>
>> Stephen, I was the OP of this bug, I'd like to thank you (and others)
>> for the thorough work you've done here.
>
> Thanks.
>
>> What about this little addition of making the error buffer read-only?
>>
>> diff --git a/lisp/files.el b/lisp/files.el
>> index 5aaa0d44a04..caa6c1ec9ca 100644
>> --- a/lisp/files.el
>> +++ b/lisp/files.el
>> @@ -8488,8 +8488,10 @@ insert-directory
>>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>>            (let ((errbuf (get-buffer-create "*ls error*")))
>>              (with-current-buffer errbuf
>> +              (setq buffer-read-only nil)
>>                (erase-buffer)
>> -              (insert-file-contents errfile))
>> +              (insert-file-contents errfile)
>> +              (setq buffer-read-only t))
>>              (setq dired--ls-error-buffer errbuf)))
>>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>>          (setq dired--ls-error-file errfile)
>
> I can't think of a serious problem that could occur due to the error
> buffer being writable; have you encountered one?
>
> But I don't see any harm in adding this change either, so Eli, is it ok
> to install it in emacs-31?

You don't need to set it to nil right after creating it, so just set it
to t afterwards.  Otherwise, this is okay for emacs-31.

-- 
Sean Whitton




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

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


Received: (at 80499) by debbugs.gnu.org; 23 Jun 2026 08:08:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 23 04:08:36 2026
Received: from localhost ([127.0.0.1]:37921 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbwBQ-0006tz-Ay
	for submit <at> debbugs.gnu.org; Tue, 23 Jun 2026 04:08:36 -0400
Received: from mout.gmx.net ([212.227.17.21]:58767)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wbwBN-0006th-Hz
 for 80499 <at> debbugs.gnu.org; Tue, 23 Jun 2026 04:08:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1782202097; x=1782806897; i=stephen.berman@HIDDEN;
 bh=16WHhNu75h8OJ7qpLaW2Q7IYTt67flJyVCWduTTJXXE=;
 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=tP4LYbjaXlQKjG1vvaArSKiz4+ZqQuR8ISrOYTQVGYxbtYZpeOdfjuJbPbISv/WP
 ZNcvw7MQ164tAy3kXi2VtrhBEh46M8KmNfyEIPxfDxDwMjJ33OD1z2tRFBCqxnES0
 e+pjU22vKCj8INLDW+3OfXRJ+FWGgjUJtUadeunFk8tjzNqSWosYF6xWy7rr71cdf
 ClRG5uHtE4DoaXUhNRyrmmVDrMvcCGgh3MXpquz7A6fBUfBFwtm0mTT2ypkgLlwhu
 bW2DTIic84vWiN4Is0AVkvd5wKXlC+EkbIkLdcyZHxtH/x5knlGjutwF3CH8Y0kQ5
 HgJ5cso//0jOAstyyw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N8GMq-1xFgkS47Oa-00vked; Tue, 23
 Jun 2026 10:08:17 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <m1o6h29vq5.fsf_-_@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
 <m1o6h29vq5.fsf_-_@HIDDEN>
Date: Tue, 23 Jun 2026 10:08:15 +0200
Message-ID: <87h5mtptlc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:bYITI0fJtkMEHAI/TepLB6kk/FN2guTTYS3PoNNApAyK/xa+Pj/
 JiunHLCypND6JLoZnH7CuGVjC7s0aisaSYpaLn2wQOO9Dr4Ye+tdhMRyHaTa7keQe7grk2o
 etKlzgI5kHBfoyL0HhGhMYBk9KkqV0GQvd92BhbUJv1Hcxs4KuVBhNR549lIYGQ2XFdUziM
 Dyh9M8pRVRK0rg5SifPPQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:jgVb8HaUcyU=;MgahqcUf9GWWLhJ63XVtl731F52
 pwGclHgW7pYv5+Tzf5E8QLPkFTeHT5FBtnc9cnfCrx6Wu0l9MqGD5XipFvA5ouUZLkdl5kTfD
 908An5L9J4NDcJyyaIuYg/yfl/75Rph/s6iNwyzH/+Wf7o8L5XDjPz7KiZjMCCqs67gtGQ2ff
 L1H42suHa1NEd7PrlUIDncjFX/UKjse3LEzesA9p6RBQoD/j+OKDSg8kqKBSlKj7+wX7xI4Vt
 ZwNjz6wIOEnBR5fVrSqsQ/PH1jOEzQc6onueFVRDWyzGvLwL1W//o1Uyk8XeihlRC2bsJgJyK
 YP2/HH+oXaGcJRbJAvwHEQU1kkgWM189iVZLqh6fPAWq8KT2SexrW/mSRF03L+eUhHykAHEX5
 jJntOxcf0JE38anQ03NkRbTVmRlztHtEbVtztjAY/fohOc+V76x63xpQ2S7XrAU8RpXGRqlbP
 ae0I4yM/pdTYMiz8AoEST9AEDPTMOAKEJeZ4fG1iISyo7lU7mNmlqOy9tfFD//+nm+WBY+oxp
 Hqa7t3ex1j9suQ3pizwauDi+O61JA66f4L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.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 (-)

On Mon, 22 Jun 2026 23:16:34 +0300 Filipp Gunbin <fgunbin@HIDDEN> wrote:

> Stephen, I was the OP of this bug, I'd like to thank you (and others)
> for the thorough work you've done here.

Thanks.

> What about this little addition of making the error buffer read-only?
>
> diff --git a/lisp/files.el b/lisp/files.el
> index 5aaa0d44a04..caa6c1ec9ca 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -8488,8 +8488,10 @@ insert-directory
>            (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
>            (let ((errbuf (get-buffer-create "*ls error*")))
>              (with-current-buffer errbuf
> +              (setq buffer-read-only nil)
>                (erase-buffer)
> -              (insert-file-contents errfile))
> +              (insert-file-contents errfile)
> +              (setq buffer-read-only t))
>              (setq dired--ls-error-buffer errbuf)))
>          (defvar dired--ls-error-file) ; Pacify byte-compiler.
>          (setq dired--ls-error-file errfile)

I can't think of a serious problem that could occur due to the error
buffer being writable; have you encountered one?

But I don't see any harm in adding this change either, so Eli, is it ok
to install it in emacs-31?

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 22 Jun 2026 20:16:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 22 16:16:46 2026
Received: from localhost ([127.0.0.1]:59782 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wbl4X-0005lf-N0
	for submit <at> debbugs.gnu.org; Mon, 22 Jun 2026 16:16:45 -0400
Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]:59877)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <fgunbin@HIDDEN>)
 id 1wbl4W-0005lR-4t
 for 80499 <at> debbugs.gnu.org; Mon, 22 Jun 2026 16:16:44 -0400
Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
 by mailfout.stl.internal (Postfix) with ESMTP id EB6CA1D000A7;
 Mon, 22 Jun 2026 16:16:37 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-02.internal (MEProxy); Mon, 22 Jun 2026 16:16:38 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h=
 cc:cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm1; t=1782159397; x=1782245797; bh=ce+/QZUepQ
 lQavQyB2iIySByWbQkSgMcAgDqB65WjcQ=; b=nrJ0Vs0xNzrHbxcTB3Q0PyjRy2
 jy48GM45zpFR5YiXa/EWsl0C/7yYNojEfxdJLWvnnzwD/OQ4sn/V0IaeeMTlK17w
 8sjAxDAkj+nSTqOUeIAMmuBzL/qOd0UlV8qP2xdt37l3zROLo+fDsvt9qupch7o/
 rpbSz5fQULMY0Uhxlr1bSaVCHQdjEwk0I6YYf+rF050lkSp21NVlsG2lP4KEJeeE
 uhJ+WEOE/0XHEieuLJicXUovA4wE8lI/RIvxohLqTKyxVEzGrXYVV1Ufjmic+Wle
 l6yj9TYn9IkTeDUT+UH9BBA+EMijPud9di2Kb9nxHtNgcvQVNVNVCeove8TQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1782159397; x=1782245797; bh=ce+/QZUepQlQavQyB2iIySByWbQkSgMcAgD
 qB65WjcQ=; b=ftSgeY0/7yBTpZ9ZYi6BUPiRpl0NL/YVCK4I2f70SOoJCmGieqy
 7IDeQyCrV1YDe6YULL8Q46T0lv6HOaT11tcjx8qePO9GSaW/BCnUBswxz2GrtIoa
 9ieY3rEk6cXcNrOzmDv9C6Z8pJQRRy/GreRBp5I8o1qLH2Tjvk9Py4VS2pNhmUw0
 qhe77m03MbU5nTGqOHhO9HeqDVx8DKoo5rYtziiuyYIA6peoM1LAkQXAa7KWitZJ
 +yv5e+Ir3Ro1IaV8E8bae1Bcg0LXyfEQTQBEroe6f7F5FdUrl/y3NZ67DqtS0pqr
 n6rZOtKK1U1n/ufoUDXwCPe3go0fIYGm4sQ==
X-ME-Sender: <xms:JZg5asbtENAwb3YKNviNx9pbc02aOyqlbUdshuxf3-2_GgS8SUx3Kw>
 <xme:JZg5au0YL2VIM5x9WPolXC0zfOwJnax64rMzUu1MbQ9lM2y5-nT_cvDH8Pf_MHNHj
 dvOtmWAO7qJMacze6xpcc717u1dzlwOP5Rj6d4-uxXdYlmu1ZZA>
X-ME-Received: <xmr:JZg5akWTbBrbJH09f4uQC0ca6ex6nipHhM2p9XBJTuqub82Y6R8BMXXISFbaYn4>
X-ME-Proxy-Cause: dmFkZTFrtVDscWpGNuQ2T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2026 16:16:36 -0400 (EDT)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87y0gc3wgx.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <87y0gc3wgx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Mon, 22 Jun 2026 23:16:34 +0300
Message-ID: <m1o6h29vq5.fsf_-_@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

Stephen, I was the OP of this bug, I'd like to thank you (and others)
for the thorough work you've done here.

What about this little addition of making the error buffer read-only?

diff --git a/lisp/files.el b/lisp/files.el
index 5aaa0d44a04..caa6c1ec9ca 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -8488,8 +8488,10 @@ insert-directory
           (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
           (let ((errbuf (get-buffer-create "*ls error*")))
             (with-current-buffer errbuf
+              (setq buffer-read-only nil)
               (erase-buffer)
-              (insert-file-contents errfile))
+              (insert-file-contents errfile)
+              (setq buffer-read-only t))
             (setq dired--ls-error-buffer errbuf)))
         (defvar dired--ls-error-file) ; Pacify byte-compiler.
         (setq dired--ls-error-file errfile)




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

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


Received: (at 80499) by debbugs.gnu.org; 19 Jun 2026 08:15:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 19 04:15:57 2026
Received: from localhost ([127.0.0.1]:49790 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1waUOL-0001ri-8h
	for submit <at> debbugs.gnu.org; Fri, 19 Jun 2026 04:15:57 -0400
Received: from mout.gmx.net ([212.227.17.20]:50851)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1waUOI-0001r6-H6
 for 80499 <at> debbugs.gnu.org; Fri, 19 Jun 2026 04:15:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1781856939; x=1782461739; i=stephen.berman@HIDDEN;
 bh=PpPZ6vn8kUB/EvqCMS2aLv/2B1G64PJNZsjNiZM+2Zg=;
 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=laRsolEkBOrPQ/ZAkAm3hu7yi/fmGjGQjelfvgUTmq+s6pl/4vo2Ap2ZKY5Pw/rU
 RTfh/LbwjR3IsMVzp4LZhsbdFggR6nsxo1u3VLv9LaMjpEuN68PSJ4Lb/trM3fWZK
 jJxdniLbR1nbhj++JfllvbnkCzm/cvkuCHnEXgUXQUqmPyhJOnD1Zqm8wyxseyVeD
 WjTH2iOPLmGHj+dtRVpiN1Z/8sl4lon1bcuruFRAC5oZBWlezz3+TnDcXzoJL22GZ
 JZji5NVfqKCwJZ0y8L0Jmo28wL+qPO/K5K1rhXA03EtI+YDQ7hwsVI17+vSQIev/i
 PEk1oOzZDwm8orI8kQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MhU9j-1x5xKC085z-00mmEo; Fri, 19
 Jun 2026 10:15:39 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: 31.0.50; dired-auto-toggle-b-switch does not work as expected
In-Reply-To: <86se6kgfca.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <86se6kgfca.fsf@HIDDEN>
Date: Fri, 19 Jun 2026 10:15:37 +0200
Message-ID: <87ldcbq72u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:v6KJ8hYWDUWDFfLlGeZ1Sxt4KBHpEtUFZ1E3fQfMbjIHNIwPo5J
 PvGpk9Gd6XhL70p3bt+G0GO9efBdZbZwTWLQenUjBX2Rf+9/0pvcyIB3Zw5t7D1wmqsBdG+
 SR2ctjrh2PTPoT2ufa+/wIdff8UtZRWP1xdqH1kQVBdmW3SnNIYo2z/YGLWhuaQwGGXZ6YV
 U6h8EYIJfNVcWHhOFBqxA==
X-Sp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4JUH6y3/Yt1ptOXTe9pmxDscuslVHqL6nQOaa/cF
 RaSw7EmL6qBAi+C/N5IZYuxcHBwR6LH+M3pNJlUajQoJ+W0Fs6rXkdqzoL/+iwK9H8PbWBSTq
 86x5dl4+2Wk6STgAzzlRGbWJgnW1pXy6PcWX2qLa5nCKj9BvAgniFtpuMMv1JaYOAtdJJz6se
 5Z6+xMs6ukxrC399vngzhaAz3QBGD0MBTcIyM+E4XtHQRA8ek0eYzkN7AeFOYr734LrNCJtqj
 Bv8C3eN1BcURnZ4k8lqJuH28mCZWUxQaClPsr+0c8+rWb0WQqvU3uoy63H3ETxqPs3LxWZ3Yn
 DHB2wQUrqDCXbdpjTXTPZBZdWZi10A2JJUQ+DtyP+fTWMKlHQhEk/6tDbCNkp1a3OOOFMP2IT
 b0UW0PB+UALiTao/NgSMZi3yCfs0/IGErR0UeRBpSTpPYhAQIky7KI3JO5wcdPjZ9byPVht1P
 mTEVXQ9YruYshkDcBESRmO8rzHRLEIr5MEi+FDU+wAJRpCwC
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: sunlin7@HIDDEN, 80499 <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 (-)

On Thu, 18 Jun 2026 17:56:31 +0000 Lin Sun <sunlin7@HIDDEN> wrote:

> Confirm the patch works for me. Thanks all of you!

Thanks for confirming.

> I alway use find-file=C2=A0to open dirs, sometime there're file deleting =
during
> calling dired-noselect then an error emit in background, it is rarely
> happened, but after it happened, all my find-file on a dir will failed un=
til I
> restart emacs.

I still don't see how this can happen unless `dired--ls-error-buffer' is
set before executing `dired-internal-noselect', and AFAICS that can only
happen if the user either explicitly sets it or runs some external code
that does, neither of which is good practice, since this is an internal
variable.  Nevertheless, since the patch seems to be an effective
safeguard against this, I've installed it and added a test based on your
bug report, so thanks for that.

On Thu, 18 Jun 2026 16:15:01 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,  Eli Zaretskii
>>  <eliz@HIDDEN>
>> Date: Thu, 18 Jun 2026 13:32:17 +0200
>>=20
>> Eli, if the attached patch does fix Lin Sun's issue, can I push it
>> to emacs-31?
>
> Yes, thanks.

Thanks, done in commit a94a33827b4.

Steve Bermn




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

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


Received: (at 80499) by debbugs.gnu.org; 18 Jun 2026 17:56:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 18 13:56:50 2026
Received: from localhost ([127.0.0.1]:42196 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1waGyt-0004Jh-Om
	for submit <at> debbugs.gnu.org; Thu, 18 Jun 2026 13:56:49 -0400
Received: from mail-japaneastazolkn190110001.outbound.protection.outlook.com
 ([2a01:111:f403:d405::1]:44531
 helo=TYVP286CU001.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <sunlin7@HIDDEN>)
 id 1waGyo-0004Ii-C1
 for 80499 <at> debbugs.gnu.org; Thu, 18 Jun 2026 13:56:44 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=bGa+n3HJ6nGIivWATo5vKz6oMzQV6l//Co7s1GbE8vUnMbhR8scciuHVxLIqluxqyMWSWpMZFN+p+nMeldrcv5k0GTsHWmqq7tFH9IVbBskPkfS6lOyCd3inyFCsoBxE/RODih8iwykmnla8WgKom/ihCES4U3BUhePXUN6Hi7HZh4S9/4Oxe5I3EO0nxZfeIRRQoDkdafHa1JMHf2KyUMQsrO/VVauAdOG7PJO0snqTHJ3mkcKm/Owk8U48pYu3CU8HodvSp/y57fXJedEEGfOxm0IxKAVBIm8WMxAjZAkt7khFHicWBlbYbi520w23i+6PYeG1Jxit/Ayu/mON1g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 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=5SBLt92rhYROarfjQLIrtLzcSc27oM0FVIiNcj2YUoY=;
 b=sEu1n2SgLP7wal2cDr3Ckn2gmKwwYnC7G19YDPzuOTZb7wnhDaJU+8gc030rMsSaxl6MeW5dy/BORFaVucu3L1LZf5vId8dtjo45yxHQ/3NPueipxXbuJyz/IpcFHkUYKctIavgiaCdMMhXKBZ2S714Gk93tBLR0mEBGLYYK5diIR2zNZKBGmB3rV3gXhPhKvbRRxSSpjlNIQos/LPuoljzHPxnJcyFWIrqPao1AlRdSAV3+al+s0uQriLb28v42g5ofgEtcmR//XDqGD5Gz4zPNkvDvB31chVKziV71jvXjdIrfEgfEYnVbH4y1CIgYXt0eWfRX3IF2A6UQaihA9w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=5SBLt92rhYROarfjQLIrtLzcSc27oM0FVIiNcj2YUoY=;
 b=UQ0NVto7FsXcJwqiCDtfjxXKfHfX8czIeIGHq5ZR6B/uOs1nXfYf5otWJm3uzNkges9Y6MEA0dH7rcaDjs4XWDW3Vk7wj42FtYmqoayxTcpZe5jX/ZBirv0C5awMNBxct7l+jttYicazU8SZYixgHjAmOBZPbMVttB0brinlgaVAVs+NbWt341j1mvEQEgkD++CcsmoNR+g3qXwjA/n9f3WEDIA87lW0nZjmrQgMoAMmlJoyNb4e9k5NVQwTVapEu7HfC4bIvsMEOijOvea30ljdQsHf04VUXgMErn+4ioeD5OF4Jy06IoVdTVSA2zbzDT5rEhG3cFeYWJ4vQGW0Qg==
Received: from TYCPR01MB10004.jpnprd01.prod.outlook.com
 (2603:1096:400:1e8::14) by OS9PR01MB14256.jpnprd01.prod.outlook.com
 (2603:1096:604:360::10) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.139.11; Thu, 18 Jun
 2026 17:56:32 +0000
Received: from TYCPR01MB10004.jpnprd01.prod.outlook.com
 ([fe80::c106:6564:6d7b:ffc9]) by TYCPR01MB10004.jpnprd01.prod.outlook.com
 ([fe80::c106:6564:6d7b:ffc9%6]) with mapi id 15.21.0139.011; Thu, 18 Jun 2026
 17:56:31 +0000
From: Lin Sun <sunlin7@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: 31.0.50; dired-auto-toggle-b-switch does not work as expected
Thread-Topic: 31.0.50; dired-auto-toggle-b-switch does not work as expected
Thread-Index: AQHc/oADiDLwWLSl2kSAlWjZJUrPorZELzuAgAAcv9iAAERW+w==
Date: Thu, 18 Jun 2026 17:56:31 +0000
Message-ID: <TYCPR01MB10004F1D888BE64F33BA3DC85FBE32@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN> <86se6kgfca.fsf@HIDDEN>
In-Reply-To: <86se6kgfca.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
msip_labels: 
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: TYCPR01MB10004:EE_|OS9PR01MB14256:EE_
x-ms-office365-filtering-correlation-id: 40ab029a-0d07-4c0e-505a-08decd62ee08
x-ms-exchange-slblob-mailprops: hQngCdii+CaXRI1QpKWdRyX2ytSc3g6juIwp/KvEFqh0Xr7JpQdovBzBODJSJGN170Cl8NVe6pS2ALesheSAyHai5XnLd3CuzbmxESZnAuoFUcCGhlJeerlfLE/aP0jh8T/mu4s0NYsQhm4SZ4NW3kKy6jg6prvKIIr7SnOGimANNqZKD3c/FohjY6z+klzsDBajtsyuPLgT/q/bAGS1msZa53P1dQeyjGcW+jBQ63YVQd4OawHapgm9lvV70MWErxsln7wqoyaqOAQ1LIFADknWe4qC26ejG/ftfCiiHslIVoZijoDstumPcd5LlOnspO2iICDgfkltDcRSp/j4mwlv9zgTHPewa7v5mOvJLl9lHSWGMvjiuFcO5VYrVU9n+uP75D/i9tQ8N/hRCt5hP62OL2B/sn1Ug1sSRcVbAKdAbZRqd39apmy17ya+UDMY9BhtQDSSHBIYJztHSde1HLWzXsdCsjrieIwoe9buvFCrdSIDoSyCowRyl85I1QvQPV56vAUTDxk3TDSKGq1xG3PQnl0QTkYShw5GP0cd2erRL+nTpZQMMRE8Jtk1l+UHxtl4hFTRFQ41Dl/7SZLoEnPltN7xRstuf2SDCUESnz9YoCut+tJeDFbRj/gJ9m5LCfDV3tRcawK1TSJkoUGc/qLgo2Op92DPUHMV+6Si1CO1eHtb9u6aCA==
x-microsoft-antispam: BCL:0;
 ARA:14566002|15080799012|15030799006|31061999003|24021099003|19110799012|51005399006|8060799015|8062599012|102099032|3412199025|440099028|40105399003;
x-microsoft-antispam-message-info: =?iso-8859-1?Q?WTrDHQpHI1tlqSWR2STVIESfDhH3SaBp+SIeqHqNJQ6ziQEUWBvcxIU+Nm?=
 =?iso-8859-1?Q?WNq55EHh4U62oKV2UAu+fI6d1U39JZZ3wr9c9aFBJVy8AWPJZdcb0RsmYe?=
 =?iso-8859-1?Q?l+JSWEppHat1ozYOgMzXkKC8kNJaba7cvcz4apIN/mfjhQhttD7oC7r1wU?=
 =?iso-8859-1?Q?nBOZPfhd4nVegNjC9Sft1iPlsMmKzITZopLOKY7NLaT0OmkwAUJO8aUyqA?=
 =?iso-8859-1?Q?x+zZ84awCyu5BbeZnfRXS5Eh/egNEm0JrDphFTruWKJAH0CvEOrbif0yB/?=
 =?iso-8859-1?Q?bd7xk5OVReTmCRiIsa/Vr/I+e+ItKK+oYcPrYho2MvWWVLz+vJBCs9IGzT?=
 =?iso-8859-1?Q?95g5Q9ZbWofAPLcw4//o+or+KGyqX2+8DxDEAfe1u9+ekI4ExRrQzZapTO?=
 =?iso-8859-1?Q?Nr8fppXv3m0tXkX8SywGiMIcQags95cIFEX5U2SFffNFO9P+ZT9vFi1dpG?=
 =?iso-8859-1?Q?YLjcHxOWK1DpBiVmhv+TMavHbImL7VJZ79REVEJnYt1fad7VZR9KsjZx8A?=
 =?iso-8859-1?Q?bHIcUA/UOAbiosq8vhrAxTjmwHwOiBmr2u3qOcIbhnsKeRuE606QRsdaJB?=
 =?iso-8859-1?Q?gun3b9pxRoPkiW4S8+gictl2vQgUsUWC2exu5YsVbp/ppTZ41Oerzqs9nH?=
 =?iso-8859-1?Q?RPLYz2o41sAzqF4bYGnlckFfOf4RX3kRHTRdroToEoPtsJZwtBbod7wk3H?=
 =?iso-8859-1?Q?yAQbgaUKRwLzW4hjCQnFyQAxnXTz8zMZbR26gQ1ZLYTpqZglw6CaqM8eo7?=
 =?iso-8859-1?Q?+PqKPAg7DcxxlRnQwMbk6RWB/+8+ohXK9KIgB08elyjL6ots4WnOwkjNXn?=
 =?iso-8859-1?Q?SQDspebB21w5HRpG94If6gfDHJA1tDOR8vf55ciItJFILlL0arNYYU78r1?=
 =?iso-8859-1?Q?X+GHR4OZFz9rHEQL7JRA6LM+6ppL07DvAg0Ma3Lhv7kEPdXtfsmiyWG6In?=
 =?iso-8859-1?Q?PVgTXM9lXQDZG79NtubC+DTzNfGOvlEzbuGZthJ5XNDvzAYhAfVOgBFu22?=
 =?iso-8859-1?Q?9q84fAu9LyvgQ/qT0=3D?=
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?GmkhrQ20MfODA6mHiCa1d3b718IOE+3ANa5ZDkAdzRiZ0jj8Pju9aB5ftk?=
 =?iso-8859-1?Q?pVgCyb1O7SucfshEYrJZU+LFZhaATggohDoLCl9D0JdQM4c6uSEpO9BDul?=
 =?iso-8859-1?Q?x1oausKNOtN8Y8KzS4mNLXKu002MnRZMXUsUzkVIijzYfTbcP6iiNpeSej?=
 =?iso-8859-1?Q?ZanNGZVXpQsglkd+h/elHl0OPFtga9DuAO7+sTzw4vfqwAcL6PVObOo9UU?=
 =?iso-8859-1?Q?5V83LmnCf2cGU+KhYTVRyEWoCQsdicoah4dKGgLwq2cIlphe0lW0+Ot3EA?=
 =?iso-8859-1?Q?3mZeru+JDXNoH45D5GxY8fXCZmu3r/Xn3sxsfU0HQmr++3tlHlkB+Tz7vx?=
 =?iso-8859-1?Q?7ntnY7lxLndM1dXkOa36PwiAyfYfUqPmUrtPIrUcK/mVODqUJzkWOcUu0E?=
 =?iso-8859-1?Q?/cbhSwjsh6UbPLaQ8hdu2g7rj5KscrwDC2gh5GujgErQ6a4vkOOxYWwYpx?=
 =?iso-8859-1?Q?IrfxvRWObKzP4IFzoBYz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abRTpjj7wKu6orRtpDvJ4K2M/p?=
 =?iso-8859-1?Q?l8hVR8NDlUZ897MAEFStDhpj6HEgn7PFPe7NQ4UAf5j5+moubvW14=3D?=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: sct-15-20-9412-3-msonline-outlook-b83fc.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10004.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 40ab029a-0d07-4c0e-505a-08decd62ee08
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2026 17:56:31.6236 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS9PR01MB14256
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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: -0.8 (/)

Confirm the patch works for me. Thanks all of you!=0A=
=0A=
I alway use find-file=A0to open dirs, sometime there're file deleting durin=
g calling dired-noselect then an error emit in background, it is rarely hap=
pened, but after it happened, all my find-file on a dir will failed until I=
 restart emacs.=




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

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


Received: (at 80499) by debbugs.gnu.org; 18 Jun 2026 13:15:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 18 09:15:16 2026
Received: from localhost ([127.0.0.1]:38659 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1waCaQ-0004L5-Do
	for submit <at> debbugs.gnu.org; Thu, 18 Jun 2026 09:15:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41742)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1waCaL-0004Hi-If
 for 80499 <at> debbugs.gnu.org; Thu, 18 Jun 2026 09:15:11 -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 1waCaF-0006Tp-OG; Thu, 18 Jun 2026 09:15:03 -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=ZjLbOoJewiNtH296gc60lGnSmLCpHe/P+airxZamJ7I=; b=O5vlnMAdRJVx
 p3DX7vkLJ1k5NHWKj/bjokKtmqruy7DQocpHoxSpRaenSHQxXbaY23h+Ey2X1KXEpyCJT6sWQrOs4
 v48XU3lGu1TAQ5aV8BrdDpUbAlv7YDfvc7ABfchcCd12LvHEx6ov8/RDQyni0GgUC7526e/qRWxlF
 Zbo6PFwkIcnEbabszjjka5cpnqjKyPpdeNdWao15wisE5SkjiSF8oYEMU75xqEIBTNEx9jBXxsczs
 /9t/T6A7QQYzzh/jJNBSP/ZIoVtA+Mi5BlEvlgNd2b8HptOM9MsP6Gc+8GQOotUu6YlMv2qN3Bzu5
 zyWaKdHkFNiV3yddXr/XUg==;
Date: Thu, 18 Jun 2026 16:15:01 +0300
Message-Id: <86se6kgfca.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <8733yk5bjy.fsf@HIDDEN> (message from Stephen Berman on Thu, 18
 Jun 2026 13:32:17 +0200)
Subject: Re: 31.0.50; dired-auto-toggle-b-switch does not work as expected
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: sunlin7@HIDDEN, 80499 <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: Stephen Berman <stephen.berman@HIDDEN>
> Cc: "80499 <at> debbugs.gnu.org" <80499 <at> debbugs.gnu.org>,  Eli Zaretskii
>  <eliz@HIDDEN>
> Date: Thu, 18 Jun 2026 13:32:17 +0200
> 
> Eli, if the attached patch does fix Lin Sun's issue, can I push it
> to emacs-31?

Yes, thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 18 Jun 2026 11:58:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 18 07:58:48 2026
Received: from localhost ([127.0.0.1]:38468 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1waBOP-0000J8-4X
	for submit <at> debbugs.gnu.org; Thu, 18 Jun 2026 07:58:47 -0400
Received: from mout.gmx.net ([212.227.17.21]:52751)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1waBOI-0000Hs-NU
 for 80499 <at> debbugs.gnu.org; Thu, 18 Jun 2026 07:58:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1781783912; x=1782388712; i=stephen.berman@HIDDEN;
 bh=fKwN/hgy0D/AwsiWghPWioC8m2ve36Sdh+VIO83FhLw=;
 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=Gi8Exz9K2vvt6vMaPL+eFSzUHoQQ6HcTRPZ/FTxFh78EyiUZdhjOlMkYklBI/cBc
 ZFgtSPPT6FZfDEmh5ytqqb5LPqOMdq9LOC9iRuwRH2VK+I8nteEw+gwlvhG4PhIv3
 k/p7A6h541EgA2RynWHPQagIifSSfe+ZnJI41bBt5YbzitRpdVygeSrVdqSCKVeZR
 EoWE43ocIvRGgUs5FplXbKH+O7jZBQ8V5O3fdz2AknUzg5CNnd4xlj23XKzAUsLPl
 nKFwJuhoUV9U00nFP1662Vny3OC7jYnrNFpAD9j5aYPJZEpvCfBJIiLa4fG9a8yCp
 gBw7xhezkpBBwDxNbw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOREc-1wq2Dh471a-00W2Co; Thu, 18
 Jun 2026 13:58:32 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Lin Sun <sunlin7@HIDDEN>
Subject: Re: 31.0.50; dired-auto-toggle-b-switch does not work as expected
In-Reply-To: <8733yk5bjy.fsf@HIDDEN>
References: <TYCPR01MB100048AD82A5173CA7DF89A39FBE42@HIDDEN>
 <8733yk5bjy.fsf@HIDDEN>
Date: Thu, 18 Jun 2026 13:58:31 +0200
Message-ID: <87pl1o3vrs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:MH3LEbK89IFbJ3pn334AZrEMtn7PFjTJ4H45H614pP44XoafZtg
 HJPA9IVRP+kEmv6aGgIC9plVYQuTuNO2+7aXy16abADBX8OhjdfA4rkx9BzjxxHRql5a4Qk
 g4BAGSOmXfcq/xfXIwR0Cz+fic3bjq5jrXmB30rWT6TB1zqnK1fVQbtqSMN5TOm/8YxZlUb
 ZkhBG+nNwI5a7bRnkxUdg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:xnM9CK8QY5c=;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6TFao4RnsiR5UtdSIeIjs9SKftywceq4zvAPWmH4GjMofA2ylQhmS5m1IS8x
 SBVMzO+taVa0QI5Xa9nf8oUdSSgAwfDcZ0kbTF4yFGd58IYT1DS8mCwLANf7/Hk2n5HsrnHaG
 0qE66UyeIrlZqMNlVDjceJeIOBkUf2aoHwQpsO9YyxH7qLsqsWwLJTJAKsh0hXHqEkuZjgaSJ
 pOzmmcu7Ho+YYS6M0sAevTDkVlqLFOGGC6+l9EqUtjfOORUN9TbxMIzNi7bl5TDKwOf1mn/il
 fXf5tVbY0ouL2VxTsKoQbi/3kFq7/R0IKHj50fw6W7uX5SMMHk6iqM6AWeLSZW0ZCm51Wd+yo
 KPntI+v58e9WmxKGOBlmkx6zClqyNacuEnNiS+0v9pCT+sNvRK3YptJj4Q+LAVCL4SLK5gVyD
 soFFHDCTd3oAIVQOX/zd0WFbNaOGQjQuZE5ehvo1BcQC4lG69MJVLrWfEKe8rfMCGReVJbKOL
 ZKqO4NCGHvWBn4OZVzUsflEtvUMQMafAsxzXKq8S4XdGv3CoRVEHMj+GtMIITjk2qGTnaUovM
 /19EBrutFzxcHDBDKjjvZy31mPKxWa
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: "80499 <at> debbugs.gnu.org" <80499 <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 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

My first attempt to unarchive this bug seems to have failed, so I tried
again, and hopefully the following will now appear in the mailing list.
(Apologies to Lin Sun and Eli Zaretskii for sending you multiple
copies as fallout of my failed attempt.)

On Thu, 18 Jun 2026 13:32:17 +0200 Stephen Berman <stephen.berman@HIDDEN> =
wrote:

> On Wed, 17 Jun 2026 17:52:25 +0000 Lin Sun <sunlin7@HIDDEN> wrote:
>
>> Hi Stephen,
>>
>> I'm affected by a bug from new Dired handling of errors from 'ls' (Commit
>> 3b7d9e37ce).=C2=A0
>> Then new function `dired=E2=80=94display-ls-error` will clear the variab=
le
>> `dired--ls-error-buffer`, this function=C2=A0suppose to be called on the=
 tail of
>> `dired-*` functions.
>> But a (find-file "~/") can trigger a dired error but no one call display=
 ls
>> error, then no one clear the ls error buffer variable.
>>
>> Here's a code to similate the scenario:
>>
>> (progn
>> (setq dired--ls-error-buffer (get-buffer-create "*ls error*"))
>> (find-file "~/"))
>>
>> Please condsider the path which calls the dired-noselect but do not call
>> dired--display-ls-error. Thanks
>
> When I evaluate that sexp in emacs -Q I get the Lisp error "~/ is a
> directory", which is signalled in find-file-noselect.  With the attached
> patch I get no error and the current buffer visits "~/" as expected.
> Can you confirm the patch works for you?
>
> But do you really have a use case that has to set
> `dired--ls-error-buffer'?  This internal variable should only be set
> during the execution of `insert-directory'.  If the attached patch does
> not fix your real use case, please provide a complete recipe starting
> from emacs -Q.
>
> BTW, your email does not appear in the mailing list archive nor in the
> Gmane gateway, perhaps because bug#80499 was closed and has been
> archived?  If so, then this email and any other followups will probably
> also not appear in the mailing list archive or Gmane, so if the attached
> patch does not handle your real use case, please open a new bug.  If the
> patch works for you, I'll install it, so then no need for a new bug
> report.  Eli, if the attached patch does fix Lin Sun's issue, can I push
> it to emacs-31?
>
> Thanks.
>
> Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: patch for dired-internal-noselect

diff --git a/lisp/dired.el b/lisp/dired.el
index 9ce3f042f6b..26e698341d8 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1459,10 +1459,20 @@ dired-internal-noselect
       ;; (buffer-local), so we can call dired-readin:
       (let ((failed t))
 	(unwind-protect
-	    (progn (dired-readin)
-                   (unless (and dired--ls-error-buffer
-                                (get-buffer "*ls error*"))
-		     (setq failed nil)))
+            (progn
+              ;; `dired--ls-error-buffer' should only be set in
+              ;; `insert-directory', and if `ls' errors and the buffer
+              ;; displaying the error message pops ups,
+              ;; `dired--ls-error-buffer' is then unset.  But if for
+              ;; some reason it gets set before the next Dired
+              ;; buffer-display command is invoked, this can raise an
+              ;; error, so ensure the variable is unset before reading
+              ;; the directory contents into a Dired buffer.
+              (setq dired--ls-error-buffer nil)
+              (dired-readin)
+              (unless (and dired--ls-error-buffer
+                           (get-buffer "*ls error*"))
+                (setq failed nil)))
 	  ;; If either `dired-readin' failed (e.g. if parent directories
 	  ;; are inaccessible) or `ls' errored, don't leave the Dired
 	  ;; buffer around.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80499; Package emacs. Full text available.
bug unarchived. Request was from Stephen Berman <stephen.berman@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 80499-done <at> debbugs.gnu.org:


Received: (at 80499-done) by debbugs.gnu.org; 23 Apr 2026 11:46:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 23 07:46:02 2026
Received: from localhost ([127.0.0.1]:53081 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wFsVN-0007uI-LH
	for submit <at> debbugs.gnu.org; Thu, 23 Apr 2026 07:46:01 -0400
Received: from mout.gmx.net ([212.227.15.19]:48029)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wFsVI-0007ta-CN
 for 80499-done <at> debbugs.gnu.org; Thu, 23 Apr 2026 07:46:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1776944750; x=1777549550; i=stephen.berman@HIDDEN;
 bh=p0S72zJg6JvGt5pWH1F7w+4WEbkdpQR5xcVLTl6ofRs=;
 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=UmG3yOI2UUbpy9dEAS7R0iM97oDj+iA9aOPUb0cs218tKtFbtJtony9V6uGt2frS
 GXEiwLpR0ejFrTV4+n7aQTwHpeQpBQikbJqySCRzlFlx0shZSE6bGJHAwwFt8A7qy
 Xsf4vvh+skSks71cva46jSW5rgH3dTmFCsIVYXriq8hybHvzGwg3oJ32me89/LCP6
 vZhk16TKXaq2tKTDqRcDROLQ74GbZEVCmhKYXo1fm5T2RWxVoEKAjT6/LwFnTRiR4
 OJo6JnHlbIDmwBjd3SxplCZGDzeCQkJXLw5lyfqDTuKDFjtMkALpPzsq4gsv9UR07
 Bh35Ci3TCVvnyvqytQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Ml6qM-1vWxQQ0UkG-00cD8N; Thu, 23
 Apr 2026 13:45:50 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87tst9ijda.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <87mrzjah2x.fsf@HIDDEN> <87fr5ahq3v.fsf@HIDDEN>
 <87y0ito6py.fsf@HIDDEN> <87wlyb191l.fsf@HIDDEN>
 <87zf37udzd.fsf@HIDDEN> <87jyua25nw.fsf@HIDDEN>
 <87tst9ijda.fsf@HIDDEN>
Date: Thu, 23 Apr 2026 13:45:49 +0200
Message-ID: <87cxzpucgi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:3eiLVB4lS+Ct77Bxmwfg/JCKcRUDwC/4abqhAnRthGt7KDyGJdk
 9dVYG9BLfoCYbuXo9XXvnzfZ6gJ6eKxcwnWek+1E+VqPtW2h3mShqb+Baps/6NVJEtfwSSc
 tuD6/I1/k38WXjd9N5i+dKRi06CQwDCKjXHZYpHyNnPGRoTnSTadFZZ5gg5O4RK4HVw40tT
 xRB11Czrliaw7QKNUauNg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:Ps/02Z09cPU=;tBAjlhj3CTSY5mLv0Ns99xx5wwY
 i7COMo5Ngq7OfakOl+MEbXoi3Njko+EpC4rAQ3yCQlGpFWBScu9FShfpBOvYkWKGIH6uaCE3V
 jrw8i7Q/korhj/D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yqqrn9bLx
 rDbSFwXjLgtSZFyjBbvp0yeO1j+sxS+HXYQw00z3X8fsg+zfwyh0CARPwJbJaYT+IZDr/1Ddo
 VUWDzjr8O36s82mP1trvA9RV5tkOg/sk0iJDm9rSY3oiY481kaV+X/E48ETnMf8XrEAYafSFi
 AZd4EOIacy7btevjCFfO1eANcKD2759PsUH7HhfUW76lbDEB27xdupzuex6w83Q5181w/95fy
 9VybM3B+uK0fSiA==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499-done
Cc: john muhl <jm@HIDDEN>, 80499-done <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 (-)

On Fri, 17 Apr 2026 19:31:29 +0200 Stephen Berman <stephen.berman@HIDDEN> wrote:

> On Mon, 13 Apr 2026 18:20:35 +0200 Stephen Berman <stephen.berman@HIDDEN> wrote:
>
>> On Mon, 13 Apr 2026 09:33:26 -0500 john muhl <jm@HIDDEN> wrote:
>>
>>> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text
>>> editors" <bug-gnu-emacs@HIDDEN> writes:
> [...]
>>>> I hope the attached patch fixes the above issues; if not, or if you
>>>> encounter other issues, please let me know, since I cannot test the
>>>> patch on my system.
>>>>
>>>> Steve Berman
>>>
>>> Looks good now.
>>>
>>>   SUMMARY OF TEST RESULTS
>>>   -----------------------
>>>   Files examined: 555
>>>   Ran 8844 tests, 8615 results as expected, 0 unexpected, 229 skipped
>>>
>>> Thanks.
>>
>> Excellent.  So if there are no objections in the next few days, I'll
>> push the patch to master.  Thanks for the feedback.
>
> I've now pushed the patch as commit abde2d1ed3b.  If no more problems to
> do with this bug are reported in the next few days, I'll close the bug.

Closing now.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 17 Apr 2026 17:31:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 17 13:31:46 2026
Received: from localhost ([127.0.0.1]:38016 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wDn2g-0003G4-2w
	for submit <at> debbugs.gnu.org; Fri, 17 Apr 2026 13:31:46 -0400
Received: from mout.gmx.net ([212.227.15.19]:54229)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wDn2a-0003FL-EJ
 for 80499 <at> debbugs.gnu.org; Fri, 17 Apr 2026 13:31:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1776447091; x=1777051891; i=stephen.berman@HIDDEN;
 bh=IL7TCIUUjZgzM4HK42dNI3a4lN/Jnps2UFqIduys+zU=;
 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=XASEau+Lcs9rf7xoXL/qasA7GNxy72Sc/N5E0QUpX7HlyoUGqbcgF+mPSBfyV1GT
 tEzH1TVf5pjp++PRLSo1a2WuW/Bj/JeLdpAfChHkXOryKlZJrbMTYg3eZNlBQBEWp
 Jz1MT541YyBtlUJFwpnrqgduCm0FgvEmzMjVNcnWud7ptHVyB0stRgIuThPEQ2+Fb
 D97dmT8NzaoEC9xSSp7zxFClnNmuLzOMyHOBfQXI7rbCEpn2D8n2HPAjZcnLa+zg0
 rFazi4PTaaKbL2oj7rjuk6jTUhY1XYlwHfJkTsWmE3CnHUWBdrOcLyPrFdW+R0U7+
 TC/XOqWPO/OwMqNbMw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M9o1v-1wJZvb40c1-00DdQU; Fri, 17
 Apr 2026 19:31:31 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: john muhl <jm@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87jyua25nw.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <87tstuwnke.fsf@HIDDEN>
 <87y0j4z24l.fsf@HIDDEN> <87mrzjah2x.fsf@HIDDEN>
 <87fr5ahq3v.fsf@HIDDEN> <87y0ito6py.fsf@HIDDEN>
 <87wlyb191l.fsf@HIDDEN> <87zf37udzd.fsf@HIDDEN>
 <87jyua25nw.fsf@HIDDEN>
Date: Fri, 17 Apr 2026 19:31:29 +0200
Message-ID: <87tst9ijda.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:iz9dNW7GMi1vwKwBGC2rWlcl6mKy/4RsayoHN4iUS56oYiG06bV
 H5ZuKrEaO01grVMdn2C2N4JwUOrOmoCkHSrdj+mhjXzuCIAiXwYALEj+hnI1jzysjpY4CaI
 YOS0z/aTQDc26+1bntbkb/i/ugoalskbsKv3tNzUoAAHrIY8Z6T6053X0ezyz5wZPElfMr8
 oVTVK8mTEhoaVEOFToz4w==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:sSOZ1oUHjAM=;lMZGUb4niJXELt66mlOFMCBCWY6
 v5og5kcOvsZ78eHMJew/QkJO4TxjHGpTge3BS64dOt69h4n2pyJxMhxWS2XROjP6HMinm6adq
 eD5T5GmMJzuwCKL4BUrUsq9Maemd8EEPiYVksnCQu7bkT3FbVoM2XZDTe/8nkWsRvpXksIbyb
 +83fGy+ljoV/ov4ucSoeOOgl4gseJPGpj7b9N852Jxhy5pcaf7srZdV/CIlmyueFXf+79HV08
 DpPtBCtsFa8ySJ0THrTKNo65cA6SR0GNKI12eytbt/4nEYap2XzJH7OnvpozcFmRr+HBMQcMZ
 k89SVmLyc8HVRdiXtWWHNupyvD+G9jmg06x10E4ONzl6dP5HIsJgQByXuk0hYLVC7ozwm4U/w
 8tW2cAw0h2A+vAei7SCuQKsF6C65tT3KQGUUwGcsq281itpAUTn/9RSKNpxoTUUfURD1Mz50k
 DJ8aK7eIrEAqTX+v+aAupKlrqtJyRClZ9IF8qrEVxtI39ILJ9pvr48ZBeKdUvYN3lSE+6DVQg
 5sh/TWHHUYgNaBWttFHTaFirIMw2DUCFANqWS1uxAv/jbkecPERlpg0bjxPGuhOBfaNDtVs/s
 pUABMI/EymMzstk1j6mAn3BN3TFNiXHTNCBPehJOp8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/pIUF
 Bq5jqYtt+75SYa1qmlSCLDm28h569zHEpnZUwkjnXifNjS50tPd1AOTQsHaSXlDrSvfa5HumR
 S04hH/0AsIOkILjg3bmlaCEZO0DkKFHIONvh25JwCLeNxQn7/ISLOZBqdcMWTgbdCu9z/Etdp
 tUJWeFy8oiEAnmimAVH/EB8rxZFaXLdax4dcnlV/K2WRfdROQ+0eUffX80LgdY/f/RjUzKIW+
 Y7PPbxYx4toz2yAipViPdHU9O4y2iM3nXpfENVeDF/P2BEo74cTVPH/eZHEY3fq/UZR7O9iQ8
 3l0h/fGwUUgrJKQqnKV9P1OywHNCqDYw/z9hPlmhWj9pXq3hM5gqWBeTlRpyChzpiIPSIeA6v
 y6v60sI17liiLuHYD1FRN3vX2De2+ii/JYZu8ESyFIKGmdQU3zEPq+n3efQkpPQWctelOfN3F
 rd4jU3M9GYIX3Z5V0x6OjO2KtyR/DH9rA835CsraD654DrmHHwvQGwYv2TyK0Idz1hP9KGmi4
 /xpce75XF3x76Fwt8JDZPBpPHJryEtKCgDl+99/Wil00h1RUyL9GZPGtNKD8W3WrUG57cpvmv
 E/K06dVs1v/D0oNy3aplXGBL6/K6Az3tDDNqwzlrZ9pxrOygK6v5OYev6lPoKBPpbmwSLnCR8
 hZKoiklIQr6uAnrMs9cBppw+GGYZCnphH5N3cEKEmnZVTNoHFrU8uknt3TzpDB0T1f7uHhz3o
 lObUK5HYV1V4Q8PG5YJYwXCacowlO/ItHfys=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

On Mon, 13 Apr 2026 18:20:35 +0200 Stephen Berman <stephen.berman@HIDDEN> wrote:

> On Mon, 13 Apr 2026 09:33:26 -0500 john muhl <jm@HIDDEN> wrote:
>
>> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text
>> editors" <bug-gnu-emacs@HIDDEN> writes:
[...]
>>> I hope the attached patch fixes the above issues; if not, or if you
>>> encounter other issues, please let me know, since I cannot test the
>>> patch on my system.
>>>
>>> Steve Berman
>>
>> Looks good now.
>>
>>   SUMMARY OF TEST RESULTS
>>   -----------------------
>>   Files examined: 555
>>   Ran 8844 tests, 8615 results as expected, 0 unexpected, 229 skipped
>>
>> Thanks.
>
> Excellent.  So if there are no objections in the next few days, I'll
> push the patch to master.  Thanks for the feedback.

I've now pushed the patch as commit abde2d1ed3b.  If no more problems to
do with this bug are reported in the next few days, I'll close the bug.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 13 Apr 2026 18:25:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 14:25:06 2026
Received: from localhost ([127.0.0.1]:53321 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wCLy4-0001VN-Ay
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2026 14:25:06 -0400
Received: from mout.gmx.net ([212.227.15.19]:43407)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wCLxz-0001UE-Nm
 for 80499 <at> debbugs.gnu.org; Mon, 13 Apr 2026 14:25:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1776104693; x=1776709493; i=stephen.berman@HIDDEN;
 bh=xonnPOnbkkOTHRwPRjs21gB7APYAeTYVp1DbtgiRoj0=;
 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=poKGuxMrlhgvx3zKP4xnwFfYmWvMupYcjM2pCtGItB1pxwEk6G+RjgHgIYA8ohAl
 nlZgXu9uAR9VMsMx/EbseiDgXxdGwpz53pQWKQZDzmT111z+Dzk2U8bTz6VcJnRsM
 sykjlCP97KP1PCeF0v6HDB1SGj3cFzOZWLb7b5b4zGf6f7oUT+CtxTFaLiL37DmNp
 HELstaIJxGDh5XzwYE3imOs+F5e2irkQasAbS1pw4hz1zwQ5Zcm2VDUbWqmWrnzZW
 71wDER3m2uFQzenkoNzd0dFFihZ/ZaQfrxsk+qV51KTeUTJjfpk3GASOXOQsHyMmw
 W3jaTMsk/rSLMKlj3g==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mof9P-1vfAvk19RJ-00n0WK; Mon, 13
 Apr 2026 20:24:53 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87ldeq24cr.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <86ika85isn.fsf@HIDDEN> <87tstsyyyj.fsf@HIDDEN>
 <863411u0jx.fsf@HIDDEN> <87zf39skk2.fsf@HIDDEN>
 <86wlydsk77.fsf@HIDDEN> <87v7dxsj0j.fsf@HIDDEN>
 <87cy04az6e.fsf@HIDDEN> <87y0ir3lvs.fsf@HIDDEN>
 <87ldeq24cr.fsf@HIDDEN>
Date: Mon, 13 Apr 2026 20:24:52 +0200
Message-ID: <87fr4y1zwr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:RhoWjX52/0v/3WkAah1T9ekuo/RSQRi6Rral5odJWq3m+G8Lz6l
 YW0u5MurjMKOjZG9CAy2Uuj81iROg2ZpTOHJyecJpYjQOuMqxacjiGGnhzRhG7rxum+tKPF
 VUX02bNd62kO9WYLKKXlpcDWf7ZBk/KSPTGLntF1Px4RU9l18dZo7/9G+RspUH5rr+/HdU4
 c9YX3NdSsorb/OI7hDb/g==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:lqgBnbHBl5o=;gKrd/i9yuFWvUziB2LWEGYmwccO
 7N9I7K7T3bYbQsqagi6l01OgG/D0o4FHpQ0TrnJ/FvxDEZeV0ezefgq4ZcxSqRjuPn5SX36m2
 JyCy3wRGeN2cd2UFFj3XG2hpcjKd6gacBS4jS3wAB/nFjtPoJK6a9uM0Wb0dAK2GXqDcqX+35
 XGwZFZbCTH/BbrPXetu0sYMdiyh0V8wOpA4KZJ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UCnDakiObMZzlKfgsaE13smhQLmCQvV/LIixqzUC2F
 WK
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, jm@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 (-)

On Mon, 13 Apr 2026 19:48:52 +0300 Juri Linkov <juri@HIDDEN> wrote:

>>> Looking at the commit it seems that this regression
>>> affects only 'temporary-file-directory'?
>>> But I accidentally discovered it just in /tmp.
>>
>> Sorry about that; does the attached patch fix the regression for you?
>
> It does, thanks.

Thanks for confirming...

On Mon, 13 Apr 2026 20:55:39 +0300 Juri Linkov <juri@HIDDEN> wrote:

>> +              (save-restriction
>> +                (widen)
>
> I just recalled that we have a new macro `without-restriction'.

... and thanks for the reminder, just in time to make that change to the
fix before pushing :-)

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 13 Apr 2026 17:56:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 13:56:30 2026
Received: from localhost ([127.0.0.1]:52627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wCLWP-0006d0-HZ
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2026 13:56:30 -0400
Received: from mout-p-202.mailbox.org ([80.241.56.172]:37208)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wCLWJ-0006bI-Qb
 for 80499 <at> debbugs.gnu.org; Mon, 13 Apr 2026 13:56:25 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org
 [IPv6:2001:67c:2050:b231:465::1])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4fvZpQ5VbGz9tFZ;
 Mon, 13 Apr 2026 19:56:14 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1776102974;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=GRk/0nz8PcFwGxcqs1HOQEAM8lfgo16gX1CBgj/23UE=;
 b=Aiz0Dr9crQ6pi/ICo1o88+p6jvWCOQVRYWWFkAG7DWSqnjN/WHLoFuIZDR+xtBMNYaNdRC
 BAXAjCH9duU7JegtAHb6F5M3sDiUe4smAGgnW6sPRDGc8YxUb5cMS52KnK5Zyqiv28yPr3
 4E02ZIRTPpHtwsyxVM0WAKxV82uShNxHXpc0VOPTUV9avoXTJgfCczJ2b071VDCFdatKXG
 I6FmdQ/3XaxK5Cm/+O0TxGAY9y6YQiOyaS9hiR5u8M/OCfadHo90eQ5yDU9rwU20phqAol
 8rQ0CpRXqvQCpT0+AN7+SjEYS+AyJa2H1vchK2wISKw7UNSrvwii+5MD8yugZA==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87y0ir3lvs.fsf@HIDDEN>
Organization: LINKOV.NET
References: <m1ms0vkumq.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <87tstuwnke.fsf@HIDDEN>
 <87y0j4z24l.fsf@HIDDEN> <86ika85isn.fsf@HIDDEN>
 <87tstsyyyj.fsf@HIDDEN> <863411u0jx.fsf@HIDDEN>
 <87zf39skk2.fsf@HIDDEN> <86wlydsk77.fsf@HIDDEN>
 <87v7dxsj0j.fsf@HIDDEN> <87cy04az6e.fsf@HIDDEN>
 <87y0ir3lvs.fsf@HIDDEN>
Date: Mon, 13 Apr 2026 20:55:39 +0300
Message-ID: <87eckiycbo.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Rspamd-Queue-Id: 4fvZpQ5VbGz9tFZ
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, jm@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 (-)

> +              (save-restriction
> +                (widen)

I just recalled that we have a new macro `without-restriction'.




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

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


Received: (at 80499) by debbugs.gnu.org; 13 Apr 2026 16:57:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:57:37 2026
Received: from localhost ([127.0.0.1]:51689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wCKbR-0006lZ-3O
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2026 12:57:37 -0400
Received: from mout-p-201.mailbox.org ([80.241.56.171]:40160)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wCKbI-0006kH-At
 for 80499 <at> debbugs.gnu.org; Mon, 13 Apr 2026 12:57:31 -0400
Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4fvYVQ1Glkz9txS;
 Mon, 13 Apr 2026 18:57:18 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1776099438;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=GfYyD7Y9NABFzc6klMMXoPXGj9st01mV7cYSPIAZHn8=;
 b=XOHWG6ej9lnQrMW/xxNTul7290mu8njLfD0SBuRfWIum79vBesTrFATiC8rtJGkzWVn6RS
 XSr40ggAFm41SMrsDyrNW5HMJ9UDZ3ja1EW3+BqmcVCzEa2l7tGwmvDLUqaqGp7bhkZzKt
 oRUFUZ0ZvrbrhqAWjjJdkboHDfup7mggCEDv1UW+Ml9aK+OChcFvSFOFAQWhdA7Yc94+Kw
 u8NarFepsOFYOFlVwcW50p9szIGVIr/wS9TkzeYjoxU67356VRhRFo+KERzIO8R8GwC8bj
 1JPV3zox8SpTzXKkrheGCO6aPCfqOFCTmPS8tvgENBsgwl+u0nPf0DtjA2vKQg==
From: Juri Linkov <juri@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87y0ir3lvs.fsf@HIDDEN>
Organization: LINKOV.NET
References: <m1ms0vkumq.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <87tstuwnke.fsf@HIDDEN>
 <87y0j4z24l.fsf@HIDDEN> <86ika85isn.fsf@HIDDEN>
 <87tstsyyyj.fsf@HIDDEN> <863411u0jx.fsf@HIDDEN>
 <87zf39skk2.fsf@HIDDEN> <86wlydsk77.fsf@HIDDEN>
 <87v7dxsj0j.fsf@HIDDEN> <87cy04az6e.fsf@HIDDEN>
 <87y0ir3lvs.fsf@HIDDEN>
Date: Mon, 13 Apr 2026 19:48:52 +0300
Message-ID: <87ldeq24cr.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, jm@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 (-)

>> Looking at the commit it seems that this regression
>> affects only 'temporary-file-directory'?
>> But I accidentally discovered it just in /tmp.
>
> Sorry about that; does the attached patch fix the regression for you?

It does, thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 13 Apr 2026 16:20:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:20:52 2026
Received: from localhost ([127.0.0.1]:50687 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wCK1o-0002jW-Tn
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2026 12:20:51 -0400
Received: from mout.gmx.net ([212.227.17.20]:45045)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wCK1j-0002fw-Q0
 for 80499 <at> debbugs.gnu.org; Mon, 13 Apr 2026 12:20:46 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1776097237; x=1776702037; i=stephen.berman@HIDDEN;
 bh=XD2+D+U6TXBvz8S6u7xlKwGHSH2Z872ZMd1RYvf7SEg=;
 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=XHEwuWELxxboFwIaRZB0ByH0EX3ViAllXiPgM5CjkPWzgMY1P6vnj1CDCb3mxOud
 e0X/jwV1ZGw79ipXQdTjlKqEkCMer95TuxMYuZFA3cKKLGkgAyn6i4mJhFHJzZSfM
 T+sYA2Na5Ov7+IU2N9OqEYfYgFmnH+oQ3Ilp/87iw6gsYJ+1rtrWS5nAP1SbGG0IP
 rpmTFj/mwm19p2jcmL28BLCYHL2ofaytyHDKOSskHGP/WhOGtwmEfLey+xWgbTY5I
 jd0L9tUNBSDEkQ0Qg6qsYsnY0AbbBFinlsvl1k1nNgR4uimTu82qOOUPRmKKdNlKq
 XqnbcBhXxlrAfzEIbA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MgNh1-1vVovz3cwJ-00bdX3; Mon, 13
 Apr 2026 18:20:37 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: john muhl <jm@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87zf37udzd.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <87mrzjah2x.fsf@HIDDEN> <87fr5ahq3v.fsf@HIDDEN>
 <87y0ito6py.fsf@HIDDEN> <87wlyb191l.fsf@HIDDEN>
 <87zf37udzd.fsf@HIDDEN>
Date: Mon, 13 Apr 2026 18:20:35 +0200
Message-ID: <87jyua25nw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:rKQwb8Q01+hjB5/yOVWJkg6E+Rb9QOxdtS31wHoCnQASEiAqbb4
 ERxfTZ+jPMDD7JvTfD/A7Lmvb3lRH1J6nKIHyTZl3NBneP7s95x4kK5IyazYwdJPjU1XxFR
 Qd88NwV7/GJl9I7Sj9280WsFu+T80hTXVcltJaUqwQC91OZM+O++gK6PMdTrEaUWqLYUqj8
 8mdRbsopvurK4BWOIxk3w==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:R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T9ixE+ACNxXDy/ePNKNgUg4GeWHJi/1hqloa
 GtwsYblmMBOO5UEtQsoHXFCK/DMExiP/aE5Z+G/ueP1k00etmglkh7cbGsi8H0Ddp2YEaIMoY
 KiytnjS/Qs1sWsgQsiH9kLM8H5477x14llMyNUaTxgUnxFV/4KZ8b/pmjqEHgYMJixDYiQ/Ap
 7FwRTi1XkUUjOX1aWv///s4kJBi2jINJHs08G10j/6MaLB/4vXqo5rtzZ8aHsPrtGGFE5/Au0
 +v
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

On Mon, 13 Apr 2026 09:33:26 -0500 john muhl <jm@HIDDEN> wrote:

> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs@HIDDEN> writes:
>
>> On Sat, 11 Apr 2026 10:30:01 -0500 john muhl <jm@HIDDEN> wrote:
>>
>>> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text
>>> editors" <bug-gnu-emacs@HIDDEN> writes:
>>>
>>>> On Fri, 03 Apr 2026 16:07:18 -0500 john muhl <jm@HIDDEN> wrote:
>>>>
>>>>> In the dired buffer the newline in the file name is replaced with ?:
>>>>>
>>>>>   /root:
>>>>>   drwx------    4 root     root             7 Apr  3 15:34 .
>>>>>   drwxr-xr-x   21 root     root            21 Apr  3 15:08 ..
>>>>>   -rw-------    1 root     root          1159 Apr  3 15:36 .ash_history
>>>>>   drwx------    3 root     root             3 Apr  3 15:34 .emacs.d
>>>>>   -rw-r--r--    1 root     root             0 Apr  3 15:33 a?b
>>>>>   drwxr-xr-x   25 root     root            55 Apr  3 15:19 emacs
>>>>
>>>> But this puzzles me.  IIUC in a system using GNU ls Dired can (and by
>>>> default does) display a newline in a file name as a literal newline
>>>> (i.e., the file name extends over at least two lines in Dired).  So why
>>>> is it displayed as '?' in your Dired?  Is the character at that position
>>>> in the Dired buffer really ASCII 63?  And when you invoke 'ls -al /root'
>>>> in the shell, is the file name containing the newline also displayed a
>>>> 'a?b', or if not, how is it displayed?  And are both the Dired and the
>>>> shell listings of that directory otherwise complete and correct?
>>>
>>> Yeah ls in a shell shows the ? also, describe-char confirms it is
>>> ASCII 63 and the listing is otherwise correct in the shell and
>>> dired.
>>
>> Thanks.  So it seems that either your 'ls' or perhaps some lower-level
>> function replaces the newline with "?".  Out of curiosity, what return
>> value do you get when you evaluate `(directory-files "/root" nil "\n")'
>> (assuming "/root" includes a file whose name contains a newline, as
>> above)?
>
>   ("a
>   b")

So that pretty clearly implicates your 'ls' as the culprit.

>> I hope the attached patch fixes the above issues; if not, or if you
>> encounter other issues, please let me know, since I cannot test the
>> patch on my system.
>>
>> Steve Berman
>
> Looks good now.
>
>   SUMMARY OF TEST RESULTS
>   -----------------------
>   Files examined: 555
>   Ran 8844 tests, 8615 results as expected, 0 unexpected, 229 skipped
>
> Thanks.

Excellent.  So if there are no objections in the next few days, I'll
push the patch to master.  Thanks for the feedback.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 13 Apr 2026 14:33:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 10:33:38 2026
Received: from localhost ([127.0.0.1]:47892 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wCIM6-0006CY-0t
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2026 10:33:38 -0400
Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]:37259)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jm@HIDDEN>) id 1wCIM2-0006Bz-0Z
 for 80499 <at> debbugs.gnu.org; Mon, 13 Apr 2026 10:33:36 -0400
Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 03E8A7A01D9;
 Mon, 13 Apr 2026 10:33:27 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-08.internal (MEProxy); Mon, 13 Apr 2026 10:33:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm2; t=1776090807; x=1776177207; bh=ZixH9F9HFP
 n+hSfEuUPnUjjJZksHd+eyKOamkXexnYA=; b=QSbR7NLzPFpPGXhX7WxFgFnVdX
 mbqkL/Qx1IvXSgSSLuRN8JhDEYxa0YZU5n/JHkyRCCE8TBMAnfBfgKRPcKp5XRqZ
 VQ8PSNHwt1E29h7sQAdJi3vV0TQ26CWO/1bOr39DWmDBh9o6uk4TW0jS9H/R8oGd
 TFriOwTlCWJeZ15S6tkrgY0z94Qwz+xpiygFSj4JkWhPyh2gz8j2MH+3ONuxGP1t
 JUIYtCikx/75T2wKa+AalzqsfxIR8t8hDhbWU3a7d7+pSdrlMsrKOJwKqi2q+XkL
 zMVV9bDZj+NpslONuidFlG8XHsKVuDTCFAp7r+2MVFELjDss5ix0jSfKh7lQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
 1776090807; x=1776177207; bh=ZixH9F9HFPn+hSfEuUPnUjjJZksHd+eyKOa
 mkXexnYA=; b=ESHys7nte8C1zAQvk+dMfXXXuKz5eIxMMTzqgR2VkyD3HH8P27B
 Dv3PnkVISL7Z4a7UH2hje5ICdXBF7W2Ia/0axRTQofL5Sg2kPLob3DXmosvaFdY3
 vzRKesKBPrtokcfnERHcpnwKfezR9XLhNkR7AZCklV48o4H8e/4LBeZ5+2h9AaB4
 mZefIuH/s/7PEv+R2mqCD8RVGmvz+mpyAfxRGN+ikVlbkvLa0KK4/RbfdF+nP+eA
 95zK0/nd+/9CP8tYzWf1hxgGEb4/l5m3UPw9JVik6CLfZLcqFYzSt7754ArUJbpZ
 cNdS0B9h2fHd1K5BIFdOn0IY/SF2xEA8epg==
X-ME-Sender: <xms:t_7caQ33Q0L8pcKaE28HOU7UfIRNb2obLp5-lKAGY7cKUIClDOu8eg>
 <xme:t_7caRF-dSVraK5WU4GrC2xPFHAF3f7V9PGMdT9wTgiCDBQlJau6O28r9HSJTobop
 ZHBHnhysDJ3fw1VV5OIMFBiPSVDHCJazZq2LSfiUTbHnhbHBf1i_Ps>
X-ME-Received: <xmr:t_7caWjpPqyGKs9M_cec3RrRwF592yNi_hvsDZBOT2FKK3KPGAdNow>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdefkeegkecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefhvfevufgjfhffkfgfgggtsehttdertddtredtnecuhfhrohhmpehjohhhnhcumhhu
 hhhluceojhhmsehpuhgsrdhpihhnkheqnecuggftrfgrthhtvghrnhepuddtveeitdevue
 ehvddtffeiveejieejjedvtdeltdfgkeehteekieejheeftdfgnecuvehluhhsthgvrhfu
 ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhmsehpuhgsrdhpihhnkhdpnh
 gspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkedtgeel
 leesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehsthgvphhhvghnrdgsvg
 hrmhgrnhesghhmgidrnhgvth
X-ME-Proxy: <xmx:t_7caU8aN2B3VRowDsF7T9sPQmS5pgyKnVrUXY07vUzJriQym6v-zA>
 <xmx:t_7caVqrsyW2cR326ReRbSEPTPM-tTaMmTMopTwkHPMyORkc_Q0BCA>
 <xmx:t_7cab-8AhoU6616N_3vU9l11WFkm4N-2qSc5XT15mvH7seeAMJJBA>
 <xmx:t_7caRWqZgaqbvluNp94HC3qC2oMFO9U19T5V9ofLjxjHLIlyjfdQQ>
 <xmx:t_7caRcnX6fH4iDvw5qroCEFerb2iZmQzbxoMUBAAwYFCqlJlJFQIKhJ>
Feedback-ID: i74194916:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 13 Apr 2026 10:33:26 -0400 (EDT)
From: john muhl <jm@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87wlyb191l.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <87mrzjah2x.fsf@HIDDEN> <87fr5ahq3v.fsf@HIDDEN> <87y0ito6py.fsf@HIDDEN>
 <87wlyb191l.fsf@HIDDEN>
Date: Mon, 13 Apr 2026 09:33:26 -0500
Message-ID: <87zf37udzd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

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

> On Sat, 11 Apr 2026 10:30:01 -0500 john muhl <jm@HIDDEN> wrote:
>
>> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text
>> editors" <bug-gnu-emacs@HIDDEN> writes:
>>
>>> On Fri, 03 Apr 2026 16:07:18 -0500 john muhl <jm@HIDDEN> wrote:
>>>
>>>> In the dired buffer the newline in the file name is replaced with ?:
>>>>
>>>>   /root:
>>>>   drwx------    4 root     root             7 Apr  3 15:34 .
>>>>   drwxr-xr-x   21 root     root            21 Apr  3 15:08 ..
>>>>   -rw-------    1 root     root          1159 Apr  3 15:36 .ash_history
>>>>   drwx------    3 root     root             3 Apr  3 15:34 .emacs.d
>>>>   -rw-r--r--    1 root     root             0 Apr  3 15:33 a?b
>>>>   drwxr-xr-x   25 root     root            55 Apr  3 15:19 emacs
>>>
>>> But this puzzles me.  IIUC in a system using GNU ls Dired can (and by
>>> default does) display a newline in a file name as a literal newline
>>> (i.e., the file name extends over at least two lines in Dired).  So why
>>> is it displayed as '?' in your Dired?  Is the character at that position
>>> in the Dired buffer really ASCII 63?  And when you invoke 'ls -al /root'
>>> in the shell, is the file name containing the newline also displayed a
>>> 'a?b', or if not, how is it displayed?  And are both the Dired and the
>>> shell listings of that directory otherwise complete and correct?
>>
>> Yeah ls in a shell shows the ? also, describe-char confirms it is
>> ASCII 63 and the listing is otherwise correct in the shell and
>> dired.
>
> Thanks.  So it seems that either your 'ls' or perhaps some lower-level
> function replaces the newline with "?".  Out of curiosity, what return
> value do you get when you evaluate `(directory-files "/root" nil "\n")'
> (assuming "/root" includes a file whose name contains a newline, as
> above)?

  ("a
  b")

> I hope the attached patch fixes the above issues; if not, or if you
> encounter other issues, please let me know, since I cannot test the
> patch on my system.
>
> Steve Berman

Looks good now.

  SUMMARY OF TEST RESULTS
  -----------------------
  Files examined: 555
  Ran 8844 tests, 8615 results as expected, 0 unexpected, 229 skipped

Thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 13 Apr 2026 09:53:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 05:53:12 2026
Received: from localhost ([127.0.0.1]:41318 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wCDyh-00027f-HE
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2026 05:53:12 -0400
Received: from mout.gmx.net ([212.227.15.19]:50899)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wCDye-00026V-Fy
 for 80499 <at> debbugs.gnu.org; Mon, 13 Apr 2026 05:53:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1776073975; x=1776678775; i=stephen.berman@HIDDEN;
 bh=5Rz6K94QIM3Gr/pIW7DAAQWTA+pTfq+PcvQBIbEl32A=;
 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=FOaaztxFtvJ3VC3hvyP92DB/VMM+dzO1qVEcgP7V4d/OY20w1jehruw8Gceu1kHI
 pUNXxm1PNxqGQiB9S9XiMGBHyWpI8HqDXBNDwGqiCvssrfFsPDUUwBaW8AQ/HlBae
 SVlSoyHNIO9FRwEicT5NAA2MDPJGb9HDVtx+UlkmNbmYl6USJtj9Zrov/WKRSqk3z
 bTcYRimJHpiVB+Kb0cheWwNQeU6VOtN0w6qfX6OV1Eet5TmCN3YNozQ30lmhvnZ+c
 aR2PWcxt6u/I3FkFsS3wmqlCXoeIvlnx0zKKl4Lz6naP0PsCrUYObcKT8BbQENvlT
 NJBikMnv4bahkQuMhw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mr9Bk-1vggUr2eH8-00q2R7; Mon, 13
 Apr 2026 11:52:55 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: john muhl <jm@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87y0ito6py.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <87mrzjah2x.fsf@HIDDEN> <87fr5ahq3v.fsf@HIDDEN>
 <87y0ito6py.fsf@HIDDEN>
Date: Mon, 13 Apr 2026 11:52:54 +0200
Message-ID: <87wlyb191l.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:THVVwwF44k1j5JZrrb1IwOApmKsXcJGu5Km2fSeQWNBZo6CzTfP
 RRyTls/8vLW4YxqGRKfPdtvyxt9LpvjYEcqGoX2Y1jY7GMLqBl+iWIoBO+1GR93ltFB50pf
 MhxLI4JzNZ67KJz/O9YgSm5hjD7rGvepO+AI92yMaTupu3nko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QOT75rD
 5cS8N0EwNuFcijTyE/ME/xu151FS/aXCUA/7KdM7bi9bWkrUBleO95o/0d6LWgGMgnvESp7aR
 rLTxXQtZGrfIeLgQ80UEkaqDAmnMCbufa8Wlxovard5utZLrhxBkvUccJRTksNI1txth3feb8
 mDIO/oFNJqJ5DD239m6tjR7XfCzQ+AWX/tQbuLOBX7Y0emh0lxBV2AQBIk/WdcgRV1AEiirMB
 Rr52IaaOgOzhs1C2/k7YQkhrx2tKoTkb4RoMJ5Ell4i24GDjOYZ+AUmLhq0+xPspf0YYR5nDt
 oMxNHHOgsoaisbQpq+TmcXE3grZ4B2oCp8cDVY102ebyx/BXI1psiQozX8U7w0WbkXfB/kmm4
 oQESqV5l9jxfLCar2C4ucWLUtFuV5u6qqMhyeLMZJ+Oef0fsaX4i6t+rO0kB3Gvj1Ch7n32SR
 iAqV4+3O8NMrCU2cxN1h0UZrA/xOitRSCuxwzFydMHj6EbtgkQMgLJtkCURoZXfPKqChvX0p7
 wCLqUZdmlYphNLWlDwO10g6mEY3S8cx5+bxCovgz+c96W2LEXLtKFO10mX0yHl+qR/oJsw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Sat, 11 Apr 2026 10:30:01 -0500 john muhl <jm@HIDDEN> wrote:

> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of te=
xt
> editors" <bug-gnu-emacs@HIDDEN> writes:
>
>> On Fri, 03 Apr 2026 16:07:18 -0500 john muhl <jm@HIDDEN> wrote:
>>
>>> In the dired buffer the newline in the file name is replaced with ?:
>>>
>>>   /root:
>>>   drwx------    4 root     root             7 Apr  3 15:34 .
>>>   drwxr-xr-x   21 root     root            21 Apr  3 15:08 ..
>>>   -rw-------    1 root     root          1159 Apr  3 15:36 .ash_history
>>>   drwx------    3 root     root             3 Apr  3 15:34 .emacs.d
>>>   -rw-r--r--    1 root     root             0 Apr  3 15:33 a?b
>>>   drwxr-xr-x   25 root     root            55 Apr  3 15:19 emacs
>>
>> But this puzzles me.  IIUC in a system using GNU ls Dired can (and by
>> default does) display a newline in a file name as a literal newline
>> (i.e., the file name extends over at least two lines in Dired).  So why
>> is it displayed as '?' in your Dired?  Is the character at that position
>> in the Dired buffer really ASCII 63?  And when you invoke 'ls -al /root'
>> in the shell, is the file name containing the newline also displayed a
>> 'a?b', or if not, how is it displayed?  And are both the Dired and the
>> shell listings of that directory otherwise complete and correct?
>
> Yeah ls in a shell shows the ? also, describe-char confirms it is
> ASCII 63 and the listing is otherwise correct in the shell and
> dired.

Thanks.  So it seems that either your 'ls' or perhaps some lower-level
function replaces the newline with "?".  Out of curiosity, what return
value do you get when you evaluate `(directory-files "/root" nil "\n")'
(assuming "/root" includes a file whose name contains a newline, as
above)?

>>> Enabling d-a-t-b-s removes all the entries from the buffer:
>>>
>>>   /root:
>>
>> Enabling d-a-t-b-s results in the call chain dired--toggle-b-switch ->
>> dired-revert -> dired-readin -> erase-buffer, followed by
>> dired-readin-insert -> dired-insert-directory -> insert-directory, which
>> via call-process invokes 'insert-directory-program' i.e. 'ls', and after
>> returning to 'dired-insert-directory' the line "/root:" is inserted.  So
>> it looks like 'ls' failed and if so the buffer *ls error* containing the
>> error message should pop up.  Do you see that and if so, what is the
>> error?
>
> It didn=E2=80=99t popup but it does get created and complains about -b:
>
>   /bin/ls: unrecognized option: b
>   BusyBox v1.37.0 (2026-01-10 15:38:28 UTC) multi-call binary.
>   Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...

I guess we should only display the filename-with-newline warning and
call `dired--toggle-b-switch' if `ls' supports -b.  We could check this
analogously to how `dired-insert-directory' checks for --dired support:
`(eq 0 (call-process insert-directory-program nil nil nil "-b"))', as in
the attached patch.  Eli, what do you think?

> With ee9b2db1cf0 the files and wdired tests pass.

Good!

> Test dired-test-filename-with-newline-1 backtrace:
>   search-backward("\n" 246 nil nil)
>   apply(search-backward ("\n" 246))
>   #f(compiled-function () #<bytecode -0x21c629773d2a60f>)()
>   #f(compiled-function () #<bytecode -0x3b2655893eba18f>)()
>   handler-bind-1(#f(compiled-function () #<bytecode -0x3b2655893eba18f
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name dired-test-filename-with-newline-1 :d
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test dired-test-filename-with-newline-1 condition:
>     (search-failed "\n")
>    FAILED  15/22  dired-test-filename-with-newline-1 (0.007252 sec) at li=
sp/dired-tests.el:661

Since the newline is replaced by "?" on your system, this test should be
skipped.  Since `ls' not being able to display file names containing a
newline in effect entails that it does not support the -b switch,
the above test for -b support seems like an appropriate skip-unless
condition here; see attached patch.

> Directory has changed on disk; type g to update Dired
> Test dired-test-filename-with-newline-2 backtrace:
>   signal(error ("No file on this line"))
>   error("No file on this line")
>   dired-move-to-end-of-filename()
>   #f(compiled-function () #<bytecode -0xdf62d1f573eb6ba>)()
>   #f(compiled-function () #<bytecode -0x3b2655893eba18f>)()
>   handler-bind-1(#f(compiled-function () #<bytecode -0x3b2655893eba18f
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name dired-test-filename-with-newline-2 :d
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test dired-test-filename-with-newline-2 condition:
>     (error "No file on this line")
>    FAILED  16/22  dired-test-filename-with-newline-2 (0.006693 sec) at li=
sp/dired-tests.el:696

The error here seems to be due to the Dired buffer being empty,
presumably for the same reason as with the "/root" buffer above.  Since
this test assumes `ls' is passed the -b switch, it should be skipped,
again using the -b test for a skip-unless condition.

> Test dired-test-hide-absolute-location-disabled backtrace:
>   signal(error ("Attempt to insert a non-directory: /root/emacs/test/l
>   error("Attempt to insert a non-directory: %s" "/root/emacs/test/lisp
>   dired-insert-subdir("/root/emacs/test/lisp/dired-resources/filename-
>   #f(compiled-function () #<bytecode -0x16250d671089d1c6>)()
>   #f(compiled-function () #<bytecode -0x3b2655893eba18f>)()
>   handler-bind-1(#f(compiled-function () #<bytecode -0x3b2655893eba18f
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name dired-test-hide-absolute-location-dis
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test dired-test-hide-absolute-location-disabled condition:
>     (error
>      "Attempt to insert a non-directory: /root/emacs/test/lisp/dired-reso=
urces/filename-with-newline/play/")
>    FAILED  17/22  dired-test-hide-absolute-location-disabled (0.004459 se=
c) at lisp/dired-tests.el:552

The directory part "dired-resources/filename-with-newline" in the
backtrace comes from the two previous tests: since they failed, the
subdirectory was not deleted.  Apparently, that results in this becoming
the value of `default-directory' in this test, leading to the failure,
since this directory is not a subdirectory of the "lisp" directory in
the Emacs sources.  I assume you won't get this failure when the two
other tests pass, since then "filename-with-newline" will be deleted.

I hope the attached patch fixes the above issues; if not, or if you
encounter other issues, please let me know, since I cannot test the
patch on my system.

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: dired ls -b switch patch
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/dired.el b/lisp/dired.el
index 3a5a9a3a525..b36136a5118 100644
=2D-- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -553,7 +553,8 @@ dired-filename-display-length
 (defcustom dired-auto-toggle-b-switch nil
   "Whether to automatically add or remove the `b' switch.
 If non-nil, the function `dired--toggle-b-switch' (which see) is added
-to `post-command-hook' in Dired mode."
+to `post-command-hook' in Dired mode, unless the `ls' used by Dired does
+not accept the `b' switch."
   :type 'boolean
   :group 'dired
   :initialize #'custom-initialize-default
@@ -1472,15 +1473,16 @@ dired-internal-noselect
       (dired-initial-position dirname))
     (when (consp dired-directory)
       (dired--align-all-files))
-    ;; Pop up a warning if the Dired listing displays a literal newline.
-    ;; We do this here in order to get the warning not only when
-    ;; interactively invoking `dired' on a directory, but also e.g. when
-    ;; passing the directory name as a command line argument when
-    ;; starting Emacs from the shell.
+    ;; Pop up a warning if the Dired listing displays a literal newline
+    ;; and `ls' can take the `b' switch.  We do this here in order to
+    ;; get the warning not only when interactively invoking `dired' on a
+    ;; directory, but also e.g. when passing the directory name as a
+    ;; command line argument when starting Emacs from the shell.
     (unless (or dired-auto-toggle-b-switch
                 (dired-switches-escape-p dired-listing-switches)
                 (dired-switches-escape-p dired-actual-switches))
-      (when (dired--filename-with-newline-p)
+      (when (and (dired--filename-with-newline-p)
+                 (dired--ls-accept-b-switch-p))
         (dired--display-filename-with-newline-warning buffer)))
     (set-buffer old-buf)
     buffer))
@@ -4051,6 +4053,10 @@ dired--filename-with-newline-p
 a literal newline or as \"\\n\")."
   (directory-files default-directory nil "\n"))
=20
+(defun dired--ls-accept-b-switch-p ()
+  "Return non-nil if the `ls' used by Dired accepts the `b' switch."
+  (eq 0 (call-process insert-directory-program nil nil nil "-b")))
+
 (defun dired--remove-b-switch ()
   "Remove all variants of the `b' switch from `dired-actual-switches'.
 This removes not only all occurrences of the short form `-b' but also
@@ -4068,8 +4074,9 @@ dired--toggle-b-switch
   "Add or remove `b' switch and redisplay Dired buffer.
 When the current Dired buffer has a file name containing a newline, add
 the `b' switch to the actual switches if it isn't already among them;
-otherwise remove the `b' switch unless it is in `dired-listing-switches'.
-Then redisplay the Dired buffer.  This function is called from
+otherwise remove the `b' switch unless it is in
+`dired-listing-switches'.  Then redisplay the Dired buffer.  When
+`dired-auto-toggle-b-switch' is non-nil, this function is called from
 `post-command-hook' in Dired mode buffers."
   (when (eq major-mode 'dired-mode)
     (if (and (dired--filename-with-newline-p) dired-auto-toggle-b-switch)
@@ -4084,12 +4091,13 @@ dired--toggle-b-switch
 (defun dired--set-auto-toggle-b-switch (symbol value)
   "The :set function for user option `dired-auto-toggle-b-switch'."
   (custom-set-default symbol value)
-  (if value
-      (add-hook 'post-command-hook #'dired--toggle-b-switch nil t)
-    (remove-hook 'post-command-hook #'dired--toggle-b-switch t))
-  (dolist (b (buffer-list))
-    (with-current-buffer b
-      (dired--toggle-b-switch))))
+  (when (dired--ls-accept-b-switch-p)
+    (if value
+        (add-hook 'post-command-hook #'dired--toggle-b-switch nil t)
+      (remove-hook 'post-command-hook #'dired--toggle-b-switch t))
+    (dolist (b (buffer-list))
+      (with-current-buffer b
+        (dired--toggle-b-switch)))))
=20
 (defun dired--display-filename-with-newline-warning (dir)
   "Display a warning if buffer DIR has a file name with a newline."
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index f5f92fd6485..b2e0f257a15 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -663,6 +663,7 @@ dired-test-filename-with-newline-1
   ;; File names with embedded newlines are not allowed on MS-Windows and
   ;; MS-DOS.
   (skip-when (memq system-type '(windows-nt ms-dos)))
+  (skip-unless (dired--ls-accept-b-switch-p))
   (with-current-buffer "*Messages*"
     (let ((inhibit-read-only t))
       (erase-buffer)))
@@ -698,6 +699,7 @@ dired-test-filename-with-newline-2
   ;; File names with embedded newlines are not allowed on MS-Windows and
   ;; MS-DOS.
   (skip-when (memq system-type '(windows-nt ms-dos)))
+  (skip-unless (dired--ls-accept-b-switch-p))
   (with-current-buffer "*Messages*"
     (let ((inhibit-read-only t))
       (erase-buffer)))

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 12 Apr 2026 21:33:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 12 17:33:07 2026
Received: from localhost ([127.0.0.1]:52435 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wC2QT-0005bU-GO
	for submit <at> debbugs.gnu.org; Sun, 12 Apr 2026 17:33:07 -0400
Received: from mout.gmx.net ([212.227.17.22]:39097)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wC2QO-0005aE-TE
 for 80499 <at> debbugs.gnu.org; Sun, 12 Apr 2026 17:33:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1776029561; x=1776634361; i=stephen.berman@HIDDEN;
 bh=ii2k4xhkvuSPfvok43V7xzflHDtDMAfu2M4QqarwCCA=;
 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=cvQ4PuoMEh+e8b8/Alq6DseUtEEqWDs9az7PBBFpbFNZg+NHWzQ6ZaiFtoxq623q
 /qnSgs52fGlzp4fO5EtuTE2rQkDrkUgq6IjDbKF9AmfFNfpv2TMjxXKL7YbvhkIHY
 YEmjrvtO1lsd13d2nnr/1/y5mGoNr39Rvp+zhUZzFODoTkAR2n3K2CQITK9sD8DzA
 0/Lv/EnRLury56z6O4Y3n25FAG8GMt7KDmz+X//B8G1QmOSFMlyl89vD5mfYyBZ+F
 rxDDbB4XnlUQDgQSu19rpdLv4dZ9zsju+z+cOSa8wWbqiAtz0d0RVAkzEpI9vaYPE
 wD/Tqf6kfsudryCdsA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mj8qj-1vXlW93iKb-00ZvnS; Sun, 12
 Apr 2026 23:32:40 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87cy04az6e.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <86ika85isn.fsf@HIDDEN> <87tstsyyyj.fsf@HIDDEN>
 <863411u0jx.fsf@HIDDEN> <87zf39skk2.fsf@HIDDEN>
 <86wlydsk77.fsf@HIDDEN> <87v7dxsj0j.fsf@HIDDEN>
 <87cy04az6e.fsf@HIDDEN>
Date: Sun, 12 Apr 2026 23:32:39 +0200
Message-ID: <87y0ir3lvs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:qPTvUXiaeRcn8uMDQDjUFlrW5AFVJb5BmL8jvxvVDpCcD8jmgSf
 dsDcgHDefOu0CUaaRixH2v4C/4g5/0YC8J11y8x4SgW7isyN7CnP8ccZEJ20+I9hEZeul1R
 9QxeZxcd4Z3OzNvEyqLwEiS+fAFpoOgdpNjvMeWNFVpLrCTqA04cPJDqJWdVSSRwd1LyALa
 naAWaDTq1Bi0+g8zzzb1Q==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:Tx/ocYUrlNA=;LKAIaHOnT7ehtzPn+AAdalfyJRL
 +XHkOtFrYF8g6jOfpfvOf/x++yOeZqlXgTsIc2z8vrmOcY70ik65EsjpGurr+pHeNOzBv8Sjk
 NOB+0CMEwcAqx8bgj1brPukY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
 Cjwy09nFmQPubAxCROIa65L8LcBMSBQAVyLUr51t2ByQnQUzY+3OcbwilMPX5s+96oO9W5W7j
 SQnRqc9GGeMSXxx+/Olq/u5NzTN4Zncu5O+BYeyA78E7sYgjknuOYHa25q20ygUa+6Xh+M20i
 rzdvggui5Vsytyb0u4OHTqJdkEKWI8IHMN0dLvSJgpzhGjV4oCG6klc2JTj2ww3oini181WJ3
 ZU4HFrLzGqFl02Cd2QULTMRiYCuEmdUE5V4fsF+lEHQTC62g4SLvI/WCf
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, jm@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

On Sun, 12 Apr 2026 20:23:37 +0300 Juri Linkov <juri@HIDDEN> wrote:

>> Thanks, now pushed.
>
> Sorry, but there is a regression after commit
> 3e5697864ca5866345763f8baff132bb539a7833.
>
> 0. emacs -Q
> 1. C-x d /tmp RET
> 2. RET -- to visit a subdir
> 3. q -- to quit subdir to go back to /tmp
> 4. point jumps to the top of the /tmp Dired buffer
>
> Looking at the commit it seems that this regression
> affects only 'temporary-file-directory'?
> But I accidentally discovered it just in /tmp.

Sorry about that; does the attached patch fix the regression for you?

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: dired-readin-insert patch
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/dired.el b/lisp/dired.el
index 3a5a9a3a525..8ba863635c2 100644
=2D-- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1628,14 +1628,18 @@ dired-readin-insert
       (let ((tmpbuf (dired-find-buffer-nocreate temporary-file-directory)=
))
         (when tmpbuf
           (with-current-buffer tmpbuf
-            (widen)
-            (goto-char (point-min))
-            (when (search-forward (file-name-base dired--ls-error-file) n=
il t)
-              ;; The call chain of `dired-remove-entry' requires non-nil
-              ;; `dired-subdir-alist', but here it is nil, so we set it.
-              (let ((dired-subdir-alist `((,temporary-file-directory
-                                           . ,(point-min-marker)))))
-                (dired-remove-entry dired--ls-error-file)))))))))
+            (save-excursion
+              (save-restriction
+                (widen)
+                (goto-char (point-min))
+                (when (search-forward
+                       (file-name-base dired--ls-error-file) nil t)
+                  ;; The call chain of `dired-remove-entry' requires
+                  ;; non-nil `dired-subdir-alist', but here it is nil,
+                  ;; so we set it.
+                  (let ((dired-subdir-alist `((,temporary-file-directory
+                                               . ,(point-min-marker)))))
+                    (dired-remove-entry dired--ls-error-file)))))))))))
=20
 (defun dired-align-file (beg end)
   "Align the fields of a file to the ones of surrounding lines.

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 12 Apr 2026 17:27:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 12 13:27:49 2026
Received: from localhost ([127.0.0.1]:48581 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wByb6-0000mE-VB
	for submit <at> debbugs.gnu.org; Sun, 12 Apr 2026 13:27:49 -0400
Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:39900)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wByb4-0000ll-6R
 for 80499 <at> debbugs.gnu.org; Sun, 12 Apr 2026 13:27:47 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4ftyCp65Vyz9tHp;
 Sun, 12 Apr 2026 19:27:34 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1776014854;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=CMKXojvLqK7+zys1oShWM7tlYuPP3A8VVYNM8jOxrJ8=;
 b=o8KFNQQZFIjshmtsrFS2zSHvomRvIjFW7/pcBEEl5vCtp/APvuNub2QQSgvyAl1ZQOsCiQ
 2Zzy2NEBBl4ta6Aw9PyC0/3anye0qWXee41OiHu82wu67BAXozuP2Fc7q1KFiYNQ8z0mdq
 Zj/MDQuAEf9le7qLHlRY9Ks6MsNGeRc/19t92adYSWG6aMDp9ZgtXc/f7U5ZCNJwwkODjv
 eEgVfaR5P/yxue6o/MLoP4pT06bYiUz0tIftdzPvwIseQSWm/m6BDfP3+OAD5wOVVF6RfP
 fUfGH80b4v/yirslEHPT1S73yGep+ppNoBnN2Ao1zMA68bRiM7pqGBPQ82qn0A==
From: Juri Linkov <juri@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87v7dxsj0j.fsf@HIDDEN>
Organization: LINKOV.NET
References: <m1ms0vkumq.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <87tstuwnke.fsf@HIDDEN>
 <87y0j4z24l.fsf@HIDDEN> <86ika85isn.fsf@HIDDEN>
 <87tstsyyyj.fsf@HIDDEN> <863411u0jx.fsf@HIDDEN>
 <87zf39skk2.fsf@HIDDEN> <86wlydsk77.fsf@HIDDEN>
 <87v7dxsj0j.fsf@HIDDEN>
Date: Sun, 12 Apr 2026 20:23:37 +0300
Message-ID: <87cy04az6e.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, jm@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 (-)

> Thanks, now pushed.

Sorry, but there is a regression after commit
3e5697864ca5866345763f8baff132bb539a7833.

0. emacs -Q
1. C-x d /tmp RET
2. RET -- to visit a subdir
3. q -- to quit subdir to go back to /tmp
4. point jumps to the top of the /tmp Dired buffer

Looking at the commit it seems that this regression
affects only 'temporary-file-directory'?
But I accidentally discovered it just in /tmp.




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

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


Received: (at 80499) by debbugs.gnu.org; 11 Apr 2026 15:30:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 11 11:30:22 2026
Received: from localhost ([127.0.0.1]:50463 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wBaHq-0000rU-Hh
	for submit <at> debbugs.gnu.org; Sat, 11 Apr 2026 11:30:22 -0400
Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]:32925)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jm@HIDDEN>) id 1wBaHl-0000pp-4D
 for 80499 <at> debbugs.gnu.org; Sat, 11 Apr 2026 11:30:16 -0400
Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46])
 by mailfhigh.stl.internal (Postfix) with ESMTP id DCEB57A0090;
 Sat, 11 Apr 2026 11:30:06 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-06.internal (MEProxy); Sat, 11 Apr 2026 11:30:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm2; t=1775921406; x=1776007806; bh=z/nATvlPVr
 Te1FMnZGcqGwgdT25rQN1iZAaXuVU195Q=; b=YQVG6ZSUdJVD/yvuXHlgq7HChd
 GyOXgru+U/F4icCYNdO6hWhhzMJq+OLi9UOy+ooAe28BPxB60cgMRn9k8JyX2/dk
 NPaOCycqh1S85PbuQ+CGcBknE9tjsLNn55invkcYCBgZimDT1VACz+cBnvYdgu9G
 SJwRmDbP7RaaAa4o63q0RDK5AHuoTADwnrONnsQYbhq+FFvl9XhI+GnLnWcOmcp8
 hIuoTW6DIa6d6VEQXbXXDHqsrFc8S1Ie7Alvtv7D1LrSGHWZ2YNh5/RgGaqlaKeO
 abNOCEjzBmMK6jR0SqsU87EC40m+DxZIxRpe38fyfreqKWiZ45JcbGvk8QuQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
 1775921406; x=1776007806; bh=z/nATvlPVrTe1FMnZGcqGwgdT25rQN1iZAa
 XuVU195Q=; b=a99fHpDM38JjT68MEQrlxQfjAmfEZqswBzmwl4d9xkI4ybYi+8c
 IkEczOZaPVrFWc71GRpogIPLS2Bpki8SC3CMc87GuIW75JGBWuTEaFcMPsVHvBO4
 DA3kgRBloegft8LMjKpu7ZjhCmNBmUuN6/f7R1kdpLNC9dHtNMOYVzNPImViLKf2
 a/1d1zhpUGFR+DFZVIOXKAomFGBT9Jc9liHZP5wt5hZdVwsAR5zZtZsFei6B2jia
 bsxoZIB/ftIIgoUBBkcvWIZqrNKp1cAtRDrps5bGSxYhWSsrrvGTHK4Ms8Jd9Akg
 BoHL+bdxXHfSEBqt0swruUX4MVtPtQzfUOw==
X-ME-Sender: <xms:_mjaaaZW7JYzii9w0SaEmFKqk6uBDbRfoLnUxruAjrpOdd06tKX93Q>
 <xme:_mjaaTaoFUZOD1mdL9C5lYcP_Qz1yGwTuwTiUq0n8zXR6gH8DflapVAcwA97Lco6k
 A3jvCiQx2-eaH90S4fbmlj4Rm-oGrqSoyu7p2KKrr05GM1K9HbNVCwR>
X-ME-Received: <xmr:_mjaaSkZambcS2bsYM0S84z1flcxYlL4VjQ4Fa0HNk9AWUbYx2ugGw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdefvdejvdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefhvfevufgjfhffkfgfgggtsehmtderredtreejnecuhfhrohhmpehjohhhnhcumhhu
 hhhluceojhhmsehpuhgsrdhpihhnkheqnecuggftrfgrthhtvghrnhepuedtffeifeeuvd
 dvhfdtvdefgfdvffeguddvffdugefghfeuteehgfegtdetfeetnecuvehluhhsthgvrhfu
 ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhmsehpuhgsrdhpihhnkhdpnh
 gspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkedtgeel
 leesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehsthgvphhhvghnrdgsvg
 hrmhgrnhesghhmgidrnhgvth
X-ME-Proxy: <xmx:_mjaaXzVbdWlY-eMtT4E8UtoHfvgTkvTCABpMulN2I3IeHHhVlnWVA>
 <xmx:_mjaaYPLp81ddBMz04uMgwOtXAtS0DP7Y96IHwwR6BtMd-UlSpmC7w>
 <xmx:_mjaaTREpSWBPS8nMNbq-vVPVAp_Q4ybl8WvMwvR-Qvl-VZNI8YqNw>
 <xmx:_mjaaeZ0KVbWfxNRd7mBfOiZdmh-b37N_PRPN2lrvW8ZTfvbs5Ir3w>
 <xmx:_mjaaVhLilbuIIRJAvYPexVK3QW6Dc7peV0iYhqlfbKzNqo0iyLoxXMn>
Feedback-ID: i74194916:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 11 Apr 2026 11:30:04 -0400 (EDT)
From: john muhl <jm@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87fr5ahq3v.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN> <87mrzjah2x.fsf@HIDDEN>
 <87fr5ahq3v.fsf@HIDDEN>
Date: Sat, 11 Apr 2026 10:30:01 -0500
Message-ID: <87y0ito6py.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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

> On Fri, 03 Apr 2026 16:07:18 -0500 john muhl <jm@HIDDEN> wrote:
>
>> In the dired buffer the newline in the file name is replaced with ?:
>>
>>   /root:
>>   drwx------    4 root     root             7 Apr  3 15:34 .
>>   drwxr-xr-x   21 root     root            21 Apr  3 15:08 ..
>>   -rw-------    1 root     root          1159 Apr  3 15:36 .ash_history
>>   drwx------    3 root     root             3 Apr  3 15:34 .emacs.d
>>   -rw-r--r--    1 root     root             0 Apr  3 15:33 a?b
>>   drwxr-xr-x   25 root     root            55 Apr  3 15:19 emacs
>
> But this puzzles me.  IIUC in a system using GNU ls Dired can (and by
> default does) display a newline in a file name as a literal newline
> (i.e., the file name extends over at least two lines in Dired).  So why
> is it displayed as '?' in your Dired?  Is the character at that position
> in the Dired buffer really ASCII 63?  And when you invoke 'ls -al /root'
> in the shell, is the file name containing the newline also displayed a
> 'a?b', or if not, how is it displayed?  And are both the Dired and the
> shell listings of that directory otherwise complete and correct?

Yeah ls in a shell shows the ? also, describe-char confirms it is
ASCII 63 and the listing is otherwise correct in the shell and
dired.

  # ls -al /root
  total 9
  drwx------    4 root  root     7 Apr  4 14:42 .
  drwxr-xr-x   21 root  root    21 Apr  3 15:08 ..
  -rw-------    1 root  root  1872 Apr 11 14:45 .ash_history
  drwx------    3 root  root     3 Apr  3 15:34 .emacs.d
  -rw-------    1 root  root    26 Apr  3 15:29 .lesshst
  -rw-r--r--    1 root  root     0 Apr  4 14:42 a?b
  drwxr-xr-x   25 root  root    55 Apr 11 14:42 emacs

>> Enabling d-a-t-b-s removes all the entries from the buffer:
>>
>>   /root:
>
> Enabling d-a-t-b-s results in the call chain dired--toggle-b-switch ->
> dired-revert -> dired-readin -> erase-buffer, followed by
> dired-readin-insert -> dired-insert-directory -> insert-directory, which
> via call-process invokes 'insert-directory-program' i.e. 'ls', and after
> returning to 'dired-insert-directory' the line "/root:" is inserted.  So
> it looks like 'ls' failed and if so the buffer *ls error* containing the
> error message should pop up.  Do you see that and if so, what is the
> error?

It didn=E2=80=99t popup but it does get created and complains about -b:

  /bin/ls: unrecognized option: b
  BusyBox v1.37.0 (2026-01-10 15:38:28 UTC) multi-call binary.
  Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...

With ee9b2db1cf0 the files and wdired tests pass.


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=dired-tests.log

Running 22 tests (2026-04-11 13:49:23+0000, selector `(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))')
   passed   1/22  dired-autoload (0.000113 sec)
ls does not support --dired -N; see `dired-use-ls-dired' for more details.
Marking matching files...
Checking /root/emacs/test/bug22694/test
1 matching file marked
   passed   2/22  dired-test-bug22694 (0.053111 sec)
Copy: 1 of 1
Copy: 1 file done
Copy: 1 of 1
Copy: 1 file done
   passed   3/22  dired-test-bug25609 (0.008928 sec)
Saved pos: ((#<buffer emacs-test-rpYo8s-dired> nil 4) nil nil)
Saved pos: ((#<buffer emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4) ((#<window 1 on emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4)) nil)
Saved pos: ((#<buffer emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4) ((#<window 1 on emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4)) nil)
Saved pos: ((#<buffer emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4) ((#<window 1 on emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4)) nil)
Saved pos: ((#<buffer emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4) ((#<window 1 on emacs-test-rpYo8s-dired> "/tmp/emacs-test-rpYo8s-dired/test-subdir" 4)) nil)
   passed   4/22  dired-test-bug27243-01 (0.009782 sec)
   passed   5/22  dired-test-bug27243-02 (0.011019 sec)
   passed   6/22  dired-test-bug27243-03 (0.020627 sec)
   passed   7/22  dired-test-bug27631 (0.004055 sec)
   passed   8/22  dired-test-bug27940 (0.038883 sec)
   passed   9/22  dired-test-bug27968 (0.008839 sec)
   passed  10/22  dired-test-bug59047 (0.007043 sec)
   passed  11/22  dired-test-bug7131 (0.088700 sec)
   passed  12/22  dired-test-directory-files (0.003685 sec)
   passed  13/22  dired-test-directory-files-and-attributes (0.002991 sec)
   passed  14/22  dired-test-filename-with-backslash-n (0.007844 sec)
Warning (dired): Literal newline in file name.
This Dired buffer displays a file name containing a literal newline character.
Executing Dired operations on files displayed this way may fail and signal an
error.  To avoid this you can temporarily change the display for all Dired
buffers, so that newlines in file names appear as "\n", by typing `M-:' and
entering `(setopt dired-auto-toggle-b-switch t)' in the minibuffer.  To change
the display only for this Dired buffer click or press RETURN `here'.
See `(emacs) Dired Enter' for other alternatives and more information.
Test dired-test-filename-with-newline-1 backtrace:
  search-backward("\n" 246 nil nil)
  apply(search-backward ("\n" 246))
  #f(compiled-function () #<bytecode -0x21c629773d2a60f>)()
  #f(compiled-function () #<bytecode -0x3b2655893eba18f>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x3b2655893eba18f
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name dired-test-filename-with-newline-1 :d
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test dired-test-filename-with-newline-1 condition:
    (search-failed "\n")
   FAILED  15/22  dired-test-filename-with-newline-1 (0.007252 sec) at lisp/dired-tests.el:661
Directory has changed on disk; type g to update Dired
Test dired-test-filename-with-newline-2 backtrace:
  signal(error ("No file on this line"))
  error("No file on this line")
  dired-move-to-end-of-filename()
  #f(compiled-function () #<bytecode -0xdf62d1f573eb6ba>)()
  #f(compiled-function () #<bytecode -0x3b2655893eba18f>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x3b2655893eba18f
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name dired-test-filename-with-newline-2 :d
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test dired-test-filename-with-newline-2 condition:
    (error "No file on this line")
   FAILED  16/22  dired-test-filename-with-newline-2 (0.006693 sec) at lisp/dired-tests.el:696
Test dired-test-hide-absolute-location-disabled backtrace:
  signal(error ("Attempt to insert a non-directory: /root/emacs/test/l
  error("Attempt to insert a non-directory: %s" "/root/emacs/test/lisp
  dired-insert-subdir("/root/emacs/test/lisp/dired-resources/filename-
  #f(compiled-function () #<bytecode -0x16250d671089d1c6>)()
  #f(compiled-function () #<bytecode -0x3b2655893eba18f>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x3b2655893eba18f
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name dired-test-hide-absolute-location-dis
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test dired-test-hide-absolute-location-disabled condition:
    (error
     "Attempt to insert a non-directory: /root/emacs/test/lisp/dired-resources/filename-with-newline/play/")
   FAILED  17/22  dired-test-hide-absolute-location-disabled (0.004459 sec) at lisp/dired-tests.el:552
   passed  18/22  dired-test-hide-absolute-location-enabled (0.009208 sec)
   passed  19/22  dired-test-ls-error-message (0.007993 sec)
   passed  20/22  files-tests-bug-50630 (0.001756 sec)
   passed  21/22  files-tests-insert-directory-shows-files (0.001864 sec)
   passed  22/22  files-tests-insert-directory-shows-free (0.001531 sec)

Ran 22 tests, 19 results as expected, 3 unexpected (2026-04-11 13:49:23+0000, 0.542401 sec)

3 unexpected results:
   FAILED  dired-test-filename-with-newline-1
   FAILED  dired-test-filename-with-newline-2
   FAILED  dired-test-hide-absolute-location-disabled


--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 11 Apr 2026 13:51:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 11 09:51:13 2026
Received: from localhost ([127.0.0.1]:47846 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wBYjt-0006Xp-Jv
	for submit <at> debbugs.gnu.org; Sat, 11 Apr 2026 09:51:12 -0400
Received: from mout.gmx.net ([212.227.15.15]:59925)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wBYjq-0006Wn-3c
 for 80499 <at> debbugs.gnu.org; Sat, 11 Apr 2026 09:51:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775915453; x=1776520253; i=stephen.berman@HIDDEN;
 bh=ZfV1eVHmpa7lY5WGxdpqI75rRI228nDNNV8a8fToJPU=;
 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=Pp3oh1Q+BnCVtMuU920zQCisXIP3x+CAhMWG7g0S9GrqCfqJLP7hQNsq0MOtzXbB
 17gWg0xhMfmDLEWshoT8eJkgLXHFnlIwyOhTNGpqEmI+ALtaPlG+wxfISI0aqgryB
 /Ij8WS8oxdtMjLOYTgH0u8aZDaacjcwD9OgsmEXaA/ywKmoUeR9Yfk/VnxNWRrvLq
 pSii5+/DmDGEQ7WpjK0OI42rod7bY4e9P/JFmHcf6MwqAxjSztDGi7r872lMSUB7i
 ZdBdPA2+wMCYrK04LGUANN9JzbKfH2IXDxc6OSakrD3qnV6LZLCjFBLut1nrQ4i/e
 Xo/C/6susykBGyTDhA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MOiDd-1vo77q2Uzn-00NbAs; Sat, 11
 Apr 2026 15:50:53 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86wlydsk77.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <86ika85isn.fsf@HIDDEN> <87tstsyyyj.fsf@HIDDEN>
 <863411u0jx.fsf@HIDDEN> <87zf39skk2.fsf@HIDDEN>
 <86wlydsk77.fsf@HIDDEN>
Date: Sat, 11 Apr 2026 15:50:52 +0200
Message-ID: <87v7dxsj0j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:cCXRwa57DIcpmtBo+QjTUXEozLhZvrJtHu5hVzwo2Gjv/7oIYjz
 wrCgv8lzT4rNDCHfRD0gefyae4NPqtmfJm+Wca86AJEmsXe3fYT5f4MFhBdd4AvZv5G8hrj
 2g8Oef/FPQirONtTelM13+Vi50XdYNseTjOW5NYztTRXxuMVOmFeYm30DiqjF8plpblAaG9
 i8kxM5tN4rIQ4EroSUjCw==
X-Spam-Flag: NO
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nNWekp2YXZDo
 yaL1FsS1Ft/jYG1p5rcIRSH7CQ2h8f7aRns6AoJDwjS1YN7CXSYEzNM8o7Endgaj8tSfZCQQ/
 VVx7h6Kkp0SBVrbW7BCPRAZL4A/l5aJlUZ+tSCWuhfY2BxMNtSxv4rsCv1sTBli8Cy09lROdr
 R+QGgytspLgpojAPMnz7wjeMg2IpEgUHp2yuJEz5jOuX5zkktFe+XoLIamFbbkA/V/bGwmfBO
 +Gtpo9dnIuUOtmyLW6iUYXZRTah0O6Kar2kQCUPUUEQppo3U43rU6WbwZ2GoYEzbmRUR6SaBu
 Pa
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, jm@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 (-)

On Sat, 11 Apr 2026 16:25:16 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: jm@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Sat, 11 Apr 2026 15:17:33 +0200
>>=20
>> > This problem returned with the latest changes:
>> >
>> >   Test files-tests-file-name-non-special-insert-directory condition:
>> >       (ert-test-failed
>> >        ((should (equal (funcall ls-err nospecial-dir) (buffer-string)=
))
>> > 	:form
>> > 	(equal
>> > 	 "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.specia=
l': No such file or directory\n"
>> > 	 "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.s=
pecial': No such file or directory\n")
>> > 	:value nil :explanation
>> > 	(arrays-of-different-length 96 101
>> > 				    "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.=
special': No such file or directory\n"
>> > 				    "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0=
ME4Y.special': No such file or directory\n"
>> > 				    first-mismatch-at 0)))
>> >      FAILED   81/121  files-tests-file-name-non-special-insert-direct=
ory (0.088034 sec) at lisp/files-tests.el:1020
>>=20
>> Sigh; it's too bad you didn't check when I posted the "corrected" patch=
.
>
> Sorry, I don't always have time to test uninstalled patches, and with
> the current snafu of the list server I'm never sure whether an email
> message I see is current or an old one.
>
> You must keep in mind that I have a gazillion other Emacs-related
> issues on my hands at any given moment.

I fully understand; I didn't intend to accuse you of dereliction of
duty, but was basically bemoaning that the world isn't more perfect ;-)

>> I misunderstood the reason for the failure as due to hardcoding 'ls'
>> instead of using `insert-directory-program' and thinking that the value
>> of latter on your system is "/bin/ls".  Can you please check and
>> hopefully confirm that with the attached patch the tests now pass on
>> your system?  If they do, then I'll push the (now really) corrected
>> patch.  Thanks.
>
> Yes, with the patch the problem is gone.  Thanks.

Thanks, now pushed.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 11 Apr 2026 13:25:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 11 09:25:51 2026
Received: from localhost ([127.0.0.1]:47396 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wBYLK-0003Xg-SB
	for submit <at> debbugs.gnu.org; Sat, 11 Apr 2026 09:25:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39056)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wBYLD-0003WR-8X
 for 80499 <at> debbugs.gnu.org; Sat, 11 Apr 2026 09:25:43 -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 1wBYL6-0001Fh-LI; Sat, 11 Apr 2026 09:25:32 -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=oFVg+nJQLNEbC3c24oUjn41qJZB3Fg5hwetLHgdURzo=; b=fLdQPpvzhDSg
 D/pASQr4LljkS6Xa6DJDitGmnWWlB/fTd9p3e/V7TqXFwHqzQ77wEn4pYCZZ1qSzU5/hcVUMWl3qa
 Fc1sJMbqxPj0w0oe3ff33OHjRlMdFQGON3BTAi/xBhc+izg1aggpwImNZzkNV4a+mmVU8Q33N3BkI
 0L7hTIMkZ3kj+41cEiFoqDPRISyRtPTpAwtFIzs6cuS/5sOGkIsr/c8jYOke7Tc3EMqzCwLZ+z2uT
 3wk9Y3HCRIJjo8T5bMITnIW1rMknFf7o61cIdS9XWwOa8TTsspYmAJNvdltffh5UiliYfy5BtrCFp
 WZugumNQz198wDr5g7H+4A==;
Date: Sat, 11 Apr 2026 16:25:16 +0300
Message-Id: <86wlydsk77.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87zf39skk2.fsf@HIDDEN> (message from Stephen Berman on Sat, 11
 Apr 2026 15:17:33 +0200)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <86ika85isn.fsf@HIDDEN> <87tstsyyyj.fsf@HIDDEN>
 <863411u0jx.fsf@HIDDEN> <87zf39skk2.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, jm@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: jm@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Sat, 11 Apr 2026 15:17:33 +0200
> 
> > This problem returned with the latest changes:
> >
> >   Test files-tests-file-name-non-special-insert-directory condition:
> >       (ert-test-failed
> >        ((should (equal (funcall ls-err nospecial-dir) (buffer-string)))
> > 	:form
> > 	(equal
> > 	 "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n"
> > 	 "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n")
> > 	:value nil :explanation
> > 	(arrays-of-different-length 96 101
> > 				    "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n"
> > 				    "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n"
> > 				    first-mismatch-at 0)))
> >      FAILED   81/121  files-tests-file-name-non-special-insert-directory (0.088034 sec) at lisp/files-tests.el:1020
> 
> Sigh; it's too bad you didn't check when I posted the "corrected" patch.

Sorry, I don't always have time to test uninstalled patches, and with
the current snafu of the list server I'm never sure whether an email
message I see is current or an old one.

You must keep in mind that I have a gazillion other Emacs-related
issues on my hands at any given moment.

> I misunderstood the reason for the failure as due to hardcoding 'ls'
> instead of using `insert-directory-program' and thinking that the value
> of latter on your system is "/bin/ls".  Can you please check and
> hopefully confirm that with the attached patch the tests now pass on
> your system?  If they do, then I'll push the (now really) corrected
> patch.  Thanks.

Yes, with the patch the problem is gone.  Thanks.





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

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


Received: (at 80499) by debbugs.gnu.org; 11 Apr 2026 13:17:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 11 09:17:53 2026
Received: from localhost ([127.0.0.1]:47255 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wBYDe-0002ch-Di
	for submit <at> debbugs.gnu.org; Sat, 11 Apr 2026 09:17:53 -0400
Received: from mout.gmx.net ([212.227.17.22]:58011)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wBYDa-0002bK-Mu
 for 80499 <at> debbugs.gnu.org; Sat, 11 Apr 2026 09:17:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775913454; x=1776518254; i=stephen.berman@HIDDEN;
 bh=zXl59cdtCj1vEowG48NyYVY/YZ3ZPRltUKkeHmkBulI=;
 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=Z2ZUphtm3J6wEqRAP03zlpLyRe64GPE4QR6jyrHXcwsSyDe5NwwIK/n9qzg6nkyB
 aMSY4qqh0dOIqzwjQPyLWqnFuXHf2zVYLPiGg4AXZVvzHq2xqLDTV9kehGxsWQEAk
 owqoxspFB4ZGNT5tcPCJWHpeIYVH3ufCJk+tAhLm9QVG3Lr/kox/Of7rrRYKnT1H7
 kyxWwbh5ELEU9S/bjSeHOYC8AtmTFOpXyQ1VpJzc6ksRLXGREXaWiAoE4XyzqToW1
 x+wdqOLhHPtuQJnQEPInMXy8v2ljZl+ZqVvigkkNkHpkCmvrI0EWxnB5qIy2He70m
 5Kp/+ZAo9n1e+h0rpA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N6bjy-1vNcaB45Gg-0109I7; Sat, 11
 Apr 2026 15:17:34 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <863411u0jx.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <86ika85isn.fsf@HIDDEN> <87tstsyyyj.fsf@HIDDEN>
 <863411u0jx.fsf@HIDDEN>
Date: Sat, 11 Apr 2026 15:17:33 +0200
Message-ID: <87zf39skk2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:lalwJMZPOAQmludswpdcu3ArbSFMeHzI339mhoIhbBs8ezXynJe
 NFbpFmLOqLSIh2Pb+IwIKGpxZZM/E3jkoFfvs70mXtrSY9w1kt8l2K62aQ072WRgu4bwPaB
 zzM8gSFE+/lh3diMOrcSAsLG6tSTVJETwr1FChStGBvudlGoimmP6VZ1FxsU3e0VgdmTA/Q
 iybCVIpIZi01cJHj3CMcQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:+sDeDuwxqxo=;H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aNQ7icwkNDmDXnQEpCp2L
 Mpm7PscWi8kZvyBWiwnjQKqDMzUmy2Yht4xoQoteGJT4/pD3cXaq5+YMgN9cdQdJbTrnfMl8F
 09MQdOiGLnrVdM9iksxrG7RxiwuRcCXdVt/r+io4+cgGXo+F4zt/WLcmhS4nI/cf+Jh64k2nN
 kDKhTnpa858Y09x6iS24lNC3STXXbSzCnFAa3lEJWL6rq5C4grJ1F64VD6jEGsIXPKOg02sm9
 G0dH5gCoHnefGc5aK+GuGkb08prLKigq2gTUwSQYAUdrRcPYU+PzdXj2veOs0lN/HliFHZx2z
 A0zyYUn2aoc8JyrIq7FOb9EkhaAw1S3ALP7cNV4bFqHZqem+4xKX6gboS
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, jm@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
Content-Transfer-Encoding: quoted-printable

On Sat, 11 Apr 2026 15:46:42 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: jm@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Fri, 03 Apr 2026 15:07:16 +0200
>>=20
>> > The test fails because of that:
>> >
>> >   Test files-tests-file-name-non-special-insert-directory condition:
>> >       (ert-test-failed
>> >        ((should (equal (funcall ls-err nospecial-dir) (buffer-string)=
))
>> > 	:form
>> > 	(equal
>> > 	 "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.specia=
l': No such file or directory\n"
>> > 	 "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.s=
pecial': No such file or directory\n")
>> > 	:value nil :explanation
>> > 	(arrays-of-different-length 96 101
>> > 				    "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.=
special': No such file or directory\n"
>> > 				    "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdq=
vjuw.special': No such file or directory\n"
>> > 				    first-mismatch-at 0)))
>>=20
>> Oops, another thinko, sorry.  With the attached corrected patch, you
>> should get no failure (I hope!).
>
> This problem returned with the latest changes:
>
>   Test files-tests-file-name-non-special-insert-directory condition:
>       (ert-test-failed
>        ((should (equal (funcall ls-err nospecial-dir) (buffer-string)))
> 	:form
> 	(equal
> 	 "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special':=
 No such file or directory\n"
> 	 "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.spec=
ial': No such file or directory\n")
> 	:value nil :explanation
> 	(arrays-of-different-length 96 101
> 				    "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.spe=
cial': No such file or directory\n"
> 				    "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4=
Y.special': No such file or directory\n"
> 				    first-mismatch-at 0)))
>      FAILED   81/121  files-tests-file-name-non-special-insert-directory=
 (0.088034 sec) at lisp/files-tests.el:1020

Sigh; it's too bad you didn't check when I posted the "corrected" patch.
I misunderstood the reason for the failure as due to hardcoding 'ls'
instead of using `insert-directory-program' and thinking that the value
of latter on your system is "/bin/ls".  Can you please check and
hopefully confirm that with the attached patch the tests now pass on
your system?  If they do, then I'll push the (now really) corrected
patch.  Thanks.

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: patch for ls error message tests
Content-Transfer-Encoding: quoted-printable

diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 35795825365..f5f92fd6485 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -767,8 +767,11 @@ dired-test-ls-error-message
         (should (get-buffer-window errbuf))
         (should-not (equal (buffer-name buf) (file-name-nondirectory name=
)))
         (with-current-buffer errbuf
-          (should (equal (funcall ls-err (file-name-nondirectory name))
-                         (buffer-string))))
+          ;; The error message may report e.g. "/bin/ls" even though the
+          ;; value of `insert-directory-program' is "ls", so we can't
+          ;; test with `equal'.
+          (should (string-match-p (funcall ls-err (file-name-nondirectory=
 name))
+                                  (buffer-string))))
         (kill-buffer errbuf))
       (delete-directory dir t))))
=20
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 7b049af7070..037e354d841 100644
=2D-- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -1048,8 +1048,11 @@ files-tests-file-name-non-special-insert-directory
                         (concat (car errlist) fn (cadr errlist))))))
         (should errbuf)
         (with-current-buffer errbuf
-          (should (equal (funcall ls-err nospecial-dir)
-                         (buffer-string))))
+          ;; The error message may report e.g. "/bin/ls" even though the
+          ;; value of `insert-directory-program' is "ls", so we can't
+          ;; test with `equal'.
+          (should (string-match-p (funcall ls-err nospecial-dir)
+                                  (buffer-string))))
         (kill-buffer errbuf)))))
=20
 (ert-deftest files-tests-file-name-non-special-insert-file-contents ()

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 11 Apr 2026 12:47:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 11 08:47:01 2026
Received: from localhost ([127.0.0.1]:46603 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wBXjo-0007aj-H4
	for submit <at> debbugs.gnu.org; Sat, 11 Apr 2026 08:47:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53850)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wBXjk-0007a3-6n
 for 80499 <at> debbugs.gnu.org; Sat, 11 Apr 2026 08:46:57 -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 1wBXjd-00007M-6M; Sat, 11 Apr 2026 08:46:50 -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=Tu6ZISrBqdjDywkN+xSBj8rpgfkLI8Fod4cMY8Yn1ZM=; b=nbOoduuwFH+P
 SyQN96RF5vxVm+ke81q+mmXtD3Bx8oynyGG5UssgxP8hQJOwaTGJPgOu1tlh33HbwqHvR6egOaoT6
 6mnmKgqrW6o0ZF5AiPPPItFIDG68L88dGCm9qzK9y826GfcdsXXPe1UrfzLPycyKx6RKks1uTCt4R
 DtL3xYuuo5ekZ+HLNWwYVtUrBJ6KGHAq6cGRa31qJe88buCp0/TL54KDwxQqinoWN1Rqay1rvaOCk
 6htX+sj9BIGxzGfp0mBH1fuXZsq0d9M292w3OpnqnnM/7/Bocwfi/B+g48OCzfKPBSRIu5t72qlcp
 omRwwbjVGRsHVVRLIvF44A==;
Date: Sat, 11 Apr 2026 15:46:42 +0300
Message-Id: <863411u0jx.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87tstsyyyj.fsf@HIDDEN> (message from Stephen Berman on Fri, 03
 Apr 2026 15:07:16 +0200)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <86ika85isn.fsf@HIDDEN> <87tstsyyyj.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, jm@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: jm@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Fri, 03 Apr 2026 15:07:16 +0200
> 
> > The test fails because of that:
> >
> >   Test files-tests-file-name-non-special-insert-directory condition:
> >       (ert-test-failed
> >        ((should (equal (funcall ls-err nospecial-dir) (buffer-string)))
> > 	:form
> > 	(equal
> > 	 "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n"
> > 	 "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n")
> > 	:value nil :explanation
> > 	(arrays-of-different-length 96 101
> > 				    "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n"
> > 				    "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n"
> > 				    first-mismatch-at 0)))
> 
> Oops, another thinko, sorry.  With the attached corrected patch, you
> should get no failure (I hope!).

This problem returned with the latest changes:

  Test files-tests-file-name-non-special-insert-directory condition:
      (ert-test-failed
       ((should (equal (funcall ls-err nospecial-dir) (buffer-string)))
	:form
	(equal
	 "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n"
	 "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n")
	:value nil :explanation
	(arrays-of-different-length 96 101
				    "ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n"
				    "/bin/ls: cannot access '/tmp/files-testsb5ds7M/files-testsW0ME4Y.special': No such file or directory\n"
				    first-mismatch-at 0)))
     FAILED   81/121  files-tests-file-name-non-special-insert-directory (0.088034 sec) at lisp/files-tests.el:1020




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

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


Received: (at 80499) by debbugs.gnu.org; 11 Apr 2026 10:18:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 11 06:18:48 2026
Received: from localhost ([127.0.0.1]:43152 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wBVQN-00041C-SJ
	for submit <at> debbugs.gnu.org; Sat, 11 Apr 2026 06:18:48 -0400
Received: from mout.gmx.net ([212.227.15.18]:39651)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wBVQK-00040J-MI
 for 80499 <at> debbugs.gnu.org; Sat, 11 Apr 2026 06:18:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775902715; x=1776507515; i=stephen.berman@HIDDEN;
 bh=4vl/N/wzUd0g1JXr+Sid0sYmPoH/z0AeJR+6SxisMgw=;
 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=L2MB4/+/ygr6IUfwnuvDkta/ZLhFfGYV9Wvkc3Z/uZSBi1rM6o4/fnLGyI3nKdfz
 jE1SjPxWJyNNa7LPnCWjBkDfcvfHdQ77OQr6LYCmiENdcIG/e/tSJEB9sBooPwkuT
 FUSxqPYE0x+Ub3RozmdYR5R6rmQae3aSFlJBZOLNWaqnQRwMO5MqmBdsGDS+9qBSe
 QrZtnpqbBE/97LvGOgEGIrItvEdRP4T/gBejbq6fpn2nLL7CASWOGKj4oYS0WDq32
 C+GDB4nW2N9oxuHGFgSsp5bhubqvile8FKD647IaqhGerlPDYWd3CNJdCD66bzbyn
 DfjObhJqtxwmQ/L4EA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Md6Qr-1vcAP22JLn-00bPAs; Sat, 11
 Apr 2026 12:18:35 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: john muhl <jm@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87fr5ahq3v.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <87tstuwnke.fsf@HIDDEN>
 <87y0j4z24l.fsf@HIDDEN> <87mrzjah2x.fsf@HIDDEN>
 <87fr5ahq3v.fsf@HIDDEN>
Date: Sat, 11 Apr 2026 12:18:34 +0200
Message-ID: <87jyudu7et.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:QxOF2BuTjIPLjOd061gnPZVNfLE8SMezW12ReXRla6Bdu/zV2rN
 HTgpyVI2NQSgTdlsojD1in/EYLBpQmTNiC3xyy4Vmn1+zMSAqgXVg/CcZQ5UboxvGzdj/Y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8NCUV7gTslZEy3MZyLkeRrCsFcbVw7A9
 UdLBGjI/ShTalHWtrHweyxn+aXtTBKhvpZ93nDaUkWjT0J8o2+6lHVNCvIXvH4l/1pUL6cNgz
 3XNIoCfvb/qTRyCnlEN0q8rr+En8l2VNWrsFCnAiE5AFcc0+1yDQ5HzdLhU4doTP/detiOfMW
 ycQcXQRyrrKT3IwNl1Qd4KynSnP5v/KCAhcYpSRUTj3UbEayncmwlSuqexhzf1y78PntbsW2V
 MiBbylpB3MnvapMhOmdijBl/g2BnVcFkPwDhmdrE0er0PR2FxhA9NmbIP9AhnPmYHHN5+QwI8
 +t2WB0hbBgApHX30LPM0ZdpSj0Ge1yFNxwpd7pfZcxsAnZHeB3fVyEa13Jx6JHfZXBBr2v1BU
 GGCsypDjlDNYI51zrXgCGxWA==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

On Sat, 04 Apr 2026 14:22:44 +0200 Stephen Berman <stephen.berman@HIDDEN> wrote:

> On Fri, 03 Apr 2026 16:07:18 -0500 john muhl <jm@HIDDEN> wrote:
>
>> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text
>> editors" <bug-gnu-emacs@HIDDEN> writes:
[...]
>>> Finally, the failure of the tests `dired-test-ls-error-message' and
>>> `files-tests-file-name-non-special-insert-directory' is evidently due to
>>> the actual error message emitted by your `ls' not matching the expected
>>> message according to the tests.  The attached patch attempts to make
>>> these tests more robust; does it prevent these test failures on your
>>> system?  And Eli, can you test the patch on your system where the error
>>> messages include "/bin/ls"?  Thanks.
>>
>> That patch fixed those here.
>
> Great!  (That patch had an error which made the test fail when the value
> of insert-directory-program is not 'ls' (so not a problem for your
> system); I posted a corrected patch in a followup.)

I've now pushed that patch to master with commit adfa1e969f8.  I'm still
leaving this bug open in the hope that John will respond to my questions
about the other issues he had and they can be resolved.

> Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 11 Apr 2026 09:50:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 11 05:50:43 2026
Received: from localhost ([127.0.0.1]:42240 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wBUzC-0000hC-8G
	for submit <at> debbugs.gnu.org; Sat, 11 Apr 2026 05:50:43 -0400
Received: from mout.gmx.net ([212.227.17.21]:52247)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1wBUz7-0000gQ-T4
 for 80499 <at> debbugs.gnu.org; Sat, 11 Apr 2026 05:50:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775901031; x=1776505831; i=stephen.berman@HIDDEN;
 bh=gkLrXp8Me6lpcphKNl2q8DPtRCZKGekhI3nW1vMDLK8=;
 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=XUpY3qNU/RX/C3yHCTO2MuosIA0t9gZUS8IOeIqo19dT8qydJNAiDsuttcDDy53r
 H3AyV2CqteutMV8l7ELeYTspGPhHW2vv1yVJjYLH+IPDyOhVd7w3+j5xRlzr5cwnu
 iFTTp113eDx9/Xc4Dj6uV7ewr2+zU7dYVeThpRKPbUqqAdk1Zyn04nLKCOEN3+U33
 cLIpqGtTO8slO11QZsWdakHACxeOZHWSayZfmITNmuLmaWiw/D9OoHHK//pYwn2Vv
 5183jHHuwBnFhrk4YTdLkr88LNfP1Md7g7HGQLuHCRmMOGoF1XGkEK8hrQWl7wfw/
 s1oxX3p92dt1TDvtTw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3bSt-1vTT6K1V1n-0188q6; Sat, 11
 Apr 2026 11:50:31 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87mrzkyw8g.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN> <87a4vohnjw.fsf@HIDDEN>
 <86wlysnsiu.fsf@HIDDEN> <877bqsrwmy.fsf@HIDDEN>
 <87fr5ebv6x.fsf@HIDDEN> <87ldf6o9gw.fsf@HIDDEN>
 <87a4vmb5pp.fsf@HIDDEN> <87fr5dxtv9.fsf@HIDDEN>
 <87mrzkyw8g.fsf@HIDDEN>
Date: Sat, 11 Apr 2026 11:50:30 +0200
Message-ID: <87qzolu8pl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:hOF5Hn2kpAhALfHEz5BlpyyzVJ0QnnV0IrtE0MRp0ycxXc9ZZB7
 CFWddgKBkYDdu8OiytSwHxMW4+c5nm7iQC2II+++yz/JdtMLvZwYEhMy7Qd06ljJAtrrFfk
 OsZ0yUX0MP4eAXHYAorU+shOJfSEeav5i7Kias42729YKwF4xwduKHNeaMpkoDPKRyh5/E2
 hG+d/H1+iPg3h39MDN7Wg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:s1D+cIgf1tc=;V4mPy+37Mh79+s1nmvdIn3znS7R
 Dd0KUCxuBNUxWNpjoqEMdJC319/ybs1rr6okWO8+qUzX68C9godAwLSR55793V/js1AuLxprS
 9MEzvjV3UuEY4+cAVGks1FPCqGofU6npzUYH9ayWiS55pNemfDGXuOIn/8Y5HfkW1//GWoBS9
 gy3OTi3c2RJQbadzCOsEfe1lzsG0TgVhXGtvxOODLYEFhlxLpIqSrAyuxusShcodEZLovo6Nc
 gXeOJR7nUiV5SJpZNITLQRHbX8Fv9Qfdc3aGzP4Wk99gcVGlcEqOFHs8ftjMh58574Oe1ILMH
 9cUIiootywgp59H4hi915+gnxkx8jdi7bTGKYaoXpv+7iOPlg5ZC8CLoxgzYVCL2vT2EUgplh
 CRCM4214J5hiwnKRBTWanMjmr0ne6w1Y5585ajX0MqT1KSE9nQRNLrF/2icTcZsvR++a7siDI
 TRgLfj/EK26KvO+mYOQnWst4JZa9MWnY3+YZMvqvGq8rUnsd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Jn0maMXwgoJRvtvT7DC1C7gJyYWfIR5v9sLi8wSTTJVTLqp9zx3ckldvBsS+5k6
 UlWvFwSm/+0AKsus23KbJS156G0pKDhLAQVxSUygPkVkU163osB38OnVfqyuumSFqjJo8jDTY
 CVtOCNIESp+AkCZk/9RxJh00b7sbvCkQedrMhNJhWVspY8pXVQh6u6g0CeZ2awfu0Ukcoqjh0
 pRzlZxiOd0y7A4warUHENo6proajcbUaxt/yZNYt0NJiAXpJuMRsrJ0GOlOrdD2y0HS1WxpW1
 o4MlURxpjPQnRHz7w4B2urhVcC/p77VhI3kOfuIFMtOUVgqzXI2O8kXPRMDQI7YJnH/V5K99O
 pRMO74nINm551kONO9N9WAwL+YEXI41qMWIyCNAUeDrYVIbupUAsDWgG2kQ2Uc4rEtVfpu5HG
 QlL42iQ9v9IiGgHO+UpF6oBcFgaXsEhVSe31mjg44lcZabz2OV3q9kAxsFPpt7kp0ZLHrHRit
 VbbNPe7ifRIniNgwudGGPmqX1TfEfDIuoPmEO561JzztJU7dgVfvWuQHqXNeyT7QwRMm+/UqQ
 EwYLg1dJax7YOBzt8e8Sb2Ljdi7Sj6Yaemd7BpdewJsweGqDdiiiS6elwoPOjHBekSSFMo/mK
 EyY4GnRvMr8HvMKXgYP4sIua0pJBXOI2CVifJZSM9usaWgOGrkdeAdtkmizMO5/PRYW01SsIG
 G7Hgh/hnrTXJruXvqHPSjNx+Y9majL8FUqb7OHElB+dGKpORce0t01NnlCp5ggKMjVZDJ1CGm
 5UdbPc65icO3J4W903MMYnj8sy1iFEw4Wde+dlTXq23vo=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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 (-)

On Fri, 03 Apr 2026 16:06:07 +0200 Stephen Berman <stephen.berman@HIDDEN> wrote:

> On Thu, 02 Apr 2026 17:30:18 +0200 Manuel Giraud <manuel@HIDDEN> wrote:
>
>> Stephen Berman <stephen.berman@HIDDEN> writes:
>>
>>> On Wed, 01 Apr 2026 19:51:11 +0200 Manuel Giraud <manuel@HIDDEN> wrote:
> [...]
>>>> ... I've tried your patch and I still see a "lserrxxx" file with the
>>>> following recipe:
>>>>
>>>>         - C-x d ~/tmp ;; a directory I have in my homedir that is not my
>>>>                       ;; TMPDIR.
>>>>
>>>>         - M-& touch lserrfoo ;; Good: this file is there after reverting
>>>>                              ;; this buffer.
>>>>
>>>>         - C-x d /tmp ;; Now, this new buffer is named "tmp<>" and the
>>>>                      ;; previous one is named "tmp<manuel>". In "tmp<>",
>>>>                      ;; I see the file "lserrxxx" in "tmp<>"
>>>
>>> Ah, that's a nice test case for identifying the buffer displaying
>>> temporary-file-directory, thanks!  The attached patch does a better job,
>>> but I'm anxious to see if you can find a problem for it too.  If you do,
>>> maybe using dired-buffers-for-dir instead of dired-find-buffer-nocreate
>>> will work for that (though using it would make the code more
>>> complicated).
>>
>> Thanks, this works as expected: no more "lserrxxx" entry in a Dired on
>> /tmp.  So far, I wasn't able to fail it ;-).  What I did test:
>>
>>        - Create a file named "lserrxxx" under a directory whose buffer
>>          name is "tmp": works (the file is here).
>>
>>        - Rename the Dired buffer pointing to /tmp to "foo": works (no
>>          bogus entry).
>>
>>        - M-: (make-temp-file "lserr"): also works (the file is in /tmp).
>
> That's encouraging, thanks for testing!  If no problems due to the patch
> crop up in the next few days and there are no objections, I'd like to
> install the patch.

Done with commit 3e5697864ca.  I'm leaving this bug open because
there are still unresolved issues (cf. the subthread concerning using
'ls' that doesn't support the -b switch).

> Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 4 Apr 2026 12:22:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 04 08:22:57 2026
Received: from localhost ([127.0.0.1]:44613 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w901g-0000Bj-Pm
	for submit <at> debbugs.gnu.org; Sat, 04 Apr 2026 08:22:57 -0400
Received: from mout.gmx.net ([212.227.17.21]:55793)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w901c-0000BU-9q
 for 80499 <at> debbugs.gnu.org; Sat, 04 Apr 2026 08:22:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775305366; x=1775910166; i=stephen.berman@HIDDEN;
 bh=2ibWmOURE5/gQRIcuZYkXbNsuZ0RmcZGsQiF9fEhG54=;
 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=hOXMO9hXTlgai8LlMGhkZwxWqJ6hWt/LhlUE8/QV99/S0ZlzgvirG644y4AhoEDW
 C9uuozeNUtS3JO3vBu/TPvwjpHA9ixX9E98fTAUC/dcZgsgwVAaWlAaMppmoB8BJb
 d3XMQ2cu34djkWQD5fo+yMZCWsdY37d1ofKM+Z7vYAo62pcRlrTAiXRtaW8YXxV7F
 MdYKn/BRWQBOpeIm/BrbfWajAQJYQBXgJKfLAWf3rj3uuabaVQ6BX2OQYTII8mDwT
 ryIBSl8Wp/6eTbuFZbgOOoNaQF32SIWaChAhnP4Hv5C8nl60c7lvlcCBiA+Jpqj6l
 L6FvknLXUz8X/Sw/PA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M2O6Y-1wCrNL3Nmg-005D34; Sat, 04
 Apr 2026 14:22:45 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: john muhl <jm@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87mrzjah2x.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <87mrzjah2x.fsf@HIDDEN>
Date: Sat, 04 Apr 2026 14:22:44 +0200
Message-ID: <87fr5ahq3v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:4ne3gQKpEvsMAI7CYKnqq9YEBoFImLuB3dzmMP30bqxKs03n47T
 KcxizyjB7eN1xA/nBql3wSM67XqEf/l4fVrf9EZumz8u3rVEC9EGCx/+vy2HXVi+xnwOOAi
 mIhp/1Dak3CG/JpsDXJxOqRIzEvWmX0uYgv41/In9/kkTH7LNE6IBx2TqjJ1zIRU3hYox0s
 Pqk0pY95cTDpAzx5DGaJA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:UPFxmipAQFA=;j3Lp19I+KFExofK+afxjkN0oP0U
 vDIKy8q+X45E5Bk2fPXnGC52Rft3DNzk28WvUbrdr8D2LcwLEfw8E2KSbXpURrX8glrF4f37i
 zv/p8AMPzFeqLjxDg3pLcxbOYMJG9DbBYQLKA68ebMKBXOe35Mj0lwwCRTUltH3Q8g1ImdxaT
 cmBBg++PuofLNkFhHca+tUM8y4HxbuHDvqyXpGnYtYSmT94wWY0L3gvKIw50172FEh561v0iJ
 QwcpfHjptEPrNlPbGuJ87Q7ixCvuoQG3MBpjwR163VQSDj0TeMGqDAmUYU6AL+LpF5AKAS9g4
 tHWGrjt9+lTy2Nm5PQ/3McmgODmfyi8k2yLEMhyT4z6nL+pQeeAzgPPyNqtttvjQazdUw70RB
 uYaJh2mjUZVJDcrq5CrjINcwU3X+d0AE5SqXrQsCF16+Ja+LfaKRwtqEWsI2/GJFCUO0riB5G
 2CbJN/RfZUmo0aRn8GGQ2IhCh6DiROvlvjqTi9pFTkJHjMnE70tjEmZHimq6r4E8Xu4AzaqjK
 eXpHiC3m0m1fj8jESS470FLK/fegdim3BVnqhHD0hHYh1ggu40hgJ839fnkpEbwWq/gPp2WL5
 DzPsEW8pBDu5fIcSx9Cs3PqBUy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yqRoBW6pMZ9i
 RLp+PL/zI0sXcKmFXZhdqcUs9yaBUrLwz8bCeh3oBRHfyrl2xU0A4uzCIl6euvfJ1N//49Osz
 3AwgoDj1dyh1c6IRe0xWOoIPlqECE0Dn8tZ2XSFx6XqmwPfEdQQQdxriOOR9mgxpIjhFuHXkc
 Z3XKvkpZYTbG9wOVwoai2bu1yjh+aF1DkdTTKyPnz9xgWW4LPpmi4BQvchCDCyyKDgezCEI9l
 M6zhoysi4Nff8cGcmA+SiRvsjBzkkwHk6tk0dn36JF/QyL2fnor9BNhIaO9KYdLLpVJNlU0Ib
 w/ykcLwuSiNI6/BmY3E2fIjRfso7+joSIyPmPdDHh//BluO3c5Up3MgUJl6GpcW69rYRKuWhQ
 B5uIZ+FfdjXCy2JX6mUnZrLl/acg1rfR4R0hE8YJskU2lUJZqaJeS1FxLxMrr2JpSN8RtIKPD
 QO0JSO6CM48exVxlSlow7fNbdSmqPL4aqpWJy4AAQQujdCQipBJvFaPFmC/jebM3jSv9i2WMT
 phhOmmKxNtb7I0I1qu5Ca/a7Z7YJ1dQDoc1p5uNyJporJJ4vfoN9Sxy4zV/XkIJlJ2MZKdXlw
 YxiOnpwKYzoN+B351svpJwy5ktQpt4xyg==
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

On Fri, 03 Apr 2026 16:07:18 -0500 john muhl <jm@HIDDEN> wrote:

> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of te=
xt
> editors" <bug-gnu-emacs@HIDDEN> writes:
>
>> On Wed, 01 Apr 2026 13:19:29 -0500 john muhl <jm@HIDDEN> wrote:
>>
>>> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of =
text
>>> editors" <bug-gnu-emacs@HIDDEN> writes:
>>>
>>>> On Fri, 27 Mar 2026 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
>>>>
>>>>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>>>>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>>>>>> Date: Thu, 26 Mar 2026 19:29:02 +0100
>>>>>>=20
>>>>>> So if you find these changes acceptable, I think they're now ready t=
o be
>>>>>> installed.
>>>>>
>>>>> Assuming all the Dired-related tests pass, please do, and thanks.
>>>>
>>>> The patch contained a thinko, but fortunately running `make check'
>>>> caught it (two tests outside of dired-tests.el and files-tests.el
>>>> failed) and I quickly found and fixed the problem and once again
>>>> adjusted the test `dired-test-ls-error-message' (which I had previously
>>>> adjusted to pass with the (then unbeknownst to me) faulty code).  Now
>>>> all regression tests pass (except two network tests for reasons probab=
ly
>>>> specific to my system and unrelated to Dired), so I've gone ahead and
>>>> pushed the corrected patch (with a NEWS entry also added) to master as
>>>> commit 3b7d9e37ce0.  Thanks again for all the feedback.
>>>
>>> It looks like this caused a few tests to start failing on Alpine
>>> where ls is provided by busybox.
>>>
>
>> Thanks for the report.  The two tests
>> dired-test-filename-with-newline-{1,2} seem to fail because your `ls'
>> does not support --dired, so apparently does not use the offsets of the
>> file name bounds, which presumably results in the failed search for
>> "\n".  Maybe we should skip these tests when `dired-use-ls-dired' is
>> nil; Eli, what do you think?  John, what happens when you invoke `dired'
>> on a directory containing a file whose name contains a newline (with
>> Emacs built from sources including commit 3b7d9e37ce0)?
>
> The dired buffer is shown and a warnings buffer shows a message
> mentioning dired-auto-toggle-b-switch:
>
>   Warning (dired): Literal newline in file name.
>   This Dired buffer displays a file name containing a literal
>   newline character.  Executing Dired operations on files
>   displayed this way may fail and signal an error.  To avoid this
>   you can temporarily change the display for all Dired buffers, so
>   that newlines in file names appear as "\n", by typing =E2=80=98M-:=E2=
=80=99 and
>   entering =E2=80=98(setopt dired-auto-toggle-b-switch t)=E2=80=99 in the
>   minibuffer.  To change the display only for this Dired buffer
>   click or press RETURN =E2=80=98here=E2=80=99.  See =E2=80=98(emacs) Dir=
ed Enter=E2=80=99 for
>   other alternatives and more information.

Ok, this means your Emacs correctly recognizes that a file name in that
directory contains a newline; so far, so good.

> In the dired buffer the newline in the file name is replaced with ?:
>
>   /root:
>   drwx------    4 root     root             7 Apr  3 15:34 .
>   drwxr-xr-x   21 root     root            21 Apr  3 15:08 ..
>   -rw-------    1 root     root          1159 Apr  3 15:36 .ash_history
>   drwx------    3 root     root             3 Apr  3 15:34 .emacs.d
>   -rw-r--r--    1 root     root             0 Apr  3 15:33 a?b
>   drwxr-xr-x   25 root     root            55 Apr  3 15:19 emacs

But this puzzles me.  IIUC in a system using GNU ls Dired can (and by
default does) display a newline in a file name as a literal newline
(i.e., the file name extends over at least two lines in Dired).  So why
is it displayed as '?' in your Dired?  Is the character at that position
in the Dired buffer really ASCII 63?  And when you invoke 'ls -al /root'
in the shell, is the file name containing the newline also displayed a
'a?b', or if not, how is it displayed?  And are both the Dired and the
shell listings of that directory otherwise complete and correct?

> Enabling d-a-t-b-s removes all the entries from the buffer:
>
>   /root:

Enabling d-a-t-b-s results in the call chain dired--toggle-b-switch ->
dired-revert -> dired-readin -> erase-buffer, followed by
dired-readin-insert -> dired-insert-directory -> insert-directory, which
via call-process invokes 'insert-directory-program' i.e. 'ls', and after
returning to 'dired-insert-directory' the line "/root:" is inserted.  So
it looks like 'ls' failed and if so the buffer *ls error* containing the
error message should pop up.  Do you see that and if so, what is the
error?  If not, is there any other indication that 'ls' failed?  If not,
can you step through 'insert-directory' (or perhaps
'dired-insert-directory') to see why the directory entries are not
inserted into the buffer?

>> I also cannot reproduce the Wdired test failure, but since the error
>> causing the failure is apparently signaled because running
>> `find-directory-functions' in `find-file-noselect' fails, and
>> `find-directory-functions' includes `dired-noselect', it could well be
>> triggered by commit 3b7d9e37ce0 in conjunction with the lack of --dired
>> support.  John, could you step through the call chain starting with
>> `dired-noselect' in Edebug to see if you can find out why this fails?
>
> It looks like the trouble is dired-internal-noselect returning
> nil. Stepping through everything looks good until the (unless
> (eobp) ...) here:
>
>   (let ((failed t))
>     (unwind-protect
>         (progn (dired-readin)
>                ;; Check for file entries (they are listed below the
>                ;; directory name and (if present) wildcard lines).
>                (while (and (skip-syntax-forward "\s")
>                            (looking-at "\\(.+:$\\|wildcard\\)"))
>                  (forward-line))
>                ;; On Fedora (eobp) returns nil
>                ;; on Alpine it returns t
> =3D>             (unless (eobp)
> =3D>               (setq failed nil)))
>       ...
>       ;; Which then causes failed to be t
>       ;; so buffer gets set to nil which is returned by d-i-noselect
> =3D>    (when failed
> =3D>      (kill-buffer buffer)
> =3D>      (setq buffer nil))))
>       ...
>       (set-buffer old-buf)
> =3D>    buffer))
>
> Eventually that bubbles up to find-file-noselect and triggers the
> error here when the second part of the (and find-file-run-dired
> ...) is nil:
>
>   (if (file-directory-p filename)
>       (or (and find-file-run-dired
> =3D>             (run-hook-with-args-until-success
>                 'find-directory-functions
>                 (if find-file-visit-truename
>                     (abbreviate-file-name (file-truename filename))
>                   filename)))
>           (error "%s is a directory" filename))
>     ...

Thanks.  The above code in dired-internal-noselect turned out to be
buggy for GNU ls, see bug#80711.  In that bug thread I posted a patch
that the OP confirmed fixes the problem, but I haven't installed it yet.
Maybe it also fixes the Wdired test problem for you, can you check?  If
it doesn't, I guess it's again because your ls does not support the
--dired switch.

>> From the backtraces it appears that you've added some things to the
>> command-line invocation of the batch test run; do you still get the same
>> test failures if you leave those bits out of the invocation?
>
> Which bits do you mean? I run the test suite with
>
>   make "-j$(nproc)" check 2>&1 |
>     tee "$LOG_DIR/check.log" ||
>     touch "$LOG_DIR/check-failed"
>
> Running the test individually (e.g. make test/lisp/wdired-tests.log)
> produces the same logs.

I meant this truncated line in the ert backtrace you posted:

  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l

>> Finally, the failure of the tests `dired-test-ls-error-message' and
>> `files-tests-file-name-non-special-insert-directory' is evidently due to
>> the actual error message emitted by your `ls' not matching the expected
>> message according to the tests.  The attached patch attempts to make
>> these tests more robust; does it prevent these test failures on your
>> system?  And Eli, can you test the patch on your system where the error
>> messages include "/bin/ls"?  Thanks.
>
> That patch fixed those here.

Great!  (That patch had an error which made the test fail when the value
of insert-directory-program is not 'ls' (so not a problem for your
system); I posted a corrected patch in a followup.)

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 3 Apr 2026 21:07:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 03 17:07:31 2026
Received: from localhost ([127.0.0.1]:35065 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w8ljm-0002cd-SY
	for submit <at> debbugs.gnu.org; Fri, 03 Apr 2026 17:07:31 -0400
Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]:49857)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jm@HIDDEN>) id 1w8ljj-0002c6-Uw
 for 80499 <at> debbugs.gnu.org; Fri, 03 Apr 2026 17:07:29 -0400
Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49])
 by mailfout.stl.internal (Postfix) with ESMTP id 1E5D01D000D9;
 Fri,  3 Apr 2026 17:07:22 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-09.internal (MEProxy); Fri, 03 Apr 2026 17:07:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm1; t=1775250441;
 x=1775336841; bh=X5b0UPXyNyqw8NvxOCgCGTjIqD2kO9aTJMJD5eHycUI=; b=
 gLUV0HYGffGE07UNy+g3fxBx6Z6e7kbV+HeD+OkWJBu++5thibglzdsSxg9QijNL
 Cbn3wUuLrbqn6rBtAWLzkcJIb9sXggGXD+2sacHvvdNehnAxddgGWwaYrQuGymP/
 4E9XlzljJWn6/F+caV/EinGdRNJ8OShW+kP5/OIBwg8lnflYiZgtCTP0XN8Cr67Z
 UgBKlA53Xh/08batgJjbwfveUBuweDwG36VDgp1y1h2eLuwidma6JkOYN8xcnDp6
 JnR+C/AYd3EswmcB7TmV70xAj+JRw/M17IQ4BBSXYOEMNpycpIMqRJEKXGa/pgi9
 WDA+O0B6l9AkLWk+oeCrUA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1775250441; x=
 1775336841; bh=X5b0UPXyNyqw8NvxOCgCGTjIqD2kO9aTJMJD5eHycUI=; b=h
 M1RZ2ln6zUZM+4l/lZRE98NrZFKPuIeZd4MbCUZ7qMpFqNFhJzz4jLSdQ1siDCZs
 bupzsfoItnOkFw54pKf/i0UQ2UaKrOjwdiSjz1BZrLendz17Aw+Cgwh0FsKhXTBD
 Wids9AO3GCkv2Re5sPHKcPu8V7ZqtO5p+qQx+fTPhW8HFvqcsVm7OirA0aze+0h4
 0UcbiUt2d9l8FW8Ifnw494koirOncBux2Uq3N1XnZCOgkhd0EljZdmlyi+HwsDjV
 VyNVPVwWLtWYbLQViT/07CQw/YZQm+aaC8KA3RPjJKG5NwdTugotcgbKf6BO/mvq
 FJGpL8151aIk/H5WYgtDg==
X-ME-Sender: <xms:CSzQaRfQVZ9Qaq3D-Lou9oCx9BAD7wpwfxtNsB7Rf9VU46ZIuXbr2Q>
 <xme:CSzQaVPjRZDEe7aLid3XYVMi0FbxCCjFV4Blqtclhf5E8fHLahWWcsmUSgdeV8_jj
 TNYfuulB9f9bXWeSwDmK1HqjJM1YbudVji_1Ecej7012tcQ9EWOZYJ6>
X-ME-Received: <xmr:CSzQaYJSy_YagXdCOBAG3dlI1ksKCf-1q1ctCxM3p-gBV-pjnfwLmUTkMps2iebr2JPnxDmBaV8jNICRJvwVoRTjYQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdelleekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi
 lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh
 ephffvvefujghffffkfgggtgfgsehtqhertddtreejnecuhfhrohhmpehjohhhnhcumhhu
 hhhluceojhhmsehpuhgsrdhpihhnkheqnecuggftrfgrthhtvghrnheptdejtefhfeevve
 fgveehhedtvdetjeevjeeiffetheehheffgfffueelieeujeffnecuvehluhhsthgvrhfu
 ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhmsehpuhgsrdhpihhnkhdpnh
 gspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkedtgeel
 leesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehsthgvphhhvghnrdgsvg
 hrmhgrnhesghhmgidrnhgvth
X-ME-Proxy: <xmx:CSzQaWE2ZbSlGhBG15NJKwwlyZWS-lBRZfIKgQpD7nz51Ono1WO3_w>
 <xmx:CSzQaQTLJefLAmdiRHGKTJXzoGdcvmLCdP_WiDylVp2ZFDLC-He4kQ>
 <xmx:CSzQaSH0xJy3n1ScOv9dXmdo36094lgyLl8lpbqFO9jaE5mmWACHuw>
 <xmx:CSzQac9KMjsY1nbhWMLw4TlPc7os12ni4W_NfjlUXl73S-if6O-Ssg>
 <xmx:CSzQaTElaAErhAthwGUvwPoAwNrH5WL0qMz4ka2wB5bZl4V5hb04rizJ>
Feedback-ID: i74194916:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 3 Apr 2026 17:07:20 -0400 (EDT)
From: john muhl <jm@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87y0j4z24l.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN> <87tstuwnke.fsf@HIDDEN>
 <87y0j4z24l.fsf@HIDDEN>
Date: Fri, 03 Apr 2026 16:07:18 -0500
Message-ID: <87mrzjah2x.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

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

> On Wed, 01 Apr 2026 13:19:29 -0500 john muhl <jm@HIDDEN> wrote:
>
>> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of t=
ext
>> editors" <bug-gnu-emacs@HIDDEN> writes:
>>
>>> On Fri, 27 Mar 2026 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
>>>
>>>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>>>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>>>>> Date: Thu, 26 Mar 2026 19:29:02 +0100
>>>>>=20
>>>>> So if you find these changes acceptable, I think they're now ready to=
 be
>>>>> installed.
>>>>
>>>> Assuming all the Dired-related tests pass, please do, and thanks.
>>>
>>> The patch contained a thinko, but fortunately running `make check'
>>> caught it (two tests outside of dired-tests.el and files-tests.el
>>> failed) and I quickly found and fixed the problem and once again
>>> adjusted the test `dired-test-ls-error-message' (which I had previously
>>> adjusted to pass with the (then unbeknownst to me) faulty code).  Now
>>> all regression tests pass (except two network tests for reasons probably
>>> specific to my system and unrelated to Dired), so I've gone ahead and
>>> pushed the corrected patch (with a NEWS entry also added) to master as
>>> commit 3b7d9e37ce0.  Thanks again for all the feedback.
>>
>> It looks like this caused a few tests to start failing on Alpine
>> where ls is provided by busybox.
>>

> Thanks for the report.  The two tests
> dired-test-filename-with-newline-{1,2} seem to fail because your `ls'
> does not support --dired, so apparently does not use the offsets of the
> file name bounds, which presumably results in the failed search for
> "\n".  Maybe we should skip these tests when `dired-use-ls-dired' is
> nil; Eli, what do you think?  John, what happens when you invoke `dired'
> on a directory containing a file whose name contains a newline (with
> Emacs built from sources including commit 3b7d9e37ce0)?

The dired buffer is shown and a warnings buffer shows a message
mentioning dired-auto-toggle-b-switch:

  Warning (dired): Literal newline in file name.
  This Dired buffer displays a file name containing a literal
  newline character.  Executing Dired operations on files
  displayed this way may fail and signal an error.  To avoid this
  you can temporarily change the display for all Dired buffers, so
  that newlines in file names appear as "\n", by typing =E2=80=98M-:=E2=80=
=99 and
  entering =E2=80=98(setopt dired-auto-toggle-b-switch t)=E2=80=99 in the
  minibuffer.  To change the display only for this Dired buffer
  click or press RETURN =E2=80=98here=E2=80=99.  See =E2=80=98(emacs) Dired=
 Enter=E2=80=99 for
  other alternatives and more information.

In the dired buffer the newline in the file name is replaced with ?:

  /root:
  drwx------    4 root     root             7 Apr  3 15:34 .
  drwxr-xr-x   21 root     root            21 Apr  3 15:08 ..
  -rw-------    1 root     root          1159 Apr  3 15:36 .ash_history
  drwx------    3 root     root             3 Apr  3 15:34 .emacs.d
  -rw-r--r--    1 root     root             0 Apr  3 15:33 a?b
  drwxr-xr-x   25 root     root            55 Apr  3 15:19 emacs

Enabling d-a-t-b-s removes all the entries from the buffer:

  /root:

> I also cannot reproduce the Wdired test failure, but since the error
> causing the failure is apparently signaled because running
> `find-directory-functions' in `find-file-noselect' fails, and
> `find-directory-functions' includes `dired-noselect', it could well be
> triggered by commit 3b7d9e37ce0 in conjunction with the lack of --dired
> support.  John, could you step through the call chain starting with
> `dired-noselect' in Edebug to see if you can find out why this fails?

It looks like the trouble is dired-internal-noselect returning
nil. Stepping through everything looks good until the (unless
(eobp) ...) here:

  (let ((failed t))
    (unwind-protect
        (progn (dired-readin)
               ;; Check for file entries (they are listed below the
               ;; directory name and (if present) wildcard lines).
               (while (and (skip-syntax-forward "\s")
                           (looking-at "\\(.+:$\\|wildcard\\)"))
                 (forward-line))
               ;; On Fedora (eobp) returns nil
               ;; on Alpine it returns t
=3D>             (unless (eobp)
=3D>               (setq failed nil)))
      ...
      ;; Which then causes failed to be t
      ;; so buffer gets set to nil which is returned by d-i-noselect
=3D>    (when failed
=3D>      (kill-buffer buffer)
=3D>      (setq buffer nil))))
      ...
      (set-buffer old-buf)
=3D>    buffer))

Eventually that bubbles up to find-file-noselect and triggers the
error here when the second part of the (and find-file-run-dired
...) is nil:

  (if (file-directory-p filename)
      (or (and find-file-run-dired
=3D>             (run-hook-with-args-until-success
                'find-directory-functions
                (if find-file-visit-truename
                    (abbreviate-file-name (file-truename filename))
                  filename)))
          (error "%s is a directory" filename))
    ...

> From the backtraces it appears that you've added some things to the
> command-line invocation of the batch test run; do you still get the same
> test failures if you leave those bits out of the invocation?

Which bits do you mean? I run the test suite with

  make "-j$(nproc)" check 2>&1 |
    tee "$LOG_DIR/check.log" ||
    touch "$LOG_DIR/check-failed"

Running the test individually (e.g. make test/lisp/wdired-tests.log)
produces the same logs.

> Finally, the failure of the tests `dired-test-ls-error-message' and
> `files-tests-file-name-non-special-insert-directory' is evidently due to
> the actual error message emitted by your `ls' not matching the expected
> message according to the tests.  The attached patch attempts to make
> these tests more robust; does it prevent these test failures on your
> system?  And Eli, can you test the patch on your system where the error
> messages include "/bin/ls"?  Thanks.

That patch fixed those here.




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

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


Received: (at 80499) by debbugs.gnu.org; 3 Apr 2026 14:06:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 03 10:06:19 2026
Received: from localhost ([127.0.0.1]:59367 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w8fAA-0004kY-7e
	for submit <at> debbugs.gnu.org; Fri, 03 Apr 2026 10:06:19 -0400
Received: from mout.gmx.net ([212.227.17.22]:60715)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w8fA6-0004kC-Jf
 for 80499 <at> debbugs.gnu.org; Fri, 03 Apr 2026 10:06:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775225168; x=1775829968; i=stephen.berman@HIDDEN;
 bh=hGY9gY9oZb0g7Xp2sHp/dATQmMJy91oBRWjo0V9oBz8=;
 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=NfEkIdqEaYKHuGSpiiL0ts9MpOOk5caWLvwhw4ESUpyXicQP1M1NQvdLJA2xt6Mq
 LPLUXz8V65UyFFbgM2I/7hY9C+EnvXWFM7NJjTUNedO8oi+vHuIACSA8RBgN7poIh
 epQl3PcSnYcNk9z2l7rZlhWkYIjURg4LwIsGS/AuGejSwxPE1gr3ScudXIxFyHFnQ
 QF8Ee9OYlBgXRMA72o7yf9okHHWXdigD231N7D4Iox745HcLNZNVYycA2jnUDIIQ6
 Fo+fXI/li+ay6+MTr+FBw19LZ/r/1a9VUz5yiLrCd/Ig4uB+HPCsZfdyxE+Dpbuv3
 CU8++DH/fNZUPNIHrw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MY68T-1w0fKn0c3h-00QoHz; Fri, 03
 Apr 2026 16:06:08 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87fr5dxtv9.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <868qbcv3rw.fsf@HIDDEN>
 <87o6k8at3t.fsf@HIDDEN> <86h5q0rlju.fsf@HIDDEN>
 <871ph3bu03.fsf@HIDDEN> <868qbbs02t.fsf@HIDDEN>
 <877bqtjv0v.fsf@HIDDEN> <87mrzph11i.fsf@HIDDEN>
 <87341hjtpo.fsf@HIDDEN> <87ikadgzak.fsf@HIDDEN>
 <87wlyticvx.fsf@HIDDEN> <86se9hp89j.fsf@HIDDEN>
 <87a4vohnjw.fsf@HIDDEN> <86wlysnsiu.fsf@HIDDEN>
 <877bqsrwmy.fsf@HIDDEN> <87fr5ebv6x.fsf@HIDDEN>
 <87ldf6o9gw.fsf@HIDDEN> <87a4vmb5pp.fsf@HIDDEN>
 <87fr5dxtv9.fsf@HIDDEN>
Date: Fri, 03 Apr 2026 16:06:07 +0200
Message-ID: <87mrzkyw8g.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:IbF1+bnEM0kCeAlw8y9lKvIO6o/X9VU4v8JbbQQi+Ws9dvpZjBF
 edWHslP+JrScwD1j0/8n6ltVhrR9wO7ta6fh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a4vnXnRyk7mme2DZiokbna2OlE
 7KNevU8wI9odidBJbQW0888JclKunAlKQD6oBdZebwjU5BZLTdCdEqNkZ2n4C5ND2LW7XEFXY
 FvBXkvhUoom5368uNdlm5+mDuMQAH9KZ1bLZvuNyou9v2W2cSZJD8olOWgTqXRaUblFJELCtZ
 b8pZTKD7PDtsuNmYucVviY2cIZ/buuvcpMggQzuPgwi0kQE+WacO8OEqKk2JJaxrHeTgFx6f1
 9xuSmxzAkk2Bh6FRPZUSaMNqf0gnvYkTmMOU4AaexM11DSweVQVcfgqcg+r0Ck5ptiDYtMZ0y
 zjBlM9sDCnt5gM1tc42T2CQmkIoXWs2M9BbIIOiP31ElsXY59UW5zqm6nS24OSs=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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 (-)

On Thu, 02 Apr 2026 17:30:18 +0200 Manuel Giraud <manuel@HIDDEN> wrote:

> Stephen Berman <stephen.berman@HIDDEN> writes:
>
>> On Wed, 01 Apr 2026 19:51:11 +0200 Manuel Giraud <manuel@HIDDEN> wrote:
[...]
>>> ... I've tried your patch and I still see a "lserrxxx" file with the
>>> following recipe:
>>>
>>>         - C-x d ~/tmp ;; a directory I have in my homedir that is not my
>>>                       ;; TMPDIR.
>>>
>>>         - M-& touch lserrfoo ;; Good: this file is there after reverting
>>>                              ;; this buffer.
>>>
>>>         - C-x d /tmp ;; Now, this new buffer is named "tmp<>" and the
>>>                      ;; previous one is named "tmp<manuel>". In "tmp<>",
>>>                      ;; I see the file "lserrxxx" in "tmp<>"
>>
>> Ah, that's a nice test case for identifying the buffer displaying
>> temporary-file-directory, thanks!  The attached patch does a better job,
>> but I'm anxious to see if you can find a problem for it too.  If you do,
>> maybe using dired-buffers-for-dir instead of dired-find-buffer-nocreate
>> will work for that (though using it would make the code more
>> complicated).
>
> Thanks, this works as expected: no more "lserrxxx" entry in a Dired on
> /tmp.  So far, I wasn't able to fail it ;-).  What I did test:
>
>        - Create a file named "lserrxxx" under a directory whose buffer
>          name is "tmp": works (the file is here).
>
>        - Rename the Dired buffer pointing to /tmp to "foo": works (no
>          bogus entry).
>
>        - M-: (make-temp-file "lserr"): also works (the file is in /tmp).

That's encouraging, thanks for testing!  If no problems due to the patch
crop up in the next few days and there are no objections, I'd like to
install the patch.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 3 Apr 2026 13:07:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 03 09:07:33 2026
Received: from localhost ([127.0.0.1]:59007 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w8eFH-0005lc-DZ
	for submit <at> debbugs.gnu.org; Fri, 03 Apr 2026 09:07:33 -0400
Received: from mout.gmx.net ([212.227.15.19]:58759)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w8eFE-0005lB-VP
 for 80499 <at> debbugs.gnu.org; Fri, 03 Apr 2026 09:07:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775221637; x=1775826437; i=stephen.berman@HIDDEN;
 bh=TaU0GUmFD9ZCMd12JeGvSsrAMg1gqWxqrpfk43bdOvw=;
 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=hHLkFvKLU09+XuR5ZW0+hb7893+YB12qk6rkSgm8SQ1Ek8ryex1flGaUbNG7XKfO
 r3ohVDVzHaOHsQYWA6ueBoNyDo16RPhIa7wVjoRJ9MN6CRoDn0fCyuIXj6q99YPCZ
 jpj1jisccE1BnxOO52rL6GgJWs5Y662Saquen1XIjtrk52tafNvYb9kY9aX3nR8nO
 lt8nGmRrsBx5iR1p4TbMucHMkqKC1kHOcnwRUAMXevEdnoSKCkFrTTNaxoskQweEj
 JsZzZW1gushyTnG/a8tgJB/iQJM/aMt+6GZ84IXoS2SGEAByOvCBHidVCbQlU7/Hk
 TGz1jf0NI6YLVaUJbA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfpOd-1vbD6i16Mr-00eRmj; Fri, 03
 Apr 2026 15:07:17 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86ika85isn.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
 <86ika85isn.fsf@HIDDEN>
Date: Fri, 03 Apr 2026 15:07:16 +0200
Message-ID: <87tstsyyyj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:vV8FrXxoYo41q0EO0Ozxi9Y1wPDkFfsNUGScFvYoQluQ1WerwSL
 NsmwVNVr7cAqZc/r3Hjqmcq9m0Kd0T15xeKKIwSFGte/jGApJkBmLRnjJzcHIqnRkE2PHzV
 iJjHfAMVe4OZBsMWoB7oqoO3zVsmJZgcLpXVpcKcbwpZP4N9gLaMVNsb9vXDaep75L9OHA1
 9tHLJ2M/sBHJzQ7oQgNCg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:4Zlvc4jz1O8=;myMjdFc2etHQ9E0mC2q/jP1RhQc
 uM2b7uAXpNFpCeaZJ98iRVuYGsZo8YorThIHwt378LVtDQd598BqvTyC7ifgH9NDLU4t7M6DG
 B7bVvSLqXTdzum1F6u6IM/LoO+P7c/5PCzwKUVoDOz5rBbyp3YFRmV9G4Dh7LTUXhha8NAwyO
 bvQ0kC7N8YxAEnlAmDF0K4xagAwKUNbj/Vl+iPoxcTgVbf0LlDubI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VG1MCG2fd3ewUqjApR+A8cVmkC4orAPDjWOkV4GpOX51Yhwnd1x9WF/80CUA9tXJsL
 bZlqVugsscgsgcLdKXlmnYdCvJY7jERpXc5SNWLP88ZkE=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, jm@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
Content-Transfer-Encoding: quoted-printable

On Fri, 03 Apr 2026 15:29:12 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
>> Date: Fri, 03 Apr 2026 13:58:50 +0200
>>=20
>> Thanks for the report.  The two tests
>> dired-test-filename-with-newline-{1,2} seem to fail because your `ls'
>> does not support --dired, so apparently does not use the offsets of the
>> file name bounds, which presumably results in the failed search for
>> "\n".  Maybe we should skip these tests when `dired-use-ls-dired' is
>> nil; Eli, what do you think?
>
> Yes, I think so.  That means it isn't GNU ls, so we cannot support
> file names with embedded newlines in that case anyway.

Ok.

>> Finally, the failure of the tests `dired-test-ls-error-message' and
>> `files-tests-file-name-non-special-insert-directory' is evidently due t=
o
>> the actual error message emitted by your `ls' not matching the expected
>> message according to the tests.  The attached patch attempts to make
>> these tests more robust; does it prevent these test failures on your
>> system?  And Eli, can you test the patch on your system where the error
>> messages include "/bin/ls"?  Thanks.
>
> The test fails because of that:
>
>   Test files-tests-file-name-non-special-insert-directory condition:
>       (ert-test-failed
>        ((should (equal (funcall ls-err nospecial-dir) (buffer-string)))
> 	:form
> 	(equal
> 	 "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special':=
 No such file or directory\n"
> 	 "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.spec=
ial': No such file or directory\n")
> 	:value nil :explanation
> 	(arrays-of-different-length 96 101
> 				    "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.spe=
cial': No such file or directory\n"
> 				    "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvju=
w.special': No such file or directory\n"
> 				    first-mismatch-at 0)))

Oops, another thinko, sorry.  With the attached corrected patch, you
should get no failure (I hope!).

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: corrected patch for tests of ls error message
Content-Transfer-Encoding: quoted-printable

diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 77ed07fcc42..35795825365 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -751,17 +751,24 @@ dired-test-ls-error-message
     (unless (and (featurep 'ls-lisp)
                  (boundp 'ls-lisp-use-insert-directory-program)
                  (null ls-lisp-use-insert-directory-program))
-      (let ((errbuf (get-buffer "*ls error*")))
+      (let ((errbuf (get-buffer "*ls error*"))
+            ;; Since different `ls' programs can produce different
+            ;; messages for the nonexisting file error, we make a sample
+            ;; message to use for comparing the expected message with
+            ;; the string in the error buffer.
+            (ls-err (lambda (fn)
+		      (let* ((tmpname (make-temp-name "/bug80499-tests-"))
+                             (errlist (string-split
+                                       (shell-command-to-string
+                                        (concat insert-directory-program
+                                                " -al " tmpname))
+                                       tmpname)))
+                        (concat (car errlist) fn (cadr errlist))))))
         (should (get-buffer-window errbuf))
         (should-not (equal (buffer-name buf) (file-name-nondirectory name=
)))
         (with-current-buffer errbuf
-          (should (string-match-p
-                   (format
-                    ;; Use .* around file name to account for different
-                    ;; file-name quoting styles, or no quoting at all.
-                    "%s: cannot access .*%s.*: No such file or directory\=
n"
-                    insert-directory-program (file-name-nondirectory name=
))
-                   (buffer-string))))
+          (should (equal (funcall ls-err (file-name-nondirectory name))
+                         (buffer-string))))
         (kill-buffer errbuf))
       (delete-directory dir t))))
=20
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 6781c4a3d8b..7b049af7070 100644
=2D-- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -1033,16 +1033,23 @@ files-tests-file-name-non-special-insert-directory
       (let ((errbuf (get-buffer "*ls error*"))
             ;; By the time `ls' is called in `insert-directory', the
             ;; handler prefix has been removed.
-            (nospecial-dir (string-remove-prefix "/:" nospecial-dir)))
+            (nospecial-dir (string-remove-prefix "/:" nospecial-dir))
+            ;; Since different `ls' programs can produce different
+            ;; messages for the nonexisting file error, we make a sample
+            ;; message to use for comparing the expected message with
+            ;; the string in the error buffer.
+            (ls-err (lambda (fn)
+		      (let* ((tmpname (make-temp-name "/bug80499-tests-"))
+                             (errlist (string-split
+                                       (shell-command-to-string
+                                        (concat insert-directory-program
+                                                " -al " tmpname))
+                                       tmpname)))
+                        (concat (car errlist) fn (cadr errlist))))))
         (should errbuf)
         (with-current-buffer errbuf
-          (should (string-match-p
-                   (format
-                    ;; Use .* around file name to account for different
-                    ;; file-name quoting styles, or no quoting at all.
-                    "%s: cannot access .*%s.*: No such file or directory\=
n"
-                    insert-directory-program nospecial-dir)
-                   (buffer-string))))
+          (should (equal (funcall ls-err nospecial-dir)
+                         (buffer-string))))
         (kill-buffer errbuf)))))
=20
 (ert-deftest files-tests-file-name-non-special-insert-file-contents ()

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 3 Apr 2026 12:29:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 03 08:29:24 2026
Received: from localhost ([127.0.0.1]:58682 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w8deN-0000fP-Ju
	for submit <at> debbugs.gnu.org; Fri, 03 Apr 2026 08:29:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56764)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w8deK-0000eO-SN
 for 80499 <at> debbugs.gnu.org; Fri, 03 Apr 2026 08:29:21 -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 1w8deE-0001t1-QE; Fri, 03 Apr 2026 08:29:14 -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=ZafYt4LmrMr+7HBM0OiQoaTut/LvNoMrcD5xQ8JnarI=; b=fLx5LVX7JQPX
 5aHcofiFxvqRraQO02m7w0lYgD4cfRskTxAmeZtDDDjRcMr6FQyPqMiUf6Z+EiCyROAXukxRFl10J
 Gj9AQt3RcnzCnmj0QsETm9M2NWWUWXghp7iL6B8F0G4A38RwBjONDAPml1HJ3V1EhfuK2QjTAKQh1
 EzfjOEQ+XV4cXCpSb1sJ8+PofvMnsJw2Fu1KjtMBqNnNYh5kmY6JxSsmGliM9ZfcDSKRM8xRcy9hL
 aQ+G24QqsVv7lkI48axUn4MKMsrwbMu6Rq24Ln/+AZzj4MHLs4Ojvq2bdhUG84bIwxAbGU6hzbhC6
 v7zWOq10nSuzL09DP1Q3lA==;
Date: Fri, 03 Apr 2026 15:29:12 +0300
Message-Id: <86ika85isn.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87y0j4z24l.fsf@HIDDEN> (message from Stephen Berman on Fri, 03
 Apr 2026 13:58:50 +0200)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <87342ld8la.fsf@HIDDEN>
 <86wlzx4347.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN> <87y0j4z24l.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, jm@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
> Date: Fri, 03 Apr 2026 13:58:50 +0200
> 
> Thanks for the report.  The two tests
> dired-test-filename-with-newline-{1,2} seem to fail because your `ls'
> does not support --dired, so apparently does not use the offsets of the
> file name bounds, which presumably results in the failed search for
> "\n".  Maybe we should skip these tests when `dired-use-ls-dired' is
> nil; Eli, what do you think?

Yes, I think so.  That means it isn't GNU ls, so we cannot support
file names with embedded newlines in that case anyway.

> Finally, the failure of the tests `dired-test-ls-error-message' and
> `files-tests-file-name-non-special-insert-directory' is evidently due to
> the actual error message emitted by your `ls' not matching the expected
> message according to the tests.  The attached patch attempts to make
> these tests more robust; does it prevent these test failures on your
> system?  And Eli, can you test the patch on your system where the error
> messages include "/bin/ls"?  Thanks.

The test fails because of that:

  Test files-tests-file-name-non-special-insert-directory condition:
      (ert-test-failed
       ((should (equal (funcall ls-err nospecial-dir) (buffer-string)))
	:form
	(equal
	 "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n"
	 "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n")
	:value nil :explanation
	(arrays-of-different-length 96 101
				    "ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n"
				    "/bin/ls: cannot access '/tmp/files-testsgLJcR1/files-testsdqvjuw.special': No such file or directory\n"
				    first-mismatch-at 0)))




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

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


Received: (at 80499) by debbugs.gnu.org; 3 Apr 2026 11:59:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 03 07:59:04 2026
Received: from localhost ([127.0.0.1]:58377 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w8dB0-0005h6-46
	for submit <at> debbugs.gnu.org; Fri, 03 Apr 2026 07:59:04 -0400
Received: from mout.gmx.net ([212.227.17.21]:59815)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w8dAw-0005fy-Af
 for 80499 <at> debbugs.gnu.org; Fri, 03 Apr 2026 07:58:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775217531; x=1775822331; i=stephen.berman@HIDDEN;
 bh=wmnK41I4Q582H0pI/by5nJY4WEb0QvWjGxjZqs7upjM=;
 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=Zi0e4PqQXCH+PPLbsBghT3ETUVP7PS3pZb08qTer7wnT5hx08bM0ad8Dv5NuArhh
 cUEEeKHtAiffPBep1IqbtxNrHLhCH/mvYhJOVRfgTcu/SgGYlcGnpSXqouzXFzUgP
 kofl3NX1H+D5ksd8+DDYiJKQysIifNrU4TErXcQYPyuwBGuTEIQyIVQcSr4vwPZjo
 40x2OcHqFbSVT+KEvsbpap+MV9Wp3LnJh7+CUHhLF3Ojz2rqcZVxFloIrF6PR4d/6
 ImjXOoBzq8tNGhnkpqreNUkI5AsTzfWyh555WI1xr+h3DBBe8S1pYOtqpEw79Ge48
 JLiGCo/a57JhBueJuA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8ygY-1wBOrF2JBm-000MmJ; Fri, 03
 Apr 2026 13:58:51 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: john muhl <jm@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87tstuwnke.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87342ld8la.fsf@HIDDEN>
 <86wlzx4347.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <87tstuwnke.fsf@HIDDEN>
Date: Fri, 03 Apr 2026 13:58:50 +0200
Message-ID: <87y0j4z24l.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:D+3hY/LHZQ/3sI0L/kxTcfJUs/xWaBTo34vKuhvQxUI7sLTHGFX
 +MtjOe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xbR79LpEKzljuP8ybhVl+9RYhW1GOooyh5IoQyZgd6TwiPbJ7iJ2HjfqbtNfOzRQTsP
 BwdsdulP42aXc1IMnLC0/lNX5jR5qPigVmQK+vDXiBbSibbpaaQr18HruvMFJubir9viWCoDA
 A4yd9w5SpdOYWk3aby9+ESRYOXciLiS+65nr1wVTNZ/dzAII+E0zssXklBM0WxU4/4MgHpIx1
 y2eQi0tqgFwL4GC4X4IszsygZRoyinXhIn1B0l/R9fATddzSAhX7NKzdhPMMqUdtHrw/OvFB5
 vOqgIxpmcHDI3Z1eOmqYo0TK2Uq2DKF5PGObSR8CsFTZh/KvKe16EbXG0erR2JBgfoShUxyO/
 PcScmhHHVDPZ1T0YgNHQ+Z1VcHPlRIYq8DucmZkBcymo/M6TKXVWdekFwDJytRZvPB6cdw2jS
 gQ56IyKY9Ahx3I/JEB6YotOibCRwEeuDmZsElB4PubEQ0hADNGHVyNcaeIxxKTPWFfMBuAqw5
 JsVJVhRa7OzXK4FxysINt2FvAT/G850vRJf+m6qBrhKmI5jncQIT2s5YGb3DhZS5RGhkJT0DF
 e+MMxSFD6lIoXr28RtlkDcNJbW+Jp3EbtTnYdgto3tamE4vPsIWd+XTEF
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (-)

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

On Wed, 01 Apr 2026 13:19:29 -0500 john muhl <jm@HIDDEN> wrote:

> Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of t=
ext
> editors" <bug-gnu-emacs@HIDDEN> writes:
>
>> On Fri, 27 Mar 2026 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
>>
>>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>>>> Date: Thu, 26 Mar 2026 19:29:02 +0100
>>>>=20
>>>> So if you find these changes acceptable, I think they're now ready to=
 be
>>>> installed.
>>>
>>> Assuming all the Dired-related tests pass, please do, and thanks.
>>
>> The patch contained a thinko, but fortunately running `make check'
>> caught it (two tests outside of dired-tests.el and files-tests.el
>> failed) and I quickly found and fixed the problem and once again
>> adjusted the test `dired-test-ls-error-message' (which I had previously
>> adjusted to pass with the (then unbeknownst to me) faulty code).  Now
>> all regression tests pass (except two network tests for reasons probabl=
y
>> specific to my system and unrelated to Dired), so I've gone ahead and
>> pushed the corrected patch (with a NEWS entry also added) to master as
>> commit 3b7d9e37ce0.  Thanks again for all the feedback.
>
> It looks like this caused a few tests to start failing on Alpine
> where ls is provided by busybox.
>
> Running 22 tests (2026-03-27 15:49:18+0000, selector `(not (or (tag :exp=
ensive-test) (tag :unstable) (tag :nativecomp)))')
>    passed   1/22  dired-autoload (0.000140 sec)
> ls does not support --dired -N; see `dired-use-ls-dired' for more detail=
s.
[...]
> Test dired-test-filename-with-newline-1 backtrace:
>   search-backward("\n" 246 nil nil)
>   apply(search-backward ("\n" 246))
>   #f(compiled-function () #<bytecode -0x1d17e73776247fc7>)()
>   #f(compiled-function () #<bytecode -0x121633815a9662bb>)()
>   handler-bind-1(#f(compiled-function () #<bytecode -0x121633815a9662b
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name dired-test-filename-with-newline-1 :d
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test dired-test-filename-with-newline-1 condition:
>     (search-failed "\n")
>    FAILED  15/22  dired-test-filename-with-newline-1 (0.006058 sec) at l=
isp/dired-tests.el:661
> Directory has changed on disk; type g to update Dired
> Test dired-test-filename-with-newline-2 backtrace:
>   signal(error ("No file on this line"))
>   error("No file on this line")
>   dired-move-to-end-of-filename()
>   #f(compiled-function () #<bytecode 0x1b50c2a61e2079a4>)()
>   #f(compiled-function () #<bytecode -0x121633815a9662bb>)()
>   handler-bind-1(#f(compiled-function () #<bytecode -0x121633815a9662b
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name dired-test-filename-with-newline-2 :d
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test dired-test-filename-with-newline-2 condition:
>     (error "No file on this line")
>    FAILED  16/22  dired-test-filename-with-newline-2 (0.006655 sec) at l=
isp/dired-tests.el:693
>    passed  17/22  dired-test-hide-absolute-location-disabled (0.012801 s=
ec)
>    passed  18/22  dired-test-hide-absolute-location-enabled (0.007403 se=
c)
> Test dired-test-ls-error-message backtrace:
>   signal(ert-test-failed (((should (equal (buffer-string) (concat "ls:
>   ert-fail(((should (equal (buffer-string) (concat "ls: cannot access=20
>   #f(compiled-function () #<bytecode -0x17b18ec57d0e6755>)()
>   #f(compiled-function () #<bytecode -0x121633815a9662bb>)()
>   handler-bind-1(#f(compiled-function () #<bytecode -0x121633815a9662b
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name dired-test-ls-error-message :document
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test dired-test-ls-error-message condition:
>     (ert-test-failed
>      ((should
>        (equal (buffer-string)
> 	      (concat "ls: cannot access '"
> 		      ... "': No such file or directory\n")))
>       :form
>       (equal "ls: bla: No such file or directory\n"
> 	     "ls: cannot access 'bla': No such file or directory\n")
>       :value nil :explanation
>       (arrays-of-different-length 35 51
> 				  "ls: bla: No such file or directory\n"
> 				  "ls: cannot access 'bla': No such file or directory\n"
> 				  first-mismatch-at 4)))
>    FAILED  19/22  dired-test-ls-error-message (0.005658 sec) at lisp/dir=
ed-tests.el:722
[...]
> Running 121 tests (2026-03-27 15:49:25+0000, selector `(not (or (tag :ex=
pensive-test) (tag :unstable) (tag :nativecomp)))')
[...]
> Test files-tests-file-name-non-special-insert-directory backtrace:
>   signal(ert-test-failed (((should (equal (buffer-string) (concat "ls:
>   ert-fail(((should (equal (buffer-string) (concat "ls: cannot access=20
>   #f(compiled-function () #<bytecode 0xe8a23d57a9aaabc>)()
>   #f(compiled-function () #<bytecode 0x34d6f18d042d5c6>)()
>   handler-bind-1(#f(compiled-function () #<bytecode 0x34d6f18d042d5c6>
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name files-tests-file-name-non-special-ins
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test files-tests-file-name-non-special-insert-directory condition:
>     (ert-test-failed
>      ((should
>        (equal (buffer-string)
> 	      (concat "ls: cannot access '" nospecial-dir
> 		      "': No such file or directory\n")))
>       :form
>       (equal
>        "ls: /tmp/files-testsAAcNad/files-teststeXGKi.special: No such fi=
le or directory\n"
>        "ls: cannot access '/tmp/files-testsAAcNad/files-teststeXGKi.spec=
ial': No such file or directory\n")
>       :value nil :explanation
>       (arrays-of-different-length 80 96
> 				  "ls: /tmp/files-testsAAcNad/files-teststeXGKi.special: No such fil=
e or directory\n"
> 				  "ls: cannot access '/tmp/files-testsAAcNad/files-teststeXGKi.speci=
al': No such file or directory\n"
> 				  first-mismatch-at 4)))
>    FAILED   81/121  files-tests-file-name-non-special-insert-directory (=
0.003675 sec) at lisp/files-tests.el:1020
[...]
> Running 7 tests (2026-03-27 15:49:35+0000, selector `(not (or (tag :expe=
nsive-test) (tag :unstable) (tag :nativecomp)))')
> ls does not support --dired -N; see `dired-use-ls-dired' for more detail=
s.
[...]
> Test wdired-test-bug34915 backtrace:
>   signal(error ("/tmp/emacs-test-eGuhdk-wdired/ is a directory"))
>   error("%s is a directory" "/tmp/emacs-test-eGuhdk-wdired/")
>   find-file-noselect("/tmp/emacs-test-eGuhdk-wdired/")
>   #f(compiled-function () #<bytecode 0x21beda35d24e1ed>)()
>   #f(compiled-function () #<bytecode 0x6679a0eb808235f>)()
>   handler-bind-1(#f(compiled-function () #<bytecode 0x6679a0eb808235f>
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name wdired-test-bug34915 :documentation "
>   ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [...=20
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test wdired-test-bug34915 condition:
>     (error "/tmp/emacs-test-eGuhdk-wdired/ is a directory")

Thanks for the report.  The two tests
dired-test-filename-with-newline-{1,2} seem to fail because your `ls'
does not support --dired, so apparently does not use the offsets of the
file name bounds, which presumably results in the failed search for
"\n".  Maybe we should skip these tests when `dired-use-ls-dired' is
nil; Eli, what do you think?  John, what happens when you invoke `dired'
on a directory containing a file whose name contains a newline (with
Emacs built from sources including commit 3b7d9e37ce0)?

I also cannot reproduce the Wdired test failure, but since the error
causing the failure is apparently signaled because running
`find-directory-functions' in `find-file-noselect' fails, and
`find-directory-functions' includes `dired-noselect', it could well be
triggered by commit 3b7d9e37ce0 in conjunction with the lack of --dired
support.  John, could you step through the call chain starting with
`dired-noselect' in Edebug to see if you can find out why this fails?

=46rom the backtraces it appears that you've added some things to the
command-line invocation of the batch test run; do you still get the same
test failures if you leave those bits out of the invocation?

Finally, the failure of the tests `dired-test-ls-error-message' and
`files-tests-file-name-non-special-insert-directory' is evidently due to
the actual error message emitted by your `ls' not matching the expected
message according to the tests.  The attached patch attempts to make
these tests more robust; does it prevent these test failures on your
system?  And Eli, can you test the patch on your system where the error
messages include "/bin/ls"?  Thanks.

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: patch for tests of ls error message
Content-Transfer-Encoding: quoted-printable

diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 77ed07fcc42..15bce52e9db 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -751,17 +751,22 @@ dired-test-ls-error-message
     (unless (and (featurep 'ls-lisp)
                  (boundp 'ls-lisp-use-insert-directory-program)
                  (null ls-lisp-use-insert-directory-program))
-      (let ((errbuf (get-buffer "*ls error*")))
+      (let ((errbuf (get-buffer "*ls error*"))
+            ;; Since different `ls' programs can produce different
+            ;; messages for the nonexisting file error, we make a sample
+            ;; message to use for comparing the expected message with
+            ;; the string in the error buffer.
+            (ls-err (lambda (fn)
+		      (let* ((tmpname (make-temp-name "/bug80499-tests-"))
+                             (errlist (string-split (shell-command-to-str=
ing
+                                                    (concat "ls -al " tmp=
name))
+                                                   tmpname)))
+                        (concat (car errlist) fn (cadr errlist))))))
         (should (get-buffer-window errbuf))
         (should-not (equal (buffer-name buf) (file-name-nondirectory name=
)))
         (with-current-buffer errbuf
-          (should (string-match-p
-                   (format
-                    ;; Use .* around file name to account for different
-                    ;; file-name quoting styles, or no quoting at all.
-                    "%s: cannot access .*%s.*: No such file or directory\=
n"
-                    insert-directory-program (file-name-nondirectory name=
))
-                   (buffer-string))))
+          (should (equal (funcall ls-err (file-name-nondirectory name))
+                         (buffer-string))))
         (kill-buffer errbuf))
       (delete-directory dir t))))
=20
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 6781c4a3d8b..6c93fe6e965 100644
=2D-- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -1033,16 +1033,21 @@ files-tests-file-name-non-special-insert-directory
       (let ((errbuf (get-buffer "*ls error*"))
             ;; By the time `ls' is called in `insert-directory', the
             ;; handler prefix has been removed.
-            (nospecial-dir (string-remove-prefix "/:" nospecial-dir)))
+            (nospecial-dir (string-remove-prefix "/:" nospecial-dir))
+            ;; Since different `ls' programs can produce different
+            ;; messages for the nonexisting file error, we make a sample
+            ;; message to use for comparing the expected message with
+            ;; the string in the error buffer.
+            (ls-err (lambda (fn)
+		      (let* ((tmpname (make-temp-name "/bug80499-tests-"))
+                             (errlist (string-split (shell-command-to-str=
ing
+                                                    (concat "ls -al " tmp=
name))
+                                                   tmpname)))
+                        (concat (car errlist) fn (cadr errlist))))))
         (should errbuf)
         (with-current-buffer errbuf
-          (should (string-match-p
-                   (format
-                    ;; Use .* around file name to account for different
-                    ;; file-name quoting styles, or no quoting at all.
-                    "%s: cannot access .*%s.*: No such file or directory\=
n"
-                    insert-directory-program nospecial-dir)
-                   (buffer-string))))
+          (should (equal (funcall ls-err nospecial-dir)
+                         (buffer-string))))
         (kill-buffer errbuf)))))
=20
 (ert-deftest files-tests-file-name-non-special-insert-file-contents ()

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 2 Apr 2026 15:30:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 02 11:30:26 2026
Received: from localhost ([127.0.0.1]:44956 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w8K00-0000TG-TQ
	for submit <at> debbugs.gnu.org; Thu, 02 Apr 2026 11:30:26 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:20745)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w8Jzx-0000Pu-A6
 for 80499 <at> debbugs.gnu.org; Thu, 02 Apr 2026 11:30:22 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=EXTQ0kIn
 wWEbFpn/YUgAtqLvvdPSc+UuKZb4grNFVuQ=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=ZUWfs7z3L74z6e3NhiFGnyXMY1fuWq
 YgjiVORchTx8MSxa2Nqm4LW83NY/QuVcJlz8sDrS3ip5SwNk+FS22FCQ==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=EXTQ0kInwWEbFpn/
 YUgAtqLvvdPSc+UuKZb4grNFVuQ=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=RbCRE2zgtaEzSH1ZP/snEhozwDuJ1l2CglB/n6
 FWD+56dFf5EymFp15jZdrS7eUCr+omcxAP6e81tEBAcsbYIMfaqUCNL3hl/dmabDrf6YEj
 yy+CgN6Nel37WqhUGPuMistoKFG3cOeKUjs+XAcIFgj4XK+lrxGSRLDIQeiKb5S3QXOMhi
 YzoGyb2Q448VYXZAA04/5ZfaVunXD2peLBMci1bM3kb2ArrrAUqzHYoHWi96ecl20uCc9s
 YgLikpfbLufyjT5VXewPxuRmmv39YuA9SaIr/bUV7Gg0xoHVkuVVgPViXu4OGTWp/eoSCu
 Fo38q4rES6CWG5UdeyjGMk0A==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 65ae851a
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Thu, 2 Apr 2026 17:30:19 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87a4vmb5pp.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN> <87a4vohnjw.fsf@HIDDEN>
 <86wlysnsiu.fsf@HIDDEN> <877bqsrwmy.fsf@HIDDEN>
 <87fr5ebv6x.fsf@HIDDEN> <87ldf6o9gw.fsf@HIDDEN>
 <87a4vmb5pp.fsf@HIDDEN>
Date: Thu, 02 Apr 2026 17:30:18 +0200
Message-ID: <87fr5dxtv9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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 (-)

Stephen Berman <stephen.berman@HIDDEN> writes:

> On Wed, 01 Apr 2026 19:51:11 +0200 Manuel Giraud <manuel@HIDDEN> wrote:
>
>> Stephen Berman <stephen.berman@HIDDEN> writes:
> [...]
>>> I've also thought about this more, and my take is that creating the file
>>> in a subdirectory is literally hiding the problem, which is, as you
>>> noted, that when Dired displays the directory that the file was created
>>> in, the buffer shows an entry for the file even though the file itself
>>> has already been deleted.  So I think the proper fix is to remove this
>>> entry before displaying the Dired buffer (and then it doesn't matter
>>> where the file is created, but using temporary-file-directory as now is
>>> sensible); however, ...
>>
>> Hi Stephen,
>>
>> Yes, you're right it is better (if possible) to not hide the issue
>> but...
>>
>>>> @Stephen I've seen your other patch but I think it is too overkill (and
>>>> also too dangerous) for such a corner case: what if someone renamed its
>>>> /tmp dired buffer to something else?  What if someone has another "tmp"
>>>> dired buffer with a precious "lserr" file inside?
>>>
>>> ... I agree that my previous patch to remove the Dired entry was a
>>> really bad hack (not only for how the buffer of /tmp is identified
>>> (though it does not use "tmp" literally but temporary-file-directory),
>>> but especially for using a loop and string-match-p).  But I've come up
>>> with what I think is a more viable and robust implementation, and with
>>> it all tests in dired-tests.el and files-tests.el pass.  I don't think
>>> this patch is overkill but a real fix for the problem.
>>
>> ... I've tried your patch and I still see a "lserrxxx" file with the
>> following recipe:
>>
>>         - C-x d ~/tmp ;; a directory I have in my homedir that is not my
>>                       ;; TMPDIR.
>>
>>         - M-& touch lserrfoo ;; Good: this file is there after reverting
>>                              ;; this buffer.
>>
>>         - C-x d /tmp ;; Now, this new buffer is named "tmp<>" and the
>>                      ;; previous one is named "tmp<manuel>". In "tmp<>",
>>                      ;; I see the file "lserrxxx" in "tmp<>"
>
> Ah, that's a nice test case for identifying the buffer displaying
> temporary-file-directory, thanks!  The attached patch does a better job,
> but I'm anxious to see if you can find a problem for it too.  If you do,
> maybe using dired-buffers-for-dir instead of dired-find-buffer-nocreate
> will work for that (though using it would make the code more
> complicated).

Thanks, this works as expected: no more "lserrxxx" entry in a Dired on
/tmp.  So far, I wasn't able to fail it ;-).  What I did test:

       - Create a file named "lserrxxx" under a directory whose buffer
         name is "tmp": works (the file is here).

       - Rename the Dired buffer pointing to /tmp to "foo": works (no
         bogus entry).

       - M-: (make-temp-file "lserr"): also works (the file is in /tmp).
-- 
Manuel Giraud




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

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


Received: (at 80499) by debbugs.gnu.org; 1 Apr 2026 23:50:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 01 19:50:59 2026
Received: from localhost ([127.0.0.1]:33927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w85Ks-0004Oi-R8
	for submit <at> debbugs.gnu.org; Wed, 01 Apr 2026 19:50:59 -0400
Received: from mout.gmx.net ([212.227.17.22]:52017)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w85Kn-0004N1-7p
 for 80499 <at> debbugs.gnu.org; Wed, 01 Apr 2026 19:50:56 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775087444; x=1775692244; i=stephen.berman@HIDDEN;
 bh=haveDnuBeC9+b3UOQzDT3HpIgO211NvZtpiRghfPf1g=;
 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=DtolRB178HxI3k1M/d+Nfu13G1nMCRsvHfgiwneMbh+3RpzxNU+TagAynALTmYgH
 H2CAQknvM/E+qWOwe6D3DvLnrqc5wu3DQh66FWlQ5uMi0urB0B8Kohj1sskts1cPq
 dhPsS+htUdCEls8ZE+GGmHUY4IORzzrceGO/GizTQ5mVaKPw8fYBx1AVczqP+uH95
 0GpRmm9tXc02a6+4jzv0aDn+RXNWoN02qB1ey0urdsmTQasPvONokq7WqmcFDQscn
 2ajW73LleEXlVOkCtDXiQO2zJERqNQQ6TnrJWw/5B7mWEP0MyEMXQAiI+czLT173f
 Fm/DfNSwSM4JK2rQwg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFbRm-1wIVCP3Hw6-00BPVu; Thu, 02
 Apr 2026 01:50:43 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87ldf6o9gw.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <868qbcv3rw.fsf@HIDDEN>
 <87o6k8at3t.fsf@HIDDEN> <86h5q0rlju.fsf@HIDDEN>
 <871ph3bu03.fsf@HIDDEN> <868qbbs02t.fsf@HIDDEN>
 <877bqtjv0v.fsf@HIDDEN> <87mrzph11i.fsf@HIDDEN>
 <87341hjtpo.fsf@HIDDEN> <87ikadgzak.fsf@HIDDEN>
 <87wlyticvx.fsf@HIDDEN> <86se9hp89j.fsf@HIDDEN>
 <87a4vohnjw.fsf@HIDDEN> <86wlysnsiu.fsf@HIDDEN>
 <877bqsrwmy.fsf@HIDDEN> <87fr5ebv6x.fsf@HIDDEN>
 <87ldf6o9gw.fsf@HIDDEN>
Date: Thu, 02 Apr 2026 01:50:42 +0200
Message-ID: <87a4vmb5pp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.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oMUdRKcXuLTTKIqelKVFLsRbw1eZpzeb3ZyLF65cHNPblVqJ8hr6e5U0PEOGTNF
 Dd3dKWzfA1cnrq4JQKLSk2owilRWFjaW2gdgwKpBp3q3vUgHB/obrgVemx5Zp5Z73fgBgZc3E
 xH5FOwJCCH4FB6Lyov4tC5boriN+/d4KsLR7XANpHCDTOPmJJOV8WQ9aZoshsuk2Ov2Tc55xP
 lP6lVUYjp69jBbaQ5AtPX9w7J4Ojg7WuUMDyE9ctLH+SqQX+MTOWaim3BqobQc/3vm3u4xO45
 TTFZlNhyaFKDqqlke4Kd7gHOuZH0SrkHD99RA99ehgZ6jYYnS/L6nJ6xruMMdtWtLb8Q6+p/p
 7CR57wku1trKKtkB2vHSS8AB5dqZ0p4g49KKYt+ly9s/vpRwnvwYHEKxji1VEWtp4MgN8hV9K
 kwGGgR+rlVT7kchBcNKRgsQYsGQGT75uRmJpK3htvKh668wBeBlRDPdvGblaotL+dVRIzyI1h
 dbdMPdCApiWp1cT4q/Q7PIm6FwEOiCWWWJ59+yAaa7sQUd5MoSce1i/bAVSaC75ftqxMw9B9S
 rxCDxbch3lqsqwQ1gVT8lAXZ8CVnGqjRKcItNbZpQXznw=
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Wed, 01 Apr 2026 19:51:11 +0200 Manuel Giraud wrote: >
 Stephen Berman writes: [...] >> I've also thought about this more, and my
 take is that creating the file >> in a subdirectory is literally hiding the
 problem, which is, as you >> noted, that when [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in bl.score.senderscore.com]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.22 listed in list.dnswl.org]
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in sa-accredit.habeas.com]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.22 listed in wl.mailspike.net]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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: 0.3 (/)

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

On Wed, 01 Apr 2026 19:51:11 +0200 Manuel Giraud <manuel@HIDDEN> wrote:

> Stephen Berman <stephen.berman@HIDDEN> writes:
[...]
>> I've also thought about this more, and my take is that creating the file
>> in a subdirectory is literally hiding the problem, which is, as you
>> noted, that when Dired displays the directory that the file was created
>> in, the buffer shows an entry for the file even though the file itself
>> has already been deleted.  So I think the proper fix is to remove this
>> entry before displaying the Dired buffer (and then it doesn't matter
>> where the file is created, but using temporary-file-directory as now is
>> sensible); however, ...
>
> Hi Stephen,
>
> Yes, you're right it is better (if possible) to not hide the issue
> but...
>
>>> @Stephen I've seen your other patch but I think it is too overkill (and
>>> also too dangerous) for such a corner case: what if someone renamed its
>>> /tmp dired buffer to something else?  What if someone has another "tmp"
>>> dired buffer with a precious "lserr" file inside?
>>
>> ... I agree that my previous patch to remove the Dired entry was a
>> really bad hack (not only for how the buffer of /tmp is identified
>> (though it does not use "tmp" literally but temporary-file-directory),
>> but especially for using a loop and string-match-p).  But I've come up
>> with what I think is a more viable and robust implementation, and with
>> it all tests in dired-tests.el and files-tests.el pass.  I don't think
>> this patch is overkill but a real fix for the problem.
>
> ... I've tried your patch and I still see a "lserrxxx" file with the
> following recipe:
>
>         - C-x d ~/tmp ;; a directory I have in my homedir that is not my
>                       ;; TMPDIR.
>
>         - M-& touch lserrfoo ;; Good: this file is there after reverting
>                              ;; this buffer.
>
>         - C-x d /tmp ;; Now, this new buffer is named "tmp<>" and the
>                      ;; previous one is named "tmp<manuel>". In "tmp<>",
>                      ;; I see the file "lserrxxx" in "tmp<>"

Ah, that's a nice test case for identifying the buffer displaying
temporary-file-directory, thanks!  The attached patch does a better job,
but I'm anxious to see if you can find a problem for it too.  If you do,
maybe using dired-buffers-for-dir instead of dired-find-buffer-nocreate
will work for that (though using it would make the code more
complicated).

Steve Berman


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: don't list ls error file in Dired buffer - next try
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/dired.el b/lisp/dired.el
index 4aded86e40d..361a57a2c73 100644
=2D-- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -649,6 +649,9 @@ dired-subdir-regexp
 of the line.
 Subexpression 2 must end right before the \\n.")
=20
+(defvar dired--ls-error-file nil
+  "When non-nil, name of temporary file an `ls' error is written to.")
+
 (defvar dired--ls-error-buffer nil
   "Non-nil if the current dired invocation yields an `ls' error.
 The non-nil value is the buffer containing the error message.")
@@ -1618,7 +1621,22 @@ dired-readin-insert
       ;; Else treat it as a wildcard spec
       ;; unless we have an explicit list of files.
       (dired-insert-directory dir dired-actual-switches
-       file-list (not file-list) t)))))
+                              file-list (not file-list) t)))
+    ;; Every time `temporary-file-directory' is (re)displayed in Dired a
+    ;; new `ls' error file is created and the Dired buffer has an entry
+    ;; for it.  The file itself is deleted in `insert-directory' but its
+    ;; Dired entry remains, so we remove it here. =20
+    (let ((tmpbuf (dired-find-buffer-nocreate temporary-file-directory)))
+      (when tmpbuf
+        (with-current-buffer tmpbuf
+          (widen)
+          (goto-char (point-min))
+          (when (search-forward (file-name-base dired--ls-error-file) nil=
 t)
+            ;; The call chain of `dired-remove-entry' requires non-nil
+            ;; `dired-subdir-alist', but here it is nil, so we set it.
+            (let ((dired-subdir-alist `((,temporary-file-directory
+                                         . ,(point-min-marker)))))
+              (dired-remove-entry dired--ls-error-file))))))))
=20
 (defun dired-align-file (beg end)
   "Align the fields of a file to the ones of surrounding lines.
diff --git a/lisp/files.el b/lisp/files.el
index ebbbd7ff1b6..d210166d320 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8486,6 +8486,8 @@ insert-directory
               (erase-buffer)
               (insert-file-contents errfile))
             (setq dired--ls-error-buffer errbuf)))
+        (defvar dired--ls-error-file) ; Pacify byte-compiler.
+        (setq dired--ls-error-file errfile)
         (delete-file errfile)
=20
         (insert-directory-clean beg switches)

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 1 Apr 2026 18:19:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 01 14:19:48 2026
Received: from localhost ([127.0.0.1]:58813 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w80AK-0003U8-FE
	for submit <at> debbugs.gnu.org; Wed, 01 Apr 2026 14:19:48 -0400
Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]:49881)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jm@HIDDEN>) id 1w80AD-0003Sf-Un
 for 80499 <at> debbugs.gnu.org; Wed, 01 Apr 2026 14:19:42 -0400
Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
 by mailfout.phl.internal (Postfix) with ESMTP id 2A557EC0248;
 Wed,  1 Apr 2026 14:19:32 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-02.internal (MEProxy); Wed, 01 Apr 2026 14:19:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm1; t=1775067572; x=1775153972; bh=QlvFZnqgQG
 dDmG/ZZqZ+JDPbTgW0NLrO6shWnrKOmP4=; b=BvqpBZ0E2P9HwUAhX6X43NWsmb
 ndaxXi1HV6zdeCAPvMs6JrECID/vtc06A8oq1RCX9XEIzlU79lSeIvVNYh8C3Eac
 enb1GZomq2zbzx8KEwPV4DCVsOKqnMF7GEGaHfrxf/uRTLwffP/9DHsrjpW77qq4
 B+6BArY0SHOHvIjGAf8v/DY9ZmukFwDkKZJU/1t6Hu8E5ydDgmf1N9B/8arHmP2m
 SHe2BvHCe6W4R9hTt0zdV4GcYhHG7KAcTV97nq9v9A0X3LKy3tSu4OS1ljW5/pGP
 kWUhZ2QvPjhOAcdy0KUwIa1nVfTDSzRp/psXwmnpuQ8cAY1Nm1C6ZKiCaWew==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
 1775067572; x=1775153972; bh=QlvFZnqgQGdDmG/ZZqZ+JDPbTgW0NLrO6sh
 WnrKOmP4=; b=iS3XzJ8IK1eo81oURkhwFl9OJUz+gHZwvxFOtqJf0ig6if762ST
 G8ZiskySXN3OWv9jgshmtRb5K3YscxLTaT6Fcs70xw1a0xOmsZOGPDZAnz2ffIpg
 cH1h6a191o9o3EuB0tmS7UWLO4y0/hG+7/jv8e9gp/zXLo7ryh1a0kapDxiOAzz2
 imhMoLiDiYiLX3CMH7aRQoU5Kssmlxa0Epqp8Za5aJvDtWLyZ5kuLlqrkM78rGGU
 vYJsvBpuOSTrWFbczto56v/5vgRVEXhM9kwDQuxQSwMh9yq2LC3BjJltPB0xSH8C
 441odvY4/frKAzpSAWM9J8GX6MO+jh9UErA==
X-ME-Sender: <xms:s2HNaZRJ_PgD53VnaTlVwpTOF2x8zzRHXHf4kLbU92o0op2rgoQaTQ>
 <xme:s2HNaYzribKYmJEst4oGhmwFFkHqwPWxofiFJWRtp-nSF647XKmfaJgmdazOzb_Wq
 s-1OUthTT2bxwKNBz1lTbq0DYVoTvpNBaZ3aFDr194dPnOqoOndwnQ>
X-ME-Received: <xmr:s2HNaccIsq9UidiwzPwE7lpJmDZ74_wg2mLVI65RfRely0ZLIJUxoi1jZKneC5TtgbZueJ1FOFx20E9g90eCet1ZZQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdefkedvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi
 lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh
 ephffvvefujghffffkfgggtgesmhdtreertdertdenucfhrhhomhepjhhohhhnuchmuhhh
 lhcuoehjmhesphhusgdrphhinhhkqeenucggtffrrghtthgvrhhnpefhhfevieeiffeffe
 efvdeiteeigeegfeejleduffdtueetveehheefgfdvvedugfenucevlhhushhtvghrufhi
 iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjmhesphhusgdrphhinhhkpdhnsg
 gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeektdegleel
 seguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepshhtvghphhgvnhdrsggvrh
 hmrghnsehgmhigrdhnvght
X-ME-Proxy: <xmx:s2HNacLP_pOe76YS3WSZ7FdkfSVnLnYlTL7jCcnvMGesED3WN4skCA>
 <xmx:s2HNaVE_xZ5Q1v9B8lv4DwnGp1NdfHo3K6Mp8jO-GvZO4IH-kXd8lw>
 <xmx:s2HNaeqmIgsyfJCn5x4gMyr-c6Jjozf1pwmyCsO7QRA3BpZIkr4LqA>
 <xmx:s2HNaWQABIekG8Sahm2ZoBerOA-8G1jK6czfo4XANEkdQTRaWofQ0Q>
 <xmx:tGHNafZhyGNR_pbMuYlKNqdfST1YC0xktor33qGp7hTXHLaqXlJabdRZ>
Feedback-ID: i74194916:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 1 Apr 2026 14:19:31 -0400 (EDT)
From: john muhl <jm@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87qzp546yj.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN>
Date: Wed, 01 Apr 2026 13:19:29 -0500
Message-ID: <87tstuwnke.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Stephen Berman via "Bug reports for GNU Emacs, the Swiss army
 knife of text editors" <bug-gnu-emacs@HIDDEN> writes: > On Fri, 27 Mar 2026
 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote: > >>> From: Stephen Berman
 <stephen.berman@HIDDEN> >>> Cc: fgunbin@HIDDEN, 80499 <at> debbugs.gnu.org
 >>> Date: Thu, 26 Mar 20 [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [103.168.172.151 listed in sa-trusted.bondedsender.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [103.168.172.151 listed in bl.score.senderscore.com]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [103.168.172.151 listed in list.dnswl.org]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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: 0.3 (/)

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

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

> On Fri, 27 Mar 2026 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
>
>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>>> Date: Thu, 26 Mar 2026 19:29:02 +0100
>>> 
>>> So if you find these changes acceptable, I think they're now ready to be
>>> installed.
>>
>> Assuming all the Dired-related tests pass, please do, and thanks.
>
> The patch contained a thinko, but fortunately running `make check'
> caught it (two tests outside of dired-tests.el and files-tests.el
> failed) and I quickly found and fixed the problem and once again
> adjusted the test `dired-test-ls-error-message' (which I had previously
> adjusted to pass with the (then unbeknownst to me) faulty code).  Now
> all regression tests pass (except two network tests for reasons probably
> specific to my system and unrelated to Dired), so I've gone ahead and
> pushed the corrected patch (with a NEWS entry also added) to master as
> commit 3b7d9e37ce0.  Thanks again for all the feedback.

It looks like this caused a few tests to start failing on Alpine
where ls is provided by busybox.


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=dired-tests.log

Running 22 tests (2026-03-27 15:49:18+0000, selector `(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))')
   passed   1/22  dired-autoload (0.000140 sec)
ls does not support --dired -N; see `dired-use-ls-dired' for more details.
Marking matching files...
Checking /root/emacs/test/bug22694/test
1 matching file marked
   passed   2/22  dired-test-bug22694 (0.055827 sec)
Copy: 1 of 1
Copy: 1 file done
Copy: 1 of 1
Copy: 1 file done
   passed   3/22  dired-test-bug25609 (0.009684 sec)
Saved pos: ((#<buffer emacs-test-pDIvqq-dired> nil 4) nil nil)
Saved pos: ((#<buffer emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4) ((#<window 1 on emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4)) nil)
Saved pos: ((#<buffer emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4) ((#<window 1 on emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4)) nil)
Saved pos: ((#<buffer emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4) ((#<window 1 on emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4)) nil)
Saved pos: ((#<buffer emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4) ((#<window 1 on emacs-test-pDIvqq-dired> "/tmp/emacs-test-pDIvqq-dired/test-subdir" 4)) nil)
   passed   4/22  dired-test-bug27243-01 (0.010676 sec)
   passed   5/22  dired-test-bug27243-02 (0.009540 sec)
   passed   6/22  dired-test-bug27243-03 (0.022072 sec)
   passed   7/22  dired-test-bug27631 (0.003693 sec)
   passed   8/22  dired-test-bug27940 (0.039890 sec)
   passed   9/22  dired-test-bug27968 (0.004871 sec)
   passed  10/22  dired-test-bug59047 (0.005929 sec)
   passed  11/22  dired-test-bug7131 (0.091559 sec)
   passed  12/22  dired-test-directory-files (0.003259 sec)
   passed  13/22  dired-test-directory-files-and-attributes (0.002902 sec)
   passed  14/22  dired-test-filename-with-backslash-n (0.008341 sec)
Warning (dired): Literal newline in file name.
This Dired buffer displays a file name containing a literal newline character.
Executing Dired operations on files displayed this way may fail and signal an
error.  To avoid this you can temporarily change the display for all Dired
buffers, so that newlines in file names appear as "\n", by typing `M-:' and
entering `(setopt dired-auto-toggle-b-switch t)' in the minibuffer.  To change
the display only for this Dired buffer click or press RETURN `here'.
See `(emacs) Dired Enter' for other alternatives and more information.
Test dired-test-filename-with-newline-1 backtrace:
  search-backward("\n" 246 nil nil)
  apply(search-backward ("\n" 246))
  #f(compiled-function () #<bytecode -0x1d17e73776247fc7>)()
  #f(compiled-function () #<bytecode -0x121633815a9662bb>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x121633815a9662b
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name dired-test-filename-with-newline-1 :d
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test dired-test-filename-with-newline-1 condition:
    (search-failed "\n")
   FAILED  15/22  dired-test-filename-with-newline-1 (0.006058 sec) at lisp/dired-tests.el:661
Directory has changed on disk; type g to update Dired
Test dired-test-filename-with-newline-2 backtrace:
  signal(error ("No file on this line"))
  error("No file on this line")
  dired-move-to-end-of-filename()
  #f(compiled-function () #<bytecode 0x1b50c2a61e2079a4>)()
  #f(compiled-function () #<bytecode -0x121633815a9662bb>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x121633815a9662b
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name dired-test-filename-with-newline-2 :d
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test dired-test-filename-with-newline-2 condition:
    (error "No file on this line")
   FAILED  16/22  dired-test-filename-with-newline-2 (0.006655 sec) at lisp/dired-tests.el:693
   passed  17/22  dired-test-hide-absolute-location-disabled (0.012801 sec)
   passed  18/22  dired-test-hide-absolute-location-enabled (0.007403 sec)
Test dired-test-ls-error-message backtrace:
  signal(ert-test-failed (((should (equal (buffer-string) (concat "ls:
  ert-fail(((should (equal (buffer-string) (concat "ls: cannot access 
  #f(compiled-function () #<bytecode -0x17b18ec57d0e6755>)()
  #f(compiled-function () #<bytecode -0x121633815a9662bb>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x121633815a9662b
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name dired-test-ls-error-message :document
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test dired-test-ls-error-message condition:
    (ert-test-failed
     ((should
       (equal (buffer-string)
	      (concat "ls: cannot access '"
		      ... "': No such file or directory\n")))
      :form
      (equal "ls: bla: No such file or directory\n"
	     "ls: cannot access 'bla': No such file or directory\n")
      :value nil :explanation
      (arrays-of-different-length 35 51
				  "ls: bla: No such file or directory\n"
				  "ls: cannot access 'bla': No such file or directory\n"
				  first-mismatch-at 4)))
   FAILED  19/22  dired-test-ls-error-message (0.005658 sec) at lisp/dired-tests.el:722
   passed  20/22  files-tests-bug-50630 (0.001832 sec)
   passed  21/22  files-tests-insert-directory-shows-files (0.005012 sec)
   passed  22/22  files-tests-insert-directory-shows-free (0.003973 sec)

Ran 22 tests, 19 results as expected, 3 unexpected (2026-03-27 15:49:19+0000, 0.546692 sec)

3 unexpected results:
   FAILED  dired-test-filename-with-newline-1
   FAILED  dired-test-filename-with-newline-2
   FAILED  dired-test-ls-error-message


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=files-tests.log

Running 121 tests (2026-03-27 15:49:25+0000, selector `(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))')
   passed    1/121  files-colon-path (0.000090 sec)
Loading /tmp/emacs-test-Nv9q9R-files/compile-utf8.el (source)...
Loading /tmp/emacs-test-Nv9q9R-files/compile-utf8.elc...
uncompressing compile-utf8.elc.gz...
uncompressing compile-utf8.elc.gz...done
Loading /tmp/emacs-test-Nv9q9R-files/compile-utf8.elc.gz...
Loading /tmp/emacs-test-Nv9q9R-files/compile-utf8.elc.gz...done.
   passed    2/121  files-load-elc-gz-file (0.021209 sec)
   passed    3/121  files-test-auto-save-name-default (0.000053 sec)
   passed    4/121  files-test-auto-save-name-transform (0.000048 sec)
   passed    5/121  files-test-auto-save-name-unique (0.000069 sec)
   passed    6/121  files-test-dir-locals-2-paired (0.026177 sec)
   passed    7/121  files-test-dir-locals-2-solo (0.013681 sec)
Ignoring invalid mode `foobar'
Ignoring invalid mode `(lambda nil)'
Ignoring invalid mode `dired-mode'
   passed    8/121  files-test-dir-locals-auto-mode-alist (0.062008 sec)
   passed    9/121  files-test-file-size-human-readable (0.000126 sec)
   passed   10/121  files-test-locate-user-emacs-file (0.002800 sec)
   passed   11/121  files-test-lock-name-default (0.000066 sec)
   passed   12/121  files-test-lock-name-unique (0.000092 sec)
   passed   13/121  files-test-magic-mode-alist-doctype (0.164811 sec)
   passed   14/121  files-test-magic-mode-alist-re-baseline (0.000253 sec)
   passed   15/121  files-test-magic-mode-alist-re-case-diff (0.000291 sec)
   passed   16/121  files-test-magic-mode-alist-re-no-match (0.000287 sec)
   passed   17/121  files-test-set-mode (0.012976 sec)
   passed   18/121  files-test-set-mode-multiple (0.015615 sec)
Ignoring unknown mode `notexist-mode'
   passed   19/121  files-test-set-mode-prop-line (0.012722 sec)
   passed   20/121  files-tests--bug75961 (0.002393 sec)
   passed   21/121  files-tests--expand-wildcards (0.000167 sec)
   passed   22/121  files-tests-abbreviate-file-name-directory-abbrev-alist (0.000088 sec)
   passed   23/121  files-tests-abbreviate-file-name-homedir (0.000089 sec)
   passed   24/121  files-tests-abbreviated-home-dir (0.000168 sec)
   passed   25/121  files-tests-auto-mode-alist (0.001125 sec)
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Can't guess python-indent-offset, using defaults: 4
Can't guess python-indent-offset, using defaults: 4
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Can't guess python-indent-offset, using defaults: 4
   passed   26/121  files-tests-auto-mode-interpreter (0.074718 sec)
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n


Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n


Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

   passed   27/121  files-tests-buffer-offer-save (0.028762 sec)
uncompressing emacs-test-files-bug-181415KesNk.gz...
uncompressing emacs-test-files-bug-181415KesNk.gz...done
compressing emacs-test-files-bug-181415KesNk.gz...
compressing emacs-test-files-bug-181415KesNk.gz...done
Wrote /tmp/emacs-test-files-bug-181415KesNk.gz
   passed   28/121  files-tests-bug-18141 (0.038050 sec)
   passed   29/121  files-tests-bug-21454 (0.000173 sec)
   passed   30/121  files-tests-copy-directory (0.054742 sec)
   passed   31/121  files-tests-executable-find (0.000476 sec)
   passed   32/121  files-tests-file-modes-number-to-symbolic (0.000064 sec)
   passed   33/121  files-tests-file-modes-symbolic-to-number (0.000162 sec)
   passed   34/121  files-tests-file-name-base (0.000084 sec)
   passed   35/121  files-tests-file-name-non-special--buffers (0.000474 sec)
(Shell command succeeded with no output)
   passed   36/121  files-tests-file-name-non-special--subprocess (0.003234 sec)
   passed   37/121  files-tests-file-name-non-special-abbreviate-file-name (0.000125 sec)
   passed   38/121  files-tests-file-name-non-special-access-file (0.001171 sec)
   passed   39/121  files-tests-file-name-non-special-add-name-to-file (0.001804 sec)
   passed   40/121  files-tests-file-name-non-special-byte-compiler-base-file-name (0.000948 sec)
   passed   41/121  files-tests-file-name-non-special-copy-directory (0.002024 sec)
   passed   42/121  files-tests-file-name-non-special-copy-file (0.001399 sec)
   passed   43/121  files-tests-file-name-non-special-delete-directory (0.001037 sec)
   passed   44/121  files-tests-file-name-non-special-delete-file (0.001102 sec)
   passed   45/121  files-tests-file-name-non-special-diff-latest-backup-file (0.002726 sec)
   passed   46/121  files-tests-file-name-non-special-directory-file-name (0.001194 sec)
   passed   47/121  files-tests-file-name-non-special-directory-files (0.001095 sec)
   passed   48/121  files-tests-file-name-non-special-directory-files-and-attributes (0.001143 sec)
Uncompressing /tmp/files-testsV7TF8I/files-testszIiZao.gz... \
Uncompressing /tmp/files-testsV7TF8I/files-testszIiZao.gz...done
   passed   49/121  files-tests-file-name-non-special-dired-compress-handler (0.004259 sec)
   passed   50/121  files-tests-file-name-non-special-dired-uncache (0.001003 sec)
   passed   51/121  files-tests-file-name-non-special-expand-file-name (0.000962 sec)
   passed   52/121  files-tests-file-name-non-special-expand-file-name-tilde (0.001040 sec)
   passed   53/121  files-tests-file-name-non-special-file-accessible-directory-p (0.001139 sec)
   passed   54/121  files-tests-file-name-non-special-file-acl (0.001294 sec)
   passed   55/121  files-tests-file-name-non-special-file-attributes (0.001039 sec)
   passed   56/121  files-tests-file-name-non-special-file-directory-p (0.001095 sec)
   passed   57/121  files-tests-file-name-non-special-file-equal-p (0.002659 sec)
   passed   58/121  files-tests-file-name-non-special-file-executable-p (0.000974 sec)
   passed   59/121  files-tests-file-name-non-special-file-exists-p (0.000965 sec)
   passed   60/121  files-tests-file-name-non-special-file-in-directory-p (0.002687 sec)
   passed   61/121  files-tests-file-name-non-special-file-local-copy (0.000926 sec)
   passed   62/121  files-tests-file-name-non-special-file-modes (0.000984 sec)
   passed   63/121  files-tests-file-name-non-special-file-name-all-completions (0.001370 sec)
   passed   64/121  files-tests-file-name-non-special-file-name-as-directory (0.000983 sec)
   passed   65/121  files-tests-file-name-non-special-file-name-case-insensitive-p (0.001005 sec)
   passed   66/121  files-tests-file-name-non-special-file-name-completion (0.001298 sec)
   passed   67/121  files-tests-file-name-non-special-file-name-directory (0.001020 sec)
   passed   68/121  files-tests-file-name-non-special-file-name-nondirectory (0.000896 sec)
   passed   69/121  files-tests-file-name-non-special-file-name-sans-versions (0.000938 sec)
   passed   70/121  files-tests-file-name-non-special-file-newer-than-file-p (0.001259 sec)
   passed   71/121  files-tests-file-name-non-special-file-ownership-preserved-p (0.000976 sec)
   passed   72/121  files-tests-file-name-non-special-file-readable-p (0.000894 sec)
   passed   73/121  files-tests-file-name-non-special-file-regular-p (0.000912 sec)
   passed   74/121  files-tests-file-name-non-special-file-remote-p (0.000818 sec)
   passed   75/121  files-tests-file-name-non-special-file-selinux-context (0.000847 sec)
   passed   76/121  files-tests-file-name-non-special-file-symlink-p (0.000915 sec)
   passed   77/121  files-tests-file-name-non-special-file-truename (0.001033 sec)
   passed   78/121  files-tests-file-name-non-special-file-writable-p (0.000935 sec)
   passed   79/121  files-tests-file-name-non-special-find-backup-file-name (0.001088 sec)
   passed   80/121  files-tests-file-name-non-special-get-file-buffer (0.001000 sec)
Test files-tests-file-name-non-special-insert-directory backtrace:
  signal(ert-test-failed (((should (equal (buffer-string) (concat "ls:
  ert-fail(((should (equal (buffer-string) (concat "ls: cannot access 
  #f(compiled-function () #<bytecode 0xe8a23d57a9aaabc>)()
  #f(compiled-function () #<bytecode 0x34d6f18d042d5c6>)()
  handler-bind-1(#f(compiled-function () #<bytecode 0x34d6f18d042d5c6>
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name files-tests-file-name-non-special-ins
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test files-tests-file-name-non-special-insert-directory condition:
    (ert-test-failed
     ((should
       (equal (buffer-string)
	      (concat "ls: cannot access '" nospecial-dir
		      "': No such file or directory\n")))
      :form
      (equal
       "ls: /tmp/files-testsAAcNad/files-teststeXGKi.special: No such file or directory\n"
       "ls: cannot access '/tmp/files-testsAAcNad/files-teststeXGKi.special': No such file or directory\n")
      :value nil :explanation
      (arrays-of-different-length 80 96
				  "ls: /tmp/files-testsAAcNad/files-teststeXGKi.special: No such file or directory\n"
				  "ls: cannot access '/tmp/files-testsAAcNad/files-teststeXGKi.special': No such file or directory\n"
				  first-mismatch-at 4)))
   FAILED   81/121  files-tests-file-name-non-special-insert-directory (0.003675 sec) at lisp/files-tests.el:1020
   passed   82/121  files-tests-file-name-non-special-insert-file-contents (0.001000 sec)
   passed   83/121  files-tests-file-name-non-special-load (0.001133 sec)
   passed   84/121  files-tests-file-name-non-special-make-auto-save-file-name (0.009048 sec)
   passed   85/121  files-tests-file-name-non-special-make-directory (0.001095 sec)
   passed   86/121  files-tests-file-name-non-special-make-nearby-temp-file (0.000201 sec)
   passed   87/121  files-tests-file-name-non-special-make-process (0.000380 sec)
   passed   88/121  files-tests-file-name-non-special-make-symbolic-link (0.002864 sec)
   passed   89/121  files-tests-file-name-non-special-notify-handlers (0.001882 sec)
   passed   90/121  files-tests-file-name-non-special-quote-unquote (0.000126 sec)
   passed   91/121  files-tests-file-name-non-special-rename-file (0.002804 sec)
   passed   92/121  files-tests-file-name-non-special-set-file-acl (0.001277 sec)
   passed   93/121  files-tests-file-name-non-special-set-file-modes (0.001205 sec)
   passed   94/121  files-tests-file-name-non-special-set-file-selinux-context (0.001040 sec)
   passed   95/121  files-tests-file-name-non-special-set-file-times (0.001125 sec)
   passed   96/121  files-tests-file-name-non-special-set-visited-file-modtime (0.007207 sec)
   passed   97/121  files-tests-file-name-non-special-shell-command (0.019774 sec)
   passed   98/121  files-tests-file-name-non-special-start-file-process (0.014603 sec)
   passed   99/121  files-tests-file-name-non-special-substitute-in-file-name (0.000938 sec)
   passed  100/121  files-tests-file-name-non-special-temporary-file-directory (0.000971 sec)
   passed  101/121  files-tests-file-name-non-special-unhandled-file-name-directory (0.000786 sec)
   passed  102/121  files-tests-file-name-non-special-vc-registered (0.002419 sec)
   passed  103/121  files-tests-file-name-non-special-write-region (0.001413 sec)
   passed  104/121  files-tests-file-name-with-extension-bad (0.000069 sec)
   passed  105/121  files-tests-file-name-with-extension-good (0.000070 sec)
   passed  106/121  files-tests-insert-directory-wildcard-in-dir-p (0.000200 sec)
   passed  107/121  files-tests-local-variables (0.004162 sec)
   passed  108/121  files-tests-make-directory (0.001248 sec)
   passed  109/121  files-tests-make-temp-file-empty-prefix (0.000607 sec)
   passed  110/121  files-tests-no-file-write-contents (0.001891 sec)
   passed  111/121  files-tests-permanent-local-variables (0.000180 sec)
   passed  112/121  files-tests-read-file-in-~ (0.000550 sec)
   passed  113/121  files-tests-revert-buffer (0.002448 sec)
   passed  114/121  files-tests-revert-buffer-with-fine-grain (0.002534 sec)
   passed  115/121  files-tests-safe-local-variable-directories (0.000334 sec)
  skipped  116/121  files-tests-save-buffer-read-only-file (0.000600 sec)
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-1? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) 
Save buffer buf-2? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) n

   passed  117/121  files-tests-save-buffers-kill-emacs--asks-to-save-buffers (0.009935 sec)
   passed  118/121  files-tests-save-buffers-kill-emacs--confirm-kill-processes (0.000453 sec)
























   passed  119/121  files-tests-save-some-buffers (0.074205 sec)
   passed  120/121  files-tests-zzdont-rewrite-precious-files (0.002033 sec)
   passed  121/121  test-file-name-split (0.000091 sec)

Ran 121 tests, 119 results as expected, 1 unexpected, 1 skipped (2026-03-27 15:49:26+0000, 0.895623 sec)

1 unexpected results:
   FAILED  files-tests-file-name-non-special-insert-directory

1 skipped results:
  SKIPPED  files-tests-save-buffer-read-only-file


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=wdired-tests.log

Running 7 tests (2026-03-27 15:49:35+0000, selector `(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))')
ls does not support --dired -N; see `dired-use-ls-dired' for more details.
Press C-c C-c when finished or C-c ESC to abort changes
Renaming...
Move: 1 of 1
Move: 1 file done
Renaming...done
   passed  1/7  wdired-test-bug32173-01 (0.014234 sec)
Press C-c C-c when finished or C-c ESC to abort changes
Renaming...
Renaming...done
   passed  2/7  wdired-test-bug32173-02 (0.006350 sec)
Test wdired-test-bug34915 backtrace:
  signal(error ("/tmp/emacs-test-eGuhdk-wdired/ is a directory"))
  error("%s is a directory" "/tmp/emacs-test-eGuhdk-wdired/")
  find-file-noselect("/tmp/emacs-test-eGuhdk-wdired/")
  #f(compiled-function () #<bytecode 0x21beda35d24e1ed>)()
  #f(compiled-function () #<bytecode 0x6679a0eb808235f>)()
  handler-bind-1(#f(compiled-function () #<bytecode 0x6679a0eb808235f>
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name wdired-test-bug34915 :documentation "
  ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [... 
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test wdired-test-bug34915 condition:
    (error "/tmp/emacs-test-eGuhdk-wdired/ is a directory")
   FAILED  3/7  wdired-test-bug34915 (0.003377 sec) at lisp/wdired-tests.el:134
Press C-c C-c when finished or C-c ESC to abort changes
(No changes to be performed)
   passed  4/7  wdired-test-bug39280 (0.006447 sec)
Press C-c C-c when finished or C-c ESC to abort changes
(No changes to be performed)
   passed  5/7  wdired-test-bug61510 (0.005451 sec)
Press C-c C-c when finished or C-c ESC to abort changes
   passed  6/7  wdired-test-symlink-name (0.005569 sec)
Press C-c C-c when finished or C-c ESC to abort changes
   passed  7/7  wdired-test-unfinished-edit-01 (0.003924 sec)

Ran 7 tests, 6 results as expected, 1 unexpected (2026-03-27 15:49:35+0000, 0.175033 sec)

1 unexpected results:
   FAILED  wdired-test-bug34915


--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 1 Apr 2026 17:51:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 01 13:51:22 2026
Received: from localhost ([127.0.0.1]:58656 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7ziq-0008FM-9t
	for submit <at> debbugs.gnu.org; Wed, 01 Apr 2026 13:51:21 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:4257)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w7zil-0008Ek-ER
 for 80499 <at> debbugs.gnu.org; Wed, 01 Apr 2026 13:51:18 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=6UVNGUn7
 e2Akf6atpiFdRLGirghDUJERQshs6ulQ2x4=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=67QrnXBEjchXbRvaPLUaxkwAOjpB6s
 Wx1sYDnx8oS4GMMyTeAjSTEYSvwuFoG3vh01a75pRpfnh9yqc6UdaVCA==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=6UVNGUn7e2Akf6at
 piFdRLGirghDUJERQshs6ulQ2x4=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=yOL6LsLISrnnLGmBXEY3HoJX9net+sHeJgrnAc
 CoNr2bv/vWMjh3dqlJqMTAveSAmNjffbKcoBQQvXnze6RWvWKpAysSjjouVCAZ7+C5Kdmr
 py4HbO2Jju9ddU38sUA9ryJcdrUMgxIVi5paf2+jMmMHbZLClX0a2Xc3SFHRUsphlX4tfh
 oxkJKPoG9C18b6OTtPDJBxklmYP43VLJwoMQJNR2calck6tD20WbTYgXJiEERLL8UdpAoa
 IV2gRhOmyoFYaBmoeewl4rtyi3VI/YV0CXg2vwHatM7YUIESlsa7RpjwIOMji0UWSYaNbs
 d8FQmHzLbRdFmVdDFNZJ6p6A==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 56e4ebe0
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Wed, 1 Apr 2026 19:51:12 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87fr5ebv6x.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN> <87a4vohnjw.fsf@HIDDEN>
 <86wlysnsiu.fsf@HIDDEN> <877bqsrwmy.fsf@HIDDEN>
 <87fr5ebv6x.fsf@HIDDEN>
Date: Wed, 01 Apr 2026 19:51:11 +0200
Message-ID: <87ldf6o9gw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Stephen Berman <stephen.berman@HIDDEN> writes: > On Tue,
 31 Mar 2026 14:50:13 +0200 Manuel Giraud <manuel@HIDDEN> wrote: >
 >> Eli Zaretskii <eliz@HIDDEN> writes: >> >>>> From: Stephen Berman
 <stephen.berman@HIDDEN> >>>> Cc: Manuel Giraud [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in sa-accredit.habeas.com]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in bl.score.senderscore.com]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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 (+)

Stephen Berman <stephen.berman@HIDDEN> writes:

> On Tue, 31 Mar 2026 14:50:13 +0200 Manuel Giraud <manuel@HIDDEN> wrote:
>
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>
>>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>>> Cc: Manuel Giraud <manuel@HIDDEN>,  80499 <at> debbugs.gnu.org,
>>>>   fgunbin@HIDDEN
>>>> Date: Tue, 31 Mar 2026 02:04:19 +0200
>>>> 
>>>> > Stephen, how about placing this file in a subdirectory of /tmp
>>>> > instead?  Since our test suite does that all the time, I guess it's
>>>> > okay for Dired to do that as well.
>>>> 
>>>> Sure, that works fine, but it's essentially a slightly more complicated
>>>> variant of the alternative I suggested in my subsequent followup to
>>>> Manuel:
>>>> 
>>>>   create the temporary file just once and then reuse it.  This would
>>>>   still update at least the timestamp on every redisplay of the
>>>>   directory in Dired, but it wouldn't change the file name.
>>>
>>> I thought Manuel's problem was to see the file directly under /tmp, in
>>> which case what you propose won't solve it.  But it sounds like I
>>> misunderstood.
>>
>> My problem is more to have a file that changes everytime I revert this
>> /tmp dired buffer and also that this file does not really exists (I
>> cannot find it in any other way because it really does not exist
>> anymore).
>>
>> Thinking about this a bit more, I've come to the conclusion that Eli's
>> solution to create this file inside a subdirectory might be the best
>> one.
>>
>> I don't know if this the right place to put such a file but, for
>> example, as I'm using the Emacs' server, I already have a file name
>> "/tmp/run/user/<UID>/emacs/server"
>
> I've also thought about this more, and my take is that creating the file
> in a subdirectory is literally hiding the problem, which is, as you
> noted, that when Dired displays the directory that the file was created
> in, the buffer shows an entry for the file even though the file itself
> has already been deleted.  So I think the proper fix is to remove this
> entry before displaying the Dired buffer (and then it doesn't matter
> where the file is created, but using temporary-file-directory as now is
> sensible); however, ...

Hi Stephen,

Yes, you're right it is better (if possible) to not hide the issue
but...

>> @Stephen I've seen your other patch but I think it is too overkill (and
>> also too dangerous) for such a corner case: what if someone renamed its
>> /tmp dired buffer to something else?  What if someone has another "tmp"
>> dired buffer with a precious "lserr" file inside?
>
> ... I agree that my previous patch to remove the Dired entry was a
> really bad hack (not only for how the buffer of /tmp is identified
> (though it does not use "tmp" literally but temporary-file-directory),
> but especially for using a loop and string-match-p).  But I've come up
> with what I think is a more viable and robust implementation, and with
> it all tests in dired-tests.el and files-tests.el pass.  I don't think
> this patch is overkill but a real fix for the problem.

... I've tried your patch and I still see a "lserrxxx" file with the
following recipe:

        - C-x d ~/tmp ;; a directory I have in my homedir that is not my
                      ;; TMPDIR.

        - M-& touch lserrfoo ;; Good: this file is there after reverting
                             ;; this buffer.

        - C-x d /tmp ;; Now, this new buffer is named "tmp<>" and the
                     ;; previous one is named "tmp<manuel>". In "tmp<>",
                     ;; I see the file "lserrxxx" in "tmp<>"
-- 
Manuel Giraud




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

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


Received: (at 80499) by debbugs.gnu.org; 1 Apr 2026 14:40:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 01 10:40:38 2026
Received: from localhost ([127.0.0.1]:57186 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7wkI-0000Ya-3d
	for submit <at> debbugs.gnu.org; Wed, 01 Apr 2026 10:40:38 -0400
Received: from mout.gmx.net ([212.227.15.18]:53779)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w7wkC-0000Xy-Ql
 for 80499 <at> debbugs.gnu.org; Wed, 01 Apr 2026 10:40:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1775054423; x=1775659223; i=stephen.berman@HIDDEN;
 bh=Pp6hl+E71kKOuU1RyAG3VCNfhRP9VLZ22ZKPdwQ3xko=;
 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=KvT325T16qeORQxUaoQQgKvWFHhj3/d1xOKK2Xdc+FbHl2IULePNpUDHxBEXncpJ
 FD8ejgtf6JM+aTiKVB00Xr+BNF8x6itadjoWlJxr1NH1zeGK7mmEXBuOnGFj6sAAu
 Y5LFgj0IwU2+GrFfaTrAGyH0Q+WD69aVQBg9ZwxQC0Ge08euMzztRD5nlenxiOxLd
 NN11m+hISCTmIyxSEudgq9TX4avCHK1/MyC3r1d3KAtN0s+qQY3wTOCDsK7SbMNE/
 FHZ06uYPYcKVYxfFWCenu8jwkvEd4tVRqfFbfIIPih5wC2iY2hQBM+QO56b5RJZZ1
 ysJYuGPoAttYVkxUJQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MsYqv-1vFQDM19Vj-00rAVv; Wed, 01
 Apr 2026 16:40:23 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <877bqsrwmy.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <868qbcv3rw.fsf@HIDDEN>
 <87o6k8at3t.fsf@HIDDEN> <86h5q0rlju.fsf@HIDDEN>
 <871ph3bu03.fsf@HIDDEN> <868qbbs02t.fsf@HIDDEN>
 <877bqtjv0v.fsf@HIDDEN> <87mrzph11i.fsf@HIDDEN>
 <87341hjtpo.fsf@HIDDEN> <87ikadgzak.fsf@HIDDEN>
 <87wlyticvx.fsf@HIDDEN> <86se9hp89j.fsf@HIDDEN>
 <87a4vohnjw.fsf@HIDDEN> <86wlysnsiu.fsf@HIDDEN>
 <877bqsrwmy.fsf@HIDDEN>
Date: Wed, 01 Apr 2026 16:40:22 +0200
Message-ID: <87fr5ebv6x.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:Gh0lcJME7lj9O9CL0xT7S9gQdjAfoo8Wt9iYs9mjuIzxrbrmHfY
 W3uiJGBGDlRKjI8KKHqLUUXJrl0rR1c8PNwcReulTYT5Zd8yN7GtWbHSfCjHpSHHuuUZtwc
 kJuE1gupEunYn3BiaH0LYcmdgV1oAROGeuFF/rc5p5Pw8BtqoG++8LTWo2JfQ2j1iLJ6DJv
 kuup3PV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edlQMbvIZ1+lDjAjxl0PbiFk1Qu+ng2XXkS
 ilrJM/njqByNwlUnWj0Y/aBTQBOWX3ylCdEIY9cIzyVAaI87nY5GDUtKaryRsmLOBipZ6wovT
 GgUUkCq6R01MUTn+/WPqVlo8+LJghI3ahYEwh8jjSrlRMvtmpCzNOUU9n/A/XOIo44pp0mtWt
 a3G3PIM3OSN9auFfq25Fes4oS4siUeEejMll1hCosB4Nk/2qNiO7yMXTcxR5Y2iMRJntzRUVq
 HKVqj/7/ynuQjQEQRGkT4GTcHRfS+cDVL4bnngTTsw+1q6bcGYJyf481QM0RU/6teaDaYWxaJ
 PgM2R7z6dgoRg2SmpP3PnOHg==
X-Spam-Score: 2.3 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Tue, 31 Mar 2026 14:50:13 +0200 Manuel Giraud wrote: >
 Eli Zaretskii writes: > >>> From: Stephen Berman >>> Cc: Manuel Giraud ,
 80499 <at> debbugs.gnu.org, 
 >>> fgunbin@HIDDEN >>> Date: Tue, 31 Mar 2026 02:04:19 +0200 >>> >>>
 > Stephen, how about pl [...] 
 Content analysis details:   (2.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in sa-accredit.habeas.com]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in bl.score.senderscore.com]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.15.18 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
 [212.227.15.18 listed in wl.mailspike.net]
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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: 0.3 (/)

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

On Tue, 31 Mar 2026 14:50:13 +0200 Manuel Giraud <manuel@HIDDEN> w=
rote:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>> Cc: Manuel Giraud <manuel@HIDDEN>,  80499 <at> debbugs.gnu.org,
>>>   fgunbin@HIDDEN
>>> Date: Tue, 31 Mar 2026 02:04:19 +0200
>>>=20
>>> > Stephen, how about placing this file in a subdirectory of /tmp
>>> > instead?  Since our test suite does that all the time, I guess it's
>>> > okay for Dired to do that as well.
>>>=20
>>> Sure, that works fine, but it's essentially a slightly more complicate=
d
>>> variant of the alternative I suggested in my subsequent followup to
>>> Manuel:
>>>=20
>>>   create the temporary file just once and then reuse it.  This would
>>>   still update at least the timestamp on every redisplay of the
>>>   directory in Dired, but it wouldn't change the file name.
>>
>> I thought Manuel's problem was to see the file directly under /tmp, in
>> which case what you propose won't solve it.  But it sounds like I
>> misunderstood.
>
> My problem is more to have a file that changes everytime I revert this
> /tmp dired buffer and also that this file does not really exists (I
> cannot find it in any other way because it really does not exist
> anymore).
>
> Thinking about this a bit more, I've come to the conclusion that Eli's
> solution to create this file inside a subdirectory might be the best
> one.
>
> I don't know if this the right place to put such a file but, for
> example, as I'm using the Emacs' server, I already have a file name
> "/tmp/run/user/<UID>/emacs/server"

I've also thought about this more, and my take is that creating the file
in a subdirectory is literally hiding the problem, which is, as you
noted, that when Dired displays the directory that the file was created
in, the buffer shows an entry for the file even though the file itself
has already been deleted.  So I think the proper fix is to remove this
entry before displaying the Dired buffer (and then it doesn't matter
where the file is created, but using temporary-file-directory as now is
sensible); however, ...

> @Stephen I've seen your other patch but I think it is too overkill (and
> also too dangerous) for such a corner case: what if someone renamed its
> /tmp dired buffer to something else?  What if someone has another "tmp"
> dired buffer with a precious "lserr" file inside?

... I agree that my previous patch to remove the Dired entry was a
really bad hack (not only for how the buffer of /tmp is identified
(though it does not use "tmp" literally but temporary-file-directory),
but especially for using a loop and string-match-p).  But I've come up
with what I think is a more viable and robust implementation, and with
it all tests in dired-tests.el and files-tests.el pass.  I don't think
this patch is overkill but a real fix for the problem.

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: don't list ls error file in Dired buffer
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/dired.el b/lisp/dired.el
index 4aded86e40d..58bdb2198f1 100644
=2D-- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -649,6 +649,9 @@ dired-subdir-regexp
 of the line.
 Subexpression 2 must end right before the \\n.")
=20
+(defvar dired--ls-error-file nil
+  "When non-nil, name of temporary file an `ls' error is written to.")
+
 (defvar dired--ls-error-buffer nil
   "Non-nil if the current dired invocation yields an `ls' error.
 The non-nil value is the buffer containing the error message.")
@@ -1618,7 +1621,23 @@ dired-readin-insert
       ;; Else treat it as a wildcard spec
       ;; unless we have an explicit list of files.
       (dired-insert-directory dir dired-actual-switches
-       file-list (not file-list) t)))))
+                              file-list (not file-list) t)))
+    ;; Every time `temporary-file-directory' is (re)displayed in Dired a
+    ;; new `ls' error file is created and the Dired buffer has an entry
+    ;; for it.  The file itself is deleted in `insert-directory' but its
+    ;; Dired entry remains, so we remove it here.
+    (let ((tmpbuf (get-buffer (file-name-nondirectory
+                               (directory-file-name temporary-file-direct=
ory)))))
+      (when tmpbuf
+        (with-current-buffer tmpbuf
+          (widen)
+          (goto-char (point-min))
+          (when (search-forward (file-name-base dired--ls-error-file) nil=
 t)
+            ;; The call chain of `dired-remove-entry' requires non-nil
+            ;; `dired-subdir-alist', but here it is nil, so we set it.
+            (let ((dired-subdir-alist `((,temporary-file-directory
+                                         . ,(point-min-marker)))))
+              (dired-remove-entry dired--ls-error-file))))))))
=20
 (defun dired-align-file (beg end)
   "Align the fields of a file to the ones of surrounding lines.
diff --git a/lisp/files.el b/lisp/files.el
index ebbbd7ff1b6..d210166d320 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8486,6 +8486,8 @@ insert-directory
               (erase-buffer)
               (insert-file-contents errfile))
             (setq dired--ls-error-buffer errbuf)))
+        (defvar dired--ls-error-file) ; Pacify byte-compiler.
+        (setq dired--ls-error-file errfile)
         (delete-file errfile)
=20
         (insert-directory-clean beg switches)

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 31 Mar 2026 12:50:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 08:50:21 2026
Received: from localhost ([127.0.0.1]:37067 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7YXz-00030e-Q0
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2026 08:50:20 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:4417)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w7YXw-0002zV-L7
 for 80499 <at> debbugs.gnu.org; Tue, 31 Mar 2026 08:50:18 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=X/oljof7
 XYRRcBT0Sidf+f8lyLLIF7bD3u74K/x8kZM=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=+MkodWjUNRQml9l3GG2yMSlEX+Ft8t
 WXetQ7u5d5bVAyZtwru7W60y1bftu4sns6vePJPzMkiQc5uKodnAgICQ==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=X/oljof7XYRRcBT0
 Sidf+f8lyLLIF7bD3u74K/x8kZM=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=ncHtEKEd9rP1rNxXvuhrZkEjPTcVHGKy71g/kP
 ehO/L8ogILsUHtIIymbsP90FkuGrGeEj8UTW+wwRVPRysm3xPwLB9lfdSvLvGXjIIQBWS+
 dI9rkhQ5MHViaWs3ye8HqBZyl63UTP2Wn6re1zLvtaLeMNWHQ+7n4IlLQmn3hQ4wYfTN0v
 FZSMXXxzGfw6wl6IWgzs8ddOZKOJc5A4Tth0iOCR0ivIlHnX3tgp12miyG4NpbtcwJPbGS
 wONzNiJKGfh0W4sLsdTqhXjo0erfvwMgAiZsjFBw/Ewcub7QIhckmEINcdUushBDbrHiXJ
 hzIbospmxjSdii06VN/nMX6A==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 60e1c3df
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Tue, 31 Mar 2026 14:50:14 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86wlysnsiu.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN> <87a4vohnjw.fsf@HIDDEN>
 <86wlysnsiu.fsf@HIDDEN>
Date: Tue, 31 Mar 2026 14:50:13 +0200
Message-ID: <877bqsrwmy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> From: Stephen Berman
 <stephen.berman@HIDDEN> >> Cc: Manuel Giraud <manuel@HIDDEN>,
 80499 <at> debbugs.gnu.org, 
 >> fgunbin@HIDDEN >> Date: Tue, 31 Mar 2026 02:04:19 +0200 >> >> > Stephen,
 h [...] Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in bl.score.senderscore.com]
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in sa-accredit.habeas.com]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Stephen Berman <stephen.berman@HIDDEN>,
 fgunbin@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 (+)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: Manuel Giraud <manuel@HIDDEN>,  80499 <at> debbugs.gnu.org,
>>   fgunbin@HIDDEN
>> Date: Tue, 31 Mar 2026 02:04:19 +0200
>> 
>> > Stephen, how about placing this file in a subdirectory of /tmp
>> > instead?  Since our test suite does that all the time, I guess it's
>> > okay for Dired to do that as well.
>> 
>> Sure, that works fine, but it's essentially a slightly more complicated
>> variant of the alternative I suggested in my subsequent followup to
>> Manuel:
>> 
>>   create the temporary file just once and then reuse it.  This would
>>   still update at least the timestamp on every redisplay of the
>>   directory in Dired, but it wouldn't change the file name.
>
> I thought Manuel's problem was to see the file directly under /tmp, in
> which case what you propose won't solve it.  But it sounds like I
> misunderstood.

My problem is more to have a file that changes everytime I revert this
/tmp dired buffer and also that this file does not really exists (I
cannot find it in any other way because it really does not exist
anymore).

Thinking about this a bit more, I've come to the conclusion that Eli's
solution to create this file inside a subdirectory might be the best
one.

I don't know if this the right place to put such a file but, for
example, as I'm using the Emacs' server, I already have a file name
"/tmp/run/user/<UID>/emacs/server"

@Stephen I've seen your other patch but I think it is too overkill (and
also too dangerous) for such a corner case: what if someone renamed its
/tmp dired buffer to something else?  What if someone has another "tmp"
dired buffer with a precious "lserr" file inside?
-- 
Manuel Giraud




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

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


Received: (at 80499) by debbugs.gnu.org; 31 Mar 2026 11:32:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 07:32:56 2026
Received: from localhost ([127.0.0.1]:36149 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7XL6-0002Ne-2E
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2026 07:32:56 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55880)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w7XL3-0002Mv-Cg
 for 80499 <at> debbugs.gnu.org; Tue, 31 Mar 2026 07:32:54 -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 1w7XKw-0005TG-NW; Tue, 31 Mar 2026 07:32:47 -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=wJ83r2V/QCNa+K3C+9vvW6kIQu6owx2s1m0nWYe8ve4=; b=cokC1RmGm6Y7
 ILTuX9VHdoBwrTBJ9OeLmBYpVYQdgZtQM1sqC5NAcC8tZ2uDfBv4nWQ6JoFS0Bk2c9lP7NihkfC/D
 6G34MoVRuDMEeWfm5bAtuq1PDnF7RA2K+jZDfQKZuLevRYQAPkIkuy8yi+FvRoWSoi0Q4NGiwvQn2
 iqX2HEHFj7M3O1gJzrP6MSjIx+dOSU9iIek/zURzHOHTPDkUlqWc8oqYD5ZinPgAjwUHirtx0dNfo
 oBH+lHUhqim/bYPAArHbJd31aHo3AwOoytAFoC/x6Dm1vTf+bibNIohK1Mp8c+CBZreiYHlpQPMMj
 J9sy8sFmjJqmI4aHLDGTNQ==;
Date: Tue, 31 Mar 2026 14:32:41 +0300
Message-Id: <86wlysnsiu.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87a4vohnjw.fsf@HIDDEN> (message from Stephen Berman on Tue, 31
 Mar 2026 02:04:19 +0200)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN> <87a4vohnjw.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@HIDDEN, manuel@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: Manuel Giraud <manuel@HIDDEN>,  80499 <at> debbugs.gnu.org,
>   fgunbin@HIDDEN
> Date: Tue, 31 Mar 2026 02:04:19 +0200
> 
> > Stephen, how about placing this file in a subdirectory of /tmp
> > instead?  Since our test suite does that all the time, I guess it's
> > okay for Dired to do that as well.
> 
> Sure, that works fine, but it's essentially a slightly more complicated
> variant of the alternative I suggested in my subsequent followup to
> Manuel:
> 
>   create the temporary file just once and then reuse it.  This would
>   still update at least the timestamp on every redisplay of the
>   directory in Dired, but it wouldn't change the file name.

I thought Manuel's problem was to see the file directly under /tmp, in
which case what you propose won't solve it.  But it sounds like I
misunderstood.




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

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


Received: (at 80499) by debbugs.gnu.org; 31 Mar 2026 10:43:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 06:43:17 2026
Received: from localhost ([127.0.0.1]:35586 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7WZ1-0002V6-U7
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2026 06:43:16 -0400
Received: from mout.gmx.net ([212.227.15.18]:53737)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w7WYy-0002Tw-2k
 for 80499 <at> debbugs.gnu.org; Tue, 31 Mar 2026 06:43:13 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774953779; x=1775558579; i=stephen.berman@HIDDEN;
 bh=8kRg9WCSC7OS7N3qWUsaUwI+k8viHDlP2RyPShhZd5g=;
 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=Fp+UndngED453bK2QtGMUC/yX8o9uSoPHurjQp7gXwuy4hAQJiKQWiySmoG5SjXe
 L8J+B3+vS3lcIpsfd/SRdLOKA7wg9zOqHxvD6pzazBGlWzwWBa64ZoizAcR/t+IZf
 xpLPd6zzJP82YsANm7kdIGHHkH3c4HHChTI7s5Hjd9Npd1Ynbj91yuBCBF6AnidIM
 b88Ijmx9nc1Czdu7i1UIycNk2rTMUoGsGEIH6XkUj4SMrVii+O7QUEum6xf6nbxNz
 3U5QUJr+COc4MhtM3UnNQa+cAKDQ3GfqEBiZRV6nHhRgWR1rw+Uyul6fwtli4JU8W
 6fmwMXjcd+D726GUJw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Md6Mj-1vXMjA1XX9-00gctK; Tue, 31
 Mar 2026 12:42:59 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87h5pwijie.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN> <87a4vohnjw.fsf@HIDDEN>
 <87h5pwijie.fsf@HIDDEN>
Date: Tue, 31 Mar 2026 12:42:58 +0200
Message-ID: <877bqsxost.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:WUaWPB+KJXyuob+x/7aN8wCq1Dp7EV66V36NIV1laVSXyXvUCX3
 cVZJej3chAbwVEPFEIatMmZCUiEGE7cuQ6S5heZAmiJDNO+Pwra2ofcIVn7Fwg9wsuSkH6E
 FgfuZFDz7hqpSh/QbwjubiOpEwJhyImkR0Za1X+WBbWC+oNVsyKmWiQxlg9Xiii8ri7T+YR
 C/uejgbxYigOc+8/GwkIA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:Dy5eibFBmm0=;fa5RQyLnX2DA5JNiVTwvQGX6MGO
 jmfPYvzD4TplGIkCdAq4uwIjT6977gOMG6C8bDBgXyUcmyS6Ru3P4Ih60CUp3Ho05L7oB23w1
 4zMEL8QCq0KDffKmUePGoOfmbrDRu85bZrjxtUOQ+6YSzhrxo7fLjfmC65Sm+6U/f7+jBSBpZ
 1trHudiYyZlXZCtCEECrSfAjbPMgtFZfQSJwHdIK0Eu1Dw0FAReTg2SlLCLWoiG9/9v8aKoAH
 40h7gWEt33QAGY9eN1fn9lNuNw7lWaqQ4aYAEcIKGJDfpfNlbKhKG4F9UVJrQdFJupUvJvlsd
 MkdFEt7BgUhMg9wMrByGWkzP2SDuGfF7LgjODv42ppiEE5QvEJPaZfFgwWCaq60RrQTTf8j5/
 LtHgpcHfA3C8f33+CFsEDyVcYsMD4DjHqx+4GMGN+T1lKiu773aA+LY9+474ebMxszSLjady+
 4MBJlOmWfJ/IAz5DsdVZr8jWJCer7ia/m2Fwey0xSraqX1Y+TUuADJmf/pGgwPKnWB8wF+nx/
 MYTXYM8jdFsFRhkFRiaQLy8MGEN2GxGB+00tZtXkbO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5zLaC/3AOQByYkYntWbvU0c8vQK4lcNDmuRg8lW6HIRvzV
 jLpbbOvSvgpGz3eDkiX+/q5ee4ad0xLSLT0TwsENOigP88zCGeCtIZshDfd4WgAMjoGh/GzUt
 9XIluZ5Q/u8j/CUQHEA+wV85gPjO3mHGvM0qOB3TKzEycnfel9JsOi5ChB7/UmrVE+0ZiMaiE
 t143WWIwgSZsQCVLdgyppc/JNLel9mHkf/eDR7Ezfpxrf3PgRHYlX818SQJWMMNAcjcWcrEc+
 ifbbZOVV2emMtDjZGTpfe9BM59P41cJy4h7CZ67b5UxwmxMi9Q4S/7pVXLKeBV0RCeFHrcL8n
 EwTlXVlJ64Mqrfv/zKGvKHdOHjG9eLnhaRQxoURcDQCVkHqvjiKayiSfa3TcT/kvJ3axsopgq
 eR9v+el9j5e8btYa5el73R3qYgzvja9127UXtaS+/jyZ5BiX0sfcOdI0Bz4qUHwWST9HK32Q9
 Itca3B0GWK9f//cMP8ctuQZ07hPZLPFqZDQ73ko5txC5R9qfczGNQ97633SrkM0cFx2DvkyFA
 6agEKYMznQsj9dlz1xewH82B0ln0ON+sabi/iYV3+PcJlZSXW60YqtcL/tXsJX0vEcvD6rdv8
 y8jsuKKUkgDyWAyQDklg9074apm4AFs59yky20x7YTy04Rfu8xO5kLslo49+OhI/AZXgpOQlx
 brc+Qgq0lyrksU613zaquth5xkwJzCTxgk87Pj0MSs+mfRz2nbyqW2Vt22RqxjxeI18nIo4vv
 Lty9AZamMas8jNjiOQCoPskA==
X-Spam-Score: 2.3 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Tue, 31 Mar 2026 08:46:17 +0200 Manuel Giraud wrote: >
 Stephen Berman writes: > >> On Mon, 30 Mar 2026 19:55:04 +0300 Eli Zaretskii
 wrote: >> >>>> From: Manuel Giraud >>>> Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN,
 fgunbin@HIDDEN >>>> Date: Mon [...] 
 Content analysis details:   (2.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in bl.score.senderscore.com]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.15.18 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
 [212.227.15.18 listed in wl.mailspike.net]
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in sa-trusted.bondedsender.org]
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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: 0.3 (/)

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

On Tue, 31 Mar 2026 08:46:17 +0200 Manuel Giraud <manuel@HIDDEN> w=
rote:

> Stephen Berman <stephen.berman@HIDDEN> writes:
>
>> On Mon, 30 Mar 2026 19:55:04 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
>>
>>>> From: Manuel Giraud <manuel@HIDDEN>
>>>> Cc: 80499 <at> debbugs.gnu.org,  eliz@HIDDEN,  fgunbin@HIDDEN
>>>> Date: Mon, 30 Mar 2026 16:57:06 +0200
>>>>=20
>>>> Stephen Berman <stephen.berman@HIDDEN> writes:
>>>>=20
>>>> >>                                         My issue (I think) is that=
 it
>>>> >> appears in the /tmp directory listing.  Maybe there is a way to no=
t make
>>>> >> it appear in this listing.
[...]
>>> Stephen, how about placing this file in a subdirectory of /tmp
>>> instead?  Since our test suite does that all the time, I guess it's
>>> okay for Dired to do that as well.
>>
>> Sure, that works fine, but it's essentially a slightly more complicated
>> variant of the alternative I suggested in my subsequent followup to
>> Manuel:
>>
>>   create the temporary file just once and then reuse it.  This would
>>   still update at least the timestamp on every redisplay of the
>>   directory in Dired, but it wouldn't change the file name.
>>
>> Patches for each alternative are attached.  I find the one without the
>> subdirectory simpler, so I would go with that, but if you and Manual
>> prefer having the error file in a subdirectory of /tmp, I'm fine with
>> that.
>
> Hi and thanks Stephen,
>
> FWIW, I also prefer the version without subdirectory.  But I think the
> name should be "dired-ls-error" to see that this come from Dired.

Thanks, but see below for another solution, which I think solves the
problem the way you wanted.

On Tue, 31 Mar 2026 08:12:38 +0200 Manuel Giraud <manuel@HIDDEN> w=
rote:

[...]
> Or maybe cleaning entry from the output like 'insert-directory-clean' is
> doing to clean up after GNU ls?

Since this is only a problem when Dired displays the directory, I think
such a cleanup needs to occur right after reading the directory into the
Dired buffer; the attached patch does this and in my testing the error
file entry is not displayed, and all tests in dired-tests.el and
files-tests.el pass (but I haven't run `make check' yet).  However, I
haven't tested it with a Dired buffer of /tmp/ that contains a very
large number of file entries before the lserrxxx entry, and it's
possible that it may be too slow in that case (if so, we could limit the
search, so Dired would only display the error file entry in such extreme
cases).

Steve Berman


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: dired-readin-insert patch
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/dired.el b/lisp/dired.el
index 4aded86e40d..12da73f5f70 100644
=2D-- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1618,7 +1618,25 @@ dired-readin-insert
       ;; Else treat it as a wildcard spec
       ;; unless we have an explicit list of files.
       (dired-insert-directory dir dired-actual-switches
-       file-list (not file-list) t)))))
+                              file-list (not file-list) t)))
+    (let ((tmpbuf (get-buffer (nth 1 (file-name-split
+                                      temporary-file-directory)))))
+      (catch 'found
+        (when tmpbuf
+          (with-current-buffer tmpbuf
+            (widen)
+            (goto-char (point-min))
+              (while (not (eobp))
+                (let* ((dired-subdir-alist
+                        (list (cons temporary-file-directory
+                                   (point-min-marker))))
+                       (name (dired-get-filename t t)))
+                  (if (and name (string-match-p "\\`lserr" name))
+                      (progn
+                        (dired-remove-entry (expand-file-name
+                                             name temporary-file-director=
y))
+                      (throw 'found nil))
+                    (forward-line))))))))))
=20
 (defun dired-align-file (beg end)
   "Align the fields of a file to the ones of surrounding lines.

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 31 Mar 2026 06:46:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 02:46:25 2026
Received: from localhost ([127.0.0.1]:33122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7Srp-0000aN-2q
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2026 02:46:25 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:34728)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w7Srk-0000Zr-LI
 for 80499 <at> debbugs.gnu.org; Tue, 31 Mar 2026 02:46:22 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=kzlywN/K
 n8fHp/8r2tn29DgW3ArwdpOeUzBXt3FL1fg=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=ER68cM+m+WuY9yLtql/rxin6+Bzxly
 AW5gqiSRVxug2Tjif+a4zzjFresx8ihxlzQzZiuu+eJe2gZXU3llpyDQ==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=kzlywN/Kn8fHp/8r
 2tn29DgW3ArwdpOeUzBXt3FL1fg=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=RdjOTaaqmejtimMOnwjZ/eQna22FVWmI6JZeay
 Q4P/zuSo094MP0gMPAnzLFyFCFbuC3IAlHKGPtQnwQC+5UkEPn7bdB5ukiSkSt2OzxZJYu
 2uRiiaowBOq4c78EDshxA1TYxJCbd+qM08oxQanmjTfnPkb/ycysO70afvX3ft00utmuYB
 4YlG+/FK8FgDmRJ7E/6kWlZiXuGnzOdfRdw45N3u+rLLKse3QOSOJr2ttXtyNHnpADMbEP
 x94GM7Ill09zGCHpyv1uaXhdKF55GPDJNAhH9PhAdfXLfnvkN/l2E8Vz5E2JTpxoLaM2tN
 caAutj5pYvtGYDGI++C/zgSA==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id c43f51ab
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Tue, 31 Mar 2026 08:46:18 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87a4vohnjw.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <868qbcv3rw.fsf@HIDDEN>
 <87o6k8at3t.fsf@HIDDEN> <86h5q0rlju.fsf@HIDDEN>
 <871ph3bu03.fsf@HIDDEN> <868qbbs02t.fsf@HIDDEN>
 <877bqtjv0v.fsf@HIDDEN> <87mrzph11i.fsf@HIDDEN>
 <87341hjtpo.fsf@HIDDEN> <87ikadgzak.fsf@HIDDEN>
 <87wlyticvx.fsf@HIDDEN> <86se9hp89j.fsf@HIDDEN>
 <87a4vohnjw.fsf@HIDDEN>
Date: Tue, 31 Mar 2026 08:46:17 +0200
Message-ID: <87h5pwijie.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Stephen Berman <stephen.berman@HIDDEN> writes: > On Mon,
 30 Mar 2026 19:55:04 +0300 Eli Zaretskii <eliz@HIDDEN> wrote: > >>> From:
 Manuel Giraud <manuel@HIDDEN> >>> Cc: 80499 <at> debbugs.gnu.org,
 eliz@HIDDEN, fgunbin@HIDDEN >>> Date: Mo [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in sa-trusted.bondedsender.org]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in bl.score.senderscore.com]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, fgunbin@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 (+)

Stephen Berman <stephen.berman@HIDDEN> writes:

> On Mon, 30 Mar 2026 19:55:04 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
>
>>> From: Manuel Giraud <manuel@HIDDEN>
>>> Cc: 80499 <at> debbugs.gnu.org,  eliz@HIDDEN,  fgunbin@HIDDEN
>>> Date: Mon, 30 Mar 2026 16:57:06 +0200
>>>=20
>>> Stephen Berman <stephen.berman@HIDDEN> writes:
>>>=20
>>> >>                                         My issue (I think) is that it
>>> >> appears in the /tmp directory listing.  Maybe there is a way to not =
make
>>> >> it appear in this listing.
>>> >
>>> > Just in Dired or also from outside of Emacs, e.g. from the shell?=20=
=20
>>>=20
>>> Yes, just in Dired (I cannot see such a file with M-x shell).  The
>>> recipe to reproduce this is:
>>>=20
>>>           - C-x d /tmp <RET> Hit 'g' repeatedly and see a new "lserrxxx"
>>>           - each time.
>>>=20
>>> This is what made me worry: =C2=AB=C2=A0What program is creating those =
files so
>>> quickly?=C2=A0=C2=BB
>>>=20
>>> > If the former, maybe dired-omit-mode could be used; if the latter, the
>>> > file could be named ".lserrxxx" so ls -l would not list it.  But if
>>> > those workarounds are not good enough, I can't think of another way
>>> > off the top of my head.=20=20
>>>=20
>>> If this is not easy (or possible), maybe I'll just have to be used to
>>> see this file ;-)
>>>=20
>>> > Alternatively, the file could be created under user-emacs-directory,
>>> > or perhaps in XDG_CACHE_HOME if it is set or else ~/.cache/emacs;
>>> > would either of those be satisfactory?
>>>=20
>>> It would be satisfactory to *me* (because I look into /tmp often) but
>>> maybe another user would complain to see this file elsewhere.
>>
>> Stephen, how about placing this file in a subdirectory of /tmp
>> instead?  Since our test suite does that all the time, I guess it's
>> okay for Dired to do that as well.
>
> Sure, that works fine, but it's essentially a slightly more complicated
> variant of the alternative I suggested in my subsequent followup to
> Manuel:
>
>   create the temporary file just once and then reuse it.  This would
>   still update at least the timestamp on every redisplay of the
>   directory in Dired, but it wouldn't change the file name.
>
> Patches for each alternative are attached.  I find the one without the
> subdirectory simpler, so I would go with that, but if you and Manual
> prefer having the error file in a subdirectory of /tmp, I'm fine with
> that.

Hi and thanks Stephen,

FWIW, I also prefer the version without subdirectory.  But I think the
name should be "dired-ls-error" to see that this come from Dired.
--=20
Manuel Giraud




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

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


Received: (at 80499) by debbugs.gnu.org; 31 Mar 2026 06:12:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 02:12:48 2026
Received: from localhost ([127.0.0.1]:60980 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7SLG-0005dX-Nt
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2026 02:12:48 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:43734)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w7SLB-0005d0-I8
 for 80499 <at> debbugs.gnu.org; Tue, 31 Mar 2026 02:12:44 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=BxNxyFTM
 tdJIbFMIqVC4NjQHhp0nNT9CElkgvx2b3p0=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=vy/gHVUgg9mJAwvihzrWkSdwo8qHLs
 v4gsDIEauC5wdXzE4FaLlOyqAnKQ2SIfg0rb5+xM903nU3KaAG7XswBA==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=BxNxyFTMtdJIbFMI
 qVC4NjQHhp0nNT9CElkgvx2b3p0=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=166+6Dp6cyWt4EJexMZSkG6TbR1IPMWcpOHOEi
 TYwMPbOp9yb1T1cXEWsBvFL0V5d9ja813Jw/PDftA54h0MSDdGqDqvf72h2NJlXCoBr+U7
 nAbvP3FtJkk8c663F3HOlYIQpU4iJWVlkCsouBsRj2JlbO/Ts/BJIJF/OSZoX//v4nqaIC
 2DVojifMqiUIfZLZ/lY4E2Q1xPmSdmuD9baJ6H9C9rnYIWOlmlSsx7hG1dUn2YgylgnGtu
 vDqufC9XwRC5S8RJKEEQw6P0k9e/Yc5Yv+6moQkLbYzX9GKIZnsPlwmexgZcCUj8rQ41uE
 bydSNo8vo0pe3zNzV2/BVAsQ==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 494c49da
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Tue, 31 Mar 2026 08:12:39 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86se9hp89j.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN>
Date: Tue, 31 Mar 2026 08:12:38 +0200
Message-ID: <87se9gil2h.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> From: Manuel Giraud
 <manuel@HIDDEN> >> Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN,
 fgunbin@HIDDEN >> Date: Mon,
 30 Mar 2026 16:57:06 +0200 >> >> Stephen Berman <stephen.berman@HIDDEN>
 wr [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in sa-trusted.bondedsender.org]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in bl.score.senderscore.com]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, stephen.berman@HIDDEN, fgunbin@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 (+)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Manuel Giraud <manuel@HIDDEN>
>> Cc: 80499 <at> debbugs.gnu.org,  eliz@HIDDEN,  fgunbin@HIDDEN
>> Date: Mon, 30 Mar 2026 16:57:06 +0200
>>=20
>> Stephen Berman <stephen.berman@HIDDEN> writes:
>>=20
>> >>                                         My issue (I think) is that it
>> >> appears in the /tmp directory listing.  Maybe there is a way to not m=
ake
>> >> it appear in this listing.
>> >
>> > Just in Dired or also from outside of Emacs, e.g. from the shell?=20=20
>>=20
>> Yes, just in Dired (I cannot see such a file with M-x shell).  The
>> recipe to reproduce this is:
>>=20
>>           - C-x d /tmp <RET> Hit 'g' repeatedly and see a new "lserrxxx"
>>           - each time.
>>=20
>> This is what made me worry: =C2=AB=C2=A0What program is creating those f=
iles so
>> quickly?=C2=A0=C2=BB
>>=20
>> > If the former, maybe dired-omit-mode could be used; if the latter, the
>> > file could be named ".lserrxxx" so ls -l would not list it.  But if
>> > those workarounds are not good enough, I can't think of another way
>> > off the top of my head.=20=20
>>=20
>> If this is not easy (or possible), maybe I'll just have to be used to
>> see this file ;-)
>>=20
>> > Alternatively, the file could be created under user-emacs-directory,
>> > or perhaps in XDG_CACHE_HOME if it is set or else ~/.cache/emacs;
>> > would either of those be satisfactory?
>>=20
>> It would be satisfactory to *me* (because I look into /tmp often) but
>> maybe another user would complain to see this file elsewhere.
>
> Stephen, how about placing this file in a subdirectory of /tmp
> instead?  Since our test suite does that all the time, I guess it's
> okay for Dired to do that as well.
>
> I don't like the alternative to use XDG_CACHE_HOME, if only for
> portability reasons.

Or maybe cleaning entry from the output like 'insert-directory-clean' is
doing to clean up after GNU ls?
--=20
Manuel Giraud




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

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


Received: (at 80499) by debbugs.gnu.org; 31 Mar 2026 00:04:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 20:04:31 2026
Received: from localhost ([127.0.0.1]:57159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7Mas-0007zM-NK
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 20:04:31 -0400
Received: from mout.gmx.net ([212.227.17.20]:41153)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w7Map-0007yY-0n
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 20:04:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774915460; x=1775520260; i=stephen.berman@HIDDEN;
 bh=LXHQxv5fmSiL61sHVrehpJHeG4bFQLWT/0MbZUCgU5Q=;
 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=PEr19ycwvCNNsQoiWrtxCJzzFGKRg/JMbP58STIjOPyxV8jNSPdgvYejR1fwnJzV
 +ZbLvc4qQcNseAVzJOhybMophvVZOWoCCSpqE/D3oHUWW70fV1J5napvRlQq5ovLg
 N2rJg9dyHvSe6QqgNBbrq9onk95xvwpbge6pPXI4Cn6MDq63ywSYJJKhmA+HK2uXi
 Cjo1r6ROEHrfvQA7BptY4GQ7c4fONxWT0kVtK2amZ3vSrUBdBKHwwruMJB/MCdytd
 eFZjmU57uel2ZBMpWZo+CNoDGrZ7tHTf6U3rU21hLsA1jXKvD+6agS0nDw3eWcRij
 DeI4wqLBlbbIOD3emg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MiacR-1vczFz2XTT-00nkO6; Tue, 31
 Mar 2026 02:04:20 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86se9hp89j.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
 <86se9hp89j.fsf@HIDDEN>
Date: Tue, 31 Mar 2026 02:04:19 +0200
Message-ID: <87a4vohnjw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:jiDwo1iLPioVIO0lwltmuVNy9q8xcr1MpFUBOu+plSZj3lu2DBs
 lT8f2yorG59NirmPcreP1D9J/0UxrdKGLDOasKhYlFsvr8zRWgVcnsL4kC2Ufcji7xaUtio
 UBjEuzx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nMUUGte9oFFDMmk9dRw9SbxVFenhjNBDe8f
 IMggmovBqzWCYW7WxHawE+KrK3ab6FkWTdEqCXE+PtytnMRjxgNk6CiKdUv2buZ2Ew2dR6MrZ
 TuFkKihi5Hl4eN1CJ46ug5mPak/yoNStkVf+qR8kLQBSApEhS+jQMvdBEnE438Und6E1RdlOC
 J16Jmocdd6WDl9iPWlsm5s4O5xebwyK+bsKJEFvBdUURWxrv6G63saERNDHpMuwE2JhK7QmsG
 OXYGCSmTbCKYclhS2GtnQ7Lf7geKwtYMta5U4Ae9GzDjsTXaAKFCGLlHWvjPJI3o+puTPOaqy
 f5cPSKugPivofX3YyJxfoUUHjzqKtdjCaYMaT9xEy4gSIZ7s9RRqx/qQArVwPYd2hkjgMmOWB
 i0bn7s2i1VylKDfccopJSirg==
X-Spam-Score: 2.3 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Mon, 30 Mar 2026 19:55:04 +0300 Eli Zaretskii wrote: >>
 From: Manuel Giraud >> Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN,
 fgunbin@HIDDEN
 >> Date: Mon, 30 Mar 2026 16:57:06 +0200 >> >> Stephen Berman writes: >>
 >> >> My issue (I think) is that it [...] 
 Content analysis details:   (2.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.20 listed in list.dnswl.org]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.20 listed in sa-trusted.bondedsender.org]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.20 listed in bl.score.senderscore.com]
 -0.0 RCVD_IN_MSPIKE_H4      RBL: Very Good reputation (+4)
 [212.227.17.20 listed in wl.mailspike.net]
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@HIDDEN,
 Manuel Giraud <manuel@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: 0.3 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Mon, 30 Mar 2026 19:55:04 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Manuel Giraud <manuel@HIDDEN>
>> Cc: 80499 <at> debbugs.gnu.org,  eliz@HIDDEN,  fgunbin@HIDDEN
>> Date: Mon, 30 Mar 2026 16:57:06 +0200
>>=20
>> Stephen Berman <stephen.berman@HIDDEN> writes:
>>=20
>> >>                                         My issue (I think) is that it
>> >> appears in the /tmp directory listing.  Maybe there is a way to not m=
ake
>> >> it appear in this listing.
>> >
>> > Just in Dired or also from outside of Emacs, e.g. from the shell?=20=20
>>=20
>> Yes, just in Dired (I cannot see such a file with M-x shell).  The
>> recipe to reproduce this is:
>>=20
>>           - C-x d /tmp <RET> Hit 'g' repeatedly and see a new "lserrxxx"
>>           - each time.
>>=20
>> This is what made me worry: =C2=AB=C2=A0What program is creating those f=
iles so
>> quickly?=C2=A0=C2=BB
>>=20
>> > If the former, maybe dired-omit-mode could be used; if the latter, the
>> > file could be named ".lserrxxx" so ls -l would not list it.  But if
>> > those workarounds are not good enough, I can't think of another way
>> > off the top of my head.=20=20
>>=20
>> If this is not easy (or possible), maybe I'll just have to be used to
>> see this file ;-)
>>=20
>> > Alternatively, the file could be created under user-emacs-directory,
>> > or perhaps in XDG_CACHE_HOME if it is set or else ~/.cache/emacs;
>> > would either of those be satisfactory?
>>=20
>> It would be satisfactory to *me* (because I look into /tmp often) but
>> maybe another user would complain to see this file elsewhere.
>
> Stephen, how about placing this file in a subdirectory of /tmp
> instead?  Since our test suite does that all the time, I guess it's
> okay for Dired to do that as well.

Sure, that works fine, but it's essentially a slightly more complicated
variant of the alternative I suggested in my subsequent followup to
Manuel:

  create the temporary file just once and then reuse it.  This would
  still update at least the timestamp on every redisplay of the
  directory in Dired, but it wouldn't change the file name.

Patches for each alternative are attached.  I find the one without the
subdirectory simpler, so I would go with that, but if you and Manual
prefer having the error file in a subdirectory of /tmp, I'm fine with
that.

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: ls error file in subdir of /tmp
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/files.el b/lisp/files.el
index ebbbd7ff1b6..549c04fc7a2 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8393,8 +8393,13 @@ insert-directory
       (declare-function ls-lisp--insert-directory "ls-lisp")
       (ls-lisp--insert-directory file switches wildcard full-directory-p)=
)
      (t
-      (let ((beg (point))
-            (errfile (make-temp-file "lserr")))
+      (let* ((beg (point))
+             (errdir (let ((dir (concat temporary-file-directory
+                                        (file-name-as-directory
+                                         "dired-ls-error"))))
+                       (if (file-exists-p dir) dir (make-directory dir t)=
)))
+             (errfile (let ((temporary-file-directory errdir))
+                        (make-temp-file "lserr"))))
=20
 	;; Read the actual directory using `insert-directory-program'.
 	(let* (;; We at first read by no-conversion, then after

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: ls error file in /tmp
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/files.el b/lisp/files.el
index ebbbd7ff1b6..99085d61486 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8393,8 +8393,11 @@ insert-directory
       (declare-function ls-lisp--insert-directory "ls-lisp")
       (ls-lisp--insert-directory file switches wildcard full-directory-p)=
)
      (t
-      (let ((beg (point))
-            (errfile (make-temp-file "lserr")))
+      (let* ((beg (point))
+             (errfn (concat temporary-file-directory "ls-error"))
+             (errfile (if (file-exists-p errfn)
+                          errfn
+                        (make-empty-file errfn t))))
=20
 	;; Read the actual directory using `insert-directory-program'.
 	(let* (;; We at first read by no-conversion, then after
@@ -8486,7 +8489,6 @@ insert-directory
               (erase-buffer)
               (insert-file-contents errfile))
             (setq dired--ls-error-buffer errbuf)))
-        (delete-file errfile)
=20
         (insert-directory-clean beg switches)
 	;; Now decode what read if necessary.

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 30 Mar 2026 16:55:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 12:55:55 2026
Received: from localhost ([127.0.0.1]:53524 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7Fu5-0005Pe-HF
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 12:55:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41458)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w7Fu3-0005OP-4x
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 12:55:51 -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 1w7Ftw-0004J8-5s; Mon, 30 Mar 2026 12:55:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=1U4xIOS9+nJ8c9PgtmmLEyYVQ8e/bDl7M1D68tO2kV8=; b=jziTG+lvhScy2faf0MxU
 9hQ4iTqIJh9HyYfJGLyjilzsW0meDwMAKWxZjzOpGDefBCmKLXSMsuajH3uqUFj1rfLWzXSOq8+ic
 OXiF0xdMpfZFQle7v6c8RrlVsRQH5iY4IF49AdI64U3NcpgG7npCyKgUPEyZ6ND+Etr9ZzKjz8ipM
 X4wlHtlpoAQN+dQB9xjnppkYdebWX9qaxb3KddUg+/8wxt1Du4YluhTRvwWiK+kCWTltWyMW61MzY
 DeRgE+IE+l0GPkvrKgKzD0TtPdxW0wd2HWNvaSgegMxYwhL0I8IZgztIll4qQcEQGNa3LPcsWNgRC
 Em8W48g4s1Yg6g==;
Date: Mon, 30 Mar 2026 19:55:04 +0300
Message-Id: <86se9hp89j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
In-Reply-To: <87wlyticvx.fsf@HIDDEN> (message from Manuel Giraud on
 Mon, 30 Mar 2026 16:57:06 +0200)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN> <87wlyticvx.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, stephen.berman@HIDDEN, fgunbin@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 (---)

> From: Manuel Giraud <manuel@HIDDEN>
> Cc: 80499 <at> debbugs.gnu.org,  eliz@HIDDEN,  fgunbin@HIDDEN
> Date: Mon, 30 Mar 2026 16:57:06 +0200
> 
> Stephen Berman <stephen.berman@HIDDEN> writes:
> 
> >>                                         My issue (I think) is that it
> >> appears in the /tmp directory listing.  Maybe there is a way to not make
> >> it appear in this listing.
> >
> > Just in Dired or also from outside of Emacs, e.g. from the shell?  
> 
> Yes, just in Dired (I cannot see such a file with M-x shell).  The
> recipe to reproduce this is:
> 
>           - C-x d /tmp <RET> Hit 'g' repeatedly and see a new "lserrxxx"
>           - each time.
> 
> This is what made me worry: « What program is creating those files so
> quickly? »
> 
> > If the former, maybe dired-omit-mode could be used; if the latter, the
> > file could be named ".lserrxxx" so ls -l would not list it.  But if
> > those workarounds are not good enough, I can't think of another way
> > off the top of my head.  
> 
> If this is not easy (or possible), maybe I'll just have to be used to
> see this file ;-)
> 
> > Alternatively, the file could be created under user-emacs-directory,
> > or perhaps in XDG_CACHE_HOME if it is set or else ~/.cache/emacs;
> > would either of those be satisfactory?
> 
> It would be satisfactory to *me* (because I look into /tmp often) but
> maybe another user would complain to see this file elsewhere.

Stephen, how about placing this file in a subdirectory of /tmp
instead?  Since our test suite does that all the time, I guess it's
okay for Dired to do that as well.

I don't like the alternative to use XDG_CACHE_HOME, if only for
portability reasons.




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

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


Received: (at 80499) by debbugs.gnu.org; 30 Mar 2026 15:42:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 11:42:53 2026
Received: from localhost ([127.0.0.1]:52456 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7ElQ-0004TO-6d
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 11:42:53 -0400
Received: from mout.gmx.net ([212.227.17.22]:33645)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w7ElK-0004Sc-LM
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 11:42:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774885353; x=1775490153; i=stephen.berman@HIDDEN;
 bh=/MCOftjeAo2eGRzAk0xmsArGK9DfFX1hr6hTG1KmuXE=;
 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=l8hTzTgixVvoE3VzrAbEPlP5fOfyFGwzvfSldAWaZiQW0ic4koFhXQVUN85nJZuN
 Br8YirI+JJ9lMES874hKQuM4nIllPu3PhqOKmfIvbU6F7npabv96RrMpZtKqN/vBT
 IDewUQoPvYJnEB6opaIEUCgeF+G+jD8cb7ca1I+MgEhfB4Mv19uvfQ5EeWJJvT5UC
 OPrXxNvB8F9g1dCrZTbWUVnOHTEbgQ+mNKJFyk6+0hEm8hEiYq8KBPM/o2JAlyxb2
 cLy3+DHGWP6sUKPcKbteRHM3kXWpTHlp+WbAXIGLmVxO9250kJZ2kvcf+IKa1oK96
 1aoXa8Olgt+0dfVCbA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOiDX-1vsi9O2Qrn-00Way4; Mon, 30
 Mar 2026 17:42:33 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87wlyticvx.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <868qbcv3rw.fsf@HIDDEN>
 <87o6k8at3t.fsf@HIDDEN> <86h5q0rlju.fsf@HIDDEN>
 <871ph3bu03.fsf@HIDDEN> <868qbbs02t.fsf@HIDDEN>
 <877bqtjv0v.fsf@HIDDEN> <87mrzph11i.fsf@HIDDEN>
 <87341hjtpo.fsf@HIDDEN> <87ikadgzak.fsf@HIDDEN>
 <87wlyticvx.fsf@HIDDEN>
Date: Mon, 30 Mar 2026 17:42:32 +0200
Message-ID: <87ecl1gw7r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:SpQNy3AmLAXcraoJ2y90jbBCiXKUJL9u1YW058DdX5ciZXmmXgk
 /cRGrKEuoE0/WVXHKn3WpehT8kDDotOljYQ/1n3umBXvPpNC7wpcDiRYVuLdpc8TNuIEjtr
 nltk0Kxnk3N3q0Ady0rObtuSnUT5zHHnUx6HDPTMJNT8PE+0EULvRtsPCSvXg7/zl+ztvDr
 lTqZrE6Ci6bUdhzW4T7YA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:dcw/3XYyjj0=;6frmMU7OSjE1sV5EaTjDK5TXB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KJih
 T1EaFORRxFGOSselYHLpW7Clb69Mft2ZXBqjnR/5LyRZVfXQCRTOWJRO4jfbtHRYU4LHZHgiU
 Yx2uK7aKQcs5+uUTBCTLgigK7wkZqKiRalmN913OOgBWYapETzYawXIBd1+j5qG9JlSYlYgTP
 Aa4/QrFchlQKXj9dr2lIxTmUVvEQ/b7iw==
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Mon, 30 Mar 2026 16:57:06 +0200 Manuel Giraud wrote: >
 Stephen Berman writes: > >> On Mon, 30 Mar 2026 16:08:19 +0200 Manuel Giraud
 wrote: >> >>> Stephen Berman writes: >>> >>>> On Mon, 30 Mar 2026 15:40:00
 +0200 Manuel Giraud wrote: >>>> >>>>> [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.22 listed in list.dnswl.org]
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in sa-accredit.habeas.com]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.22 listed in wl.mailspike.net]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in bl.score.senderscore.com]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN, fgunbin@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: 0.3 (/)

On Mon, 30 Mar 2026 16:57:06 +0200 Manuel Giraud <manuel@HIDDEN> wr=
ote:

> Stephen Berman <stephen.berman@HIDDEN> writes:
>
>> On Mon, 30 Mar 2026 16:08:19 +0200 Manuel Giraud <manuel@HIDDEN>=
 wrote:
>>
>>> Stephen Berman <stephen.berman@HIDDEN> writes:
>>>
>>>> On Mon, 30 Mar 2026 15:40:00 +0200 Manuel Giraud <manuel@HIDDEN=
r> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm regularly using /tmp to handle temporary files and the like.  In a
>>>>> dired buffer on /tmp, I was worried about seeing a "lserrxxx" file th=
at
>>>>> keeps appearing and changing name.
>>>>>
>>>>> I see now that this comes from with this patch, so I wonder, is this
>>>>> temporary file creation avoidable or maybe it could be hidden.  Or
>>>>> should I start being used to see such file.
>>>>
>>>> This file is used to display any error message emitted by ls on calling
>>>> dired (more specifically, insert-directory) and IIUC it is necessary
>>>> because ls is invoked via call-process, which requires a file to output
>>>> an error message to stderr instead of stdin.  I thought using
>>>> make-temp-file is the standard way to do this, but if it's considered
>>>> inappropriate to leave the file in /tmp, I guess it could be deleted
>>>> when the buffer displaying the error message is popped up (note that
>>>> empty lserrxxx files are already automatically deleted); is that a
>>>> satisfactory way to deal with this issue?
>>>
>>> AFAIU, this file is correctly deleted.
>>
>> Oops, right; in earlier iterations of the patch only the empty lserrxxx
>> files were deleted, and I forgot that I later decided to delete each
>> such file when the error buffer visits it.
>>
>>>                                         My issue (I think) is that it
>>> appears in the /tmp directory listing.  Maybe there is a way to not make
>>> it appear in this listing.
>>
>> Just in Dired or also from outside of Emacs, e.g. from the shell?=20=20
>
> Yes, just in Dired (I cannot see such a file with M-x shell).  The

Ah, right: the file is both created and deleted within the same
execution of insert-directory, so the file is done before invoking ls
from the shell, but in every time Dired displays a dired it call
insert-directory, and updating the Dired display does too, so it seems
impossible not to display the entry of that file in Dired, hmm....


> recipe to reproduce this is:
>
>           - C-x d /tmp <RET> Hit 'g' repeatedly and see a new "lserrxxx"
>           - each time.
>
> This is what made me worry: =C2=AB=C2=A0What program is creating those fi=
les so
> quickly?=C2=A0=C2=BB

Yeah, I can understand why that is disconcerting.

>> If the former, maybe dired-omit-mode could be used; if the latter, the
>> file could be named ".lserrxxx" so ls -l would not list it.  But if
>> those workarounds are not good enough, I can't think of another way
>> off the top of my head.=20=20

There is perhaps another alternative: create the temporary file just
once and then reuse it.  This would still update at least the timestamp
on every redisplay of the directory in Dired, but it wouldn't change the
file name.  Is that any better?

> If this is not easy (or possible), maybe I'll just have to be used to
> see this file ;-)
>
>> Alternatively, the file could be created under user-emacs-directory,
>> or perhaps in XDG_CACHE_HOME if it is set or else ~/.cache/emacs;
>> would either of those be satisfactory?
>
> It would be satisfactory to *me* (because I look into /tmp often) but
> maybe another user would complain to see this file elsewhere.

Maybe there are yet other alternatives; let's see what Eli says.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 30 Mar 2026 14:57:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 10:57:14 2026
Received: from localhost ([127.0.0.1]:51687 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7E3F-00083X-Kz
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 10:57:14 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:48316)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w7E3B-00082g-3P
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 10:57:11 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=DG6OauYY
 H9ZoxUIgpOAWsCXxhMKjUubIAra2imvCsdY=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=lIurtos8yyKMZV1GY0OHvhCBrEoP0K
 O5G/5aeNa130kbTjlOp+SY1Zv5189wGLASt+tYjbcRiOvpkZbHF6JEBg==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=DG6OauYYH9ZoxUIg
 pOAWsCXxhMKjUubIAra2imvCsdY=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=HUmOah+4RPg/VfVC4CuZ23fTUViQnUrsYhDQHb
 sNYhNgdrAkX8DPa7fO1L8uqBApcoXDxZcONPGagcqZIsWmAnh3ev6xhRfOpTjNOEbKRzfV
 r4wT21npL0hIjuEkl6Ig3jMG+srFMv9aQllA4QDWwJUtIji4piXeyfDLdFBoyLEkEfuBtZ
 9ZnV4bQe7k84lhOYZh+b7AP7Q1Ksc/EpB/BxsfzMVeYu9GFhiN7EEN/bqoZMZAyUMOwViu
 G+j0Pu4g2qUqt5/NZOFPO+ArNvgmG7BeuedlMzmSuEKA1j94SCHxrWnBvlroc9l5YSgGpI
 J82eTgSyXS3AIFV5pF+SBAlQ==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 639cb95c
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 30 Mar 2026 16:57:07 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87ikadgzak.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN> <87341hjtpo.fsf@HIDDEN>
 <87ikadgzak.fsf@HIDDEN>
Date: Mon, 30 Mar 2026 16:57:06 +0200
Message-ID: <87wlyticvx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Stephen Berman <stephen.berman@HIDDEN> writes: > On Mon,
 30 Mar 2026 16:08:19 +0200 Manuel Giraud <manuel@HIDDEN> wrote: >
 >> Stephen Berman <stephen.berman@HIDDEN> writes: >> >>> On Mon, 30 Mar 2026
 15:40:00 +0200 Manuel Giraud <manuel@l [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in sa-trusted.bondedsender.org]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in bl.score.senderscore.com]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN, fgunbin@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 (+)

Stephen Berman <stephen.berman@HIDDEN> writes:

> On Mon, 30 Mar 2026 16:08:19 +0200 Manuel Giraud <manuel@HIDDEN> =
wrote:
>
>> Stephen Berman <stephen.berman@HIDDEN> writes:
>>
>>> On Mon, 30 Mar 2026 15:40:00 +0200 Manuel Giraud <manuel@HIDDEN=
> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm regularly using /tmp to handle temporary files and the like.  In a
>>>> dired buffer on /tmp, I was worried about seeing a "lserrxxx" file that
>>>> keeps appearing and changing name.
>>>>
>>>> I see now that this comes from with this patch, so I wonder, is this
>>>> temporary file creation avoidable or maybe it could be hidden.  Or
>>>> should I start being used to see such file.
>>>
>>> This file is used to display any error message emitted by ls on calling
>>> dired (more specifically, insert-directory) and IIUC it is necessary
>>> because ls is invoked via call-process, which requires a file to output
>>> an error message to stderr instead of stdin.  I thought using
>>> make-temp-file is the standard way to do this, but if it's considered
>>> inappropriate to leave the file in /tmp, I guess it could be deleted
>>> when the buffer displaying the error message is popped up (note that
>>> empty lserrxxx files are already automatically deleted); is that a
>>> satisfactory way to deal with this issue?
>>
>> AFAIU, this file is correctly deleted.
>
> Oops, right; in earlier iterations of the patch only the empty lserrxxx
> files were deleted, and I forgot that I later decided to delete each
> such file when the error buffer visits it.
>
>>                                         My issue (I think) is that it
>> appears in the /tmp directory listing.  Maybe there is a way to not make
>> it appear in this listing.
>
> Just in Dired or also from outside of Emacs, e.g. from the shell?=20=20

Yes, just in Dired (I cannot see such a file with M-x shell).  The
recipe to reproduce this is:

          - C-x d /tmp <RET> Hit 'g' repeatedly and see a new "lserrxxx"
          - each time.

This is what made me worry: =C2=AB=C2=A0What program is creating those file=
s so
quickly?=C2=A0=C2=BB

> If the former, maybe dired-omit-mode could be used; if the latter, the
> file could be named ".lserrxxx" so ls -l would not list it.  But if
> those workarounds are not good enough, I can't think of another way
> off the top of my head.=20=20

If this is not easy (or possible), maybe I'll just have to be used to
see this file ;-)

> Alternatively, the file could be created under user-emacs-directory,
> or perhaps in XDG_CACHE_HOME if it is set or else ~/.cache/emacs;
> would either of those be satisfactory?

It would be satisfactory to *me* (because I look into /tmp often) but
maybe another user would complain to see this file elsewhere.
--=20
Manuel Giraud




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

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


Received: (at 80499) by debbugs.gnu.org; 30 Mar 2026 14:36:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 10:36:27 2026
Received: from localhost ([127.0.0.1]:51327 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7Dj7-0005YB-2N
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 10:36:27 -0400
Received: from mout.gmx.net ([212.227.17.21]:55639)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w7Dj0-0005Wi-Hr
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 10:36:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774881364; x=1775486164; i=stephen.berman@HIDDEN;
 bh=v//0QzaB9N8W72G2OUJu9aE7uJmZlUbmUZuotEP0tgo=;
 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=AiWONd2JMpYi1Tde2A1kHqzRnlXcUo6aPgmF5gpFAp+dLUKGcILp4r6ezvpySyjw
 YESobpw5nqOG/Hw8v41Mn7bAP0TcPGfsjAx+EZUjNuqUfz6+/HfARP5iO9TGHw4lM
 9WlkboM+CljgD2KPWbjmiwSETY+xdcINz8kh4bTERtQg6AuUSSYB3hm8ID4ShHiDh
 UaQJ5Ba8/RwcLDn6wj5cZgpWNDGMNXWCU5T/UnKrkkVgTUKTlmvdXd7c3FW/F6PW+
 wzZ5K5n3+zJSN4Bgo7/L3ubYwbxb/rz0K5APk2Q+Ai4fRPmYVSfkb3JPgYRSrkMTL
 46sPCdKEwdeAykdl0A==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKbkC-1voaNM26DU-00RwFX; Mon, 30
 Mar 2026 16:36:04 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87341hjtpo.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <868qbcv3rw.fsf@HIDDEN>
 <87o6k8at3t.fsf@HIDDEN> <86h5q0rlju.fsf@HIDDEN>
 <871ph3bu03.fsf@HIDDEN> <868qbbs02t.fsf@HIDDEN>
 <877bqtjv0v.fsf@HIDDEN> <87mrzph11i.fsf@HIDDEN>
 <87341hjtpo.fsf@HIDDEN>
Date: Mon, 30 Mar 2026 16:36:03 +0200
Message-ID: <87ikadgzak.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
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qn8B
 BUnn1JjnHxg0Nr8rLYpJa8WFSIBMQrRXS5bH2KOJpT5GwhcnBf+BijL6yBZ0v1zvHsAMM5eIN
 P7i+yPXJ2tYDjGPnu8/6ygRtngSdQdY/Ug3Ccx8p5e0TwTdLq1g0apWdDcc3mcjx8h0lRgV6Q
 7XbeRI3Sh2C92zrYgtxddZMkf9NB242hYhP13X8vQwqmCK8O4Nvmz9DDQBAwqHfaxMUNV8vtk
 0UdbXCv1jhSuC3Y83NVrHW6k4y9qCdzPj3FOU8BW4B+be3DlNsGQlarhQzj13zw8/+cZhdTIr
 m8W3kkypK07IDSwAwOKtYp1HAmK3ngPI0v+XbFs0FXQBWSBAQaNoFBWyiUVV6c5SbwTFkpFMM
 wKhCDM9+YLdrBWE0oSexXpykOo0FQPd76Frb87JPtsXYHK0cZve3GGhP1u5boJZdJjRTUDX3e
 djeqNIkYEpx
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Mon, 30 Mar 2026 16:08:19 +0200 Manuel Giraud wrote: >
 Stephen Berman writes: > >> On Mon, 30 Mar 2026 15:40:00 +0200 Manuel Giraud
 wrote: >> >>> Hi, >>> >>> I'm regularly using /tmp to handle temporary files
 and the like. In a >>> dired buffer on / [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in sa-accredit.habeas.com]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.21 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.21 listed in wl.mailspike.net]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in bl.score.senderscore.com]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN, fgunbin@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: 0.3 (/)

On Mon, 30 Mar 2026 16:08:19 +0200 Manuel Giraud <manuel@HIDDEN> wrote:

> Stephen Berman <stephen.berman@HIDDEN> writes:
>
>> On Mon, 30 Mar 2026 15:40:00 +0200 Manuel Giraud <manuel@HIDDEN> wrote:
>>
>>> Hi,
>>>
>>> I'm regularly using /tmp to handle temporary files and the like.  In a
>>> dired buffer on /tmp, I was worried about seeing a "lserrxxx" file that
>>> keeps appearing and changing name.
>>>
>>> I see now that this comes from with this patch, so I wonder, is this
>>> temporary file creation avoidable or maybe it could be hidden.  Or
>>> should I start being used to see such file.
>>
>> This file is used to display any error message emitted by ls on calling
>> dired (more specifically, insert-directory) and IIUC it is necessary
>> because ls is invoked via call-process, which requires a file to output
>> an error message to stderr instead of stdin.  I thought using
>> make-temp-file is the standard way to do this, but if it's considered
>> inappropriate to leave the file in /tmp, I guess it could be deleted
>> when the buffer displaying the error message is popped up (note that
>> empty lserrxxx files are already automatically deleted); is that a
>> satisfactory way to deal with this issue?
>
> AFAIU, this file is correctly deleted.

Oops, right; in earlier iterations of the patch only the empty lserrxxx
files were deleted, and I forgot that I later decided to delete each
such file when the error buffer visits it.

>                                         My issue (I think) is that it
> appears in the /tmp directory listing.  Maybe there is a way to not make
> it appear in this listing.

Just in Dired or also from outside of Emacs, e.g. from the shell?  If
the former, maybe dired-omit-mode could be used; if the latter, the file
could be named ".lserrxxx" so ls -l would not list it.  But if those
workarounds are not good enough, I can't think of another way off the
top of my head.  Alternatively, the file could be created under
user-emacs-directory, or perhaps in XDG_CACHE_HOME if it is set or else
~/.cache/emacs; would either of those be satisfactory?

Steve Berman





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

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


Received: (at 80499) by debbugs.gnu.org; 30 Mar 2026 14:08:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 10:08:26 2026
Received: from localhost ([127.0.0.1]:50897 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7DI2-0002lu-27
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 10:08:26 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:5492)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w7DHy-0002lf-Mk
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 10:08:24 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=jWF9ADTJ
 2UENg7boj4N2uD+liKL362wUAF8Zi+2/cjY=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=cYH7kriizKeq9nbl6ymMYUF4CqRpnG
 0peB7QxPKAMXvv8V6PFRIyL1EsH0SKbgFnkMgJaYARXAWBxdSesjZMAg==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=jWF9ADTJ2UENg7bo
 j4N2uD+liKL362wUAF8Zi+2/cjY=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=v66fGRAmIdyoocdtJat3BChcmRIvRnTQSDYr4J
 MXSFLVxWfgj1XZrM31iegdFRSZkVn0LgVb1FJ+8z+BFiZYj6QDkUnB9b49fIP08kVWs5aB
 80uvbl1Iljqn3a4qYiL2X3DPcvOfgA8gmk/2T2RaqQbaOxJpcaN8p+V6mFJcxrHInSFDqv
 FjegbRU3Q8Iwt9FV2HSCythYZkRlM7pBNBGYoNRWkl7VWBaFMqggNeFe+K5SMWlODBwFbH
 217yRsBfBXHoQpjO/0p+oUmwEDDiYC7jylw+S10Pp/g3LYYHuGrIWAJhTQk3rThn8knJ7p
 6LLTAQmV4pj9ATAjGxnCADcw==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 84fab8a1
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 30 Mar 2026 16:08:20 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87mrzph11i.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN> <877bqtjv0v.fsf@HIDDEN>
 <87mrzph11i.fsf@HIDDEN>
Date: Mon, 30 Mar 2026 16:08:19 +0200
Message-ID: <87341hjtpo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Stephen Berman <stephen.berman@HIDDEN> writes: > On Mon,
 30 Mar 2026 15:40:00 +0200 Manuel Giraud <manuel@HIDDEN> wrote: >
 >> Hi, >> >> I'm regularly using /tmp to handle temporary files and the like.
 In a >> dired buffer on /tmp, I was wo [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in sa-trusted.bondedsender.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in bl.score.senderscore.com]
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN, fgunbin@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 (+)

Stephen Berman <stephen.berman@HIDDEN> writes:

> On Mon, 30 Mar 2026 15:40:00 +0200 Manuel Giraud <manuel@HIDDEN> wrote:
>
>> Hi,
>>
>> I'm regularly using /tmp to handle temporary files and the like.  In a
>> dired buffer on /tmp, I was worried about seeing a "lserrxxx" file that
>> keeps appearing and changing name.
>>
>> I see now that this comes from with this patch, so I wonder, is this
>> temporary file creation avoidable or maybe it could be hidden.  Or
>> should I start being used to see such file.
>
> This file is used to display any error message emitted by ls on calling
> dired (more specifically, insert-directory) and IIUC it is necessary
> because ls is invoked via call-process, which requires a file to output
> an error message to stderr instead of stdin.  I thought using
> make-temp-file is the standard way to do this, but if it's considered
> inappropriate to leave the file in /tmp, I guess it could be deleted
> when the buffer displaying the error message is popped up (note that
> empty lserrxxx files are already automatically deleted); is that a
> satisfactory way to deal with this issue?

AFAIU, this file is correctly deleted.  My issue (I think) is that it
appears in the /tmp directory listing.  Maybe there is a way to not make
it appear in this listing.
-- 
Manuel Giraud




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

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


Received: (at 80499) by debbugs.gnu.org; 30 Mar 2026 13:58:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 09:58:33 2026
Received: from localhost ([127.0.0.1]:50740 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7D8S-0001rS-NS
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 09:58:33 -0400
Received: from mout.gmx.net ([212.227.15.18]:45267)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w7D8P-0001qf-CJ
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 09:58:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774879098; x=1775483898; i=stephen.berman@HIDDEN;
 bh=HIeB7uWPz9CIVFZO8EzXcAzchScGGOqKOUBVYaOtrTs=;
 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=HQJ1FmlLwOe1sFG0BW1aFYdNF5owmQjlv9a7BwBFjmYCdyCzpKjh4cECueCXihaL
 KJJTpZt6KxLLoWgZaXikO9Rlo7Jb76WauS5kG2x7zq69CO2zkZ7bkGb8CjyE0lT4b
 zZJ3yEBls7JnFMRoccxLzb34PfCkynvoTvog5/B4SuYp5tMi1alVwcMRLCug9muYb
 U/tJB15GTZi7GJmuguz2v1i3B5v2N93saHfLQH+TksgRfR5eRmq/dN8LBXLnCZS9o
 c32SOu2Cu9CgstNs4IKafSYfXebuyicG28G62E6aZexu11wNtS5S+ETsb441FhtHw
 84laGwhb+j91hi1QXQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MryT9-1vmVMC41Bd-00ldaX; Mon, 30
 Mar 2026 15:58:18 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <877bqtjv0v.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN> <868qbcv3rw.fsf@HIDDEN>
 <87o6k8at3t.fsf@HIDDEN> <86h5q0rlju.fsf@HIDDEN>
 <871ph3bu03.fsf@HIDDEN> <868qbbs02t.fsf@HIDDEN>
 <877bqtjv0v.fsf@HIDDEN>
Date: Mon, 30 Mar 2026 15:58:17 +0200
Message-ID: <87mrzph11i.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:J3FJhb+B77zABkJ18OxYdp1mDZ2mAJL1jRG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L+vAOQ+j21qDfhqmO87MIovyJwrg+bJ2A8/Yzxz6g+svT5jC1/33pD
 uisH9cZvd6Xucsw8wZ+fB29Xlp8ygqwpS8SYfvOtZRkiJ7jO48hMSx38z2I/C/QG7qEhykVHF
 pmcQbdApJ4ECFYz4ABwpcKlWsYxdMcmetV/TyPm+jOMVOO9hSL4BLk5QcBVMwpXwe4uSDls4D
 lrTzl/l+8f4oUzjoKdzhuMUmE4OpU1jPkrHmdzIOW5BB2gzfFszLR7IgXXcKuxrCuoxHzcQUB
 ZlYJ8IQae2rVk+8pWOSrMsi6viqlKEXSaCuNws1RKre04p347aZ3ZIVYLzwllG/htZibJPJDO
 QDzwlhWjYu/pLqz4GKJtdtKptix+UjRFTXIjzmQZ6zhkr7MG5lZ7YDqbOBiAF+9m0fm5vXlAi
 nUd2r+BL2OLGUHzhiPi9W9tG/imoiQa4A==
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Mon, 30 Mar 2026 15:40:00 +0200 Manuel Giraud wrote: >
 Hi, > > I'm regularly using /tmp to handle temporary files and the like. In
 a > dired buffer on /tmp, I was worried about seeing a "lserrxxx" file that
 > keeps appearing and changing name. > > I see [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in bl.score.senderscore.com]
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in sa-accredit.habeas.com]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.15.18 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
 [212.227.15.18 listed in wl.mailspike.net]
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, eliz@HIDDEN, fgunbin@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: 0.3 (/)

On Mon, 30 Mar 2026 15:40:00 +0200 Manuel Giraud <manuel@HIDDEN> wrote:

> Hi,
>
> I'm regularly using /tmp to handle temporary files and the like.  In a
> dired buffer on /tmp, I was worried about seeing a "lserrxxx" file that
> keeps appearing and changing name.
>
> I see now that this comes from with this patch, so I wonder, is this
> temporary file creation avoidable or maybe it could be hidden.  Or
> should I start being used to see such file.

This file is used to display any error message emitted by ls on calling
dired (more specifically, insert-directory) and IIUC it is necessary
because ls is invoked via call-process, which requires a file to output
an error message to stderr instead of stdin.  I thought using
make-temp-file is the standard way to do this, but if it's considered
inappropriate to leave the file in /tmp, I guess it could be deleted
when the buffer displaying the error message is popped up (note that
empty lserrxxx files are already automatically deleted); is that a
satisfactory way to deal with this issue?

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 30 Mar 2026 13:40:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 30 09:40:09 2026
Received: from localhost ([127.0.0.1]:50509 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w7Cqe-0000Bg-Gh
	for submit <at> debbugs.gnu.org; Mon, 30 Mar 2026 09:40:09 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:26630)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1w7CqZ-0000BU-Ej
 for 80499 <at> debbugs.gnu.org; Mon, 30 Mar 2026 09:40:05 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=s0dF+6ck
 5uyHgmdlNF5dLxUWqgCQdBsDtAOkcyxf0vI=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=3OcDyhHIQ8tvNxxnvSGj1QOJmRchgb
 xZcA5FBN3AnalcVPVnTryXSGw6IBbQaR8mQTxHCLRrSX3lK9sL5zJQCA==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=s0dF+6ck5uyHgmdl
 NF5dLxUWqgCQdBsDtAOkcyxf0vI=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=GmP22EMnwIl1mOgo0it2xSY+ODuGgD9/ex6Esm
 5e8N8CKudbIXZmhKoMUGzaLLwax97pPrCqgnlc1cg3ulEHE0r/tht0bo93HhmK0Z4Nisyz
 OSJWFfSJvG8QowAgiC7zVQplyzbTFnzscfoWzJ9vvDNZSdXOHB/oSQFMpHZoctDkZ/F3JD
 LoTu7QqkgABQfHNoX6vGyLgWhvO4K1tytI8RKSN5X2ueSzc8+gIMDNitOK0lKCx2234wGX
 gU6mcAlBJG+OZjC8nP7ownvC6InLVz+4AQTArwhCcN9XveHkuwIuBdsexOJqVX7xSFKs7g
 V8rCkJ7IIQ7rRYzMfJEUGTHA==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 96efda02
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 30 Mar 2026 15:40:01 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: 80499 <at> debbugs.gnu.org
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <868qbbs02t.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
 <868qbbs02t.fsf@HIDDEN>
Date: Mon, 30 Mar 2026 15:40:00 +0200
Message-ID: <877bqtjv0v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi, I'm regularly using /tmp to handle temporary files and
 the like. In a dired buffer on /tmp, I was worried about seeing a "lserrxxx"
 file that keeps appearing and changing name. I see now that this comes from
 with this patch, so I wonder, is this temporary file creation avoidable or
 maybe it could be hidden. Or should I start being used to see such file.
 -- Manuel Giraud 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in sa-accredit.habeas.com]
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [51.159.28.247 listed in bl.score.senderscore.com]
X-Debbugs-Envelope-To: 80499
Cc: eliz@HIDDEN, Stephen Berman <stephen.berman@HIDDEN>, fgunbin@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 (+)

Hi,

I'm regularly using /tmp to handle temporary files and the like.  In a
dired buffer on /tmp, I was worried about seeing a "lserrxxx" file that
keeps appearing and changing name.

I see now that this comes from with this patch, so I wonder, is this
temporary file creation avoidable or maybe it could be hidden.  Or
should I start being used to see such file.
-- 
Manuel Giraud




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

Message received at 80499-done <at> debbugs.gnu.org:


Received: (at 80499-done) by debbugs.gnu.org; 29 Mar 2026 04:59:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 29 00:59:19 2026
Received: from localhost ([127.0.0.1]:56163 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w6iF5-0002zt-CB
	for submit <at> debbugs.gnu.org; Sun, 29 Mar 2026 00:59:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51384)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w6iF2-0002zQ-3Z
 for 80499-done <at> debbugs.gnu.org; Sun, 29 Mar 2026 00:59:16 -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 1w6iEw-0007vO-Dz; Sun, 29 Mar 2026 00:59:10 -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=BKKBilvOuWx2vdn6VWDvYHWIcEFUQC9KLBZVhveBa+o=; b=fY7rhAojF0+Y
 0dyhdBvo1j9kI1+yCNW+92+YPbbUJp3jmdb8niu+LUTIAziMuMUpIfIEEUOEE+x83ZGX4FMj0zqhy
 bVCrzdtsvW1u9tJkKP0ISnMN72vQUxeZWyeFaovSBX1qRBAG6mslZ00DffhXeSdtFx4on99yJEYxf
 B4oeX2WLqdwlXDi2wzgZnvw64HHr4ajWlZPtmx0b8Bq81zGJl+hLBQbKbTixg2TYZXKtD+1n2MRSX
 oRvMFgDVioeDuDX409p2JTFh+RAzJ+UByUhZ1wp6QpL/DkCshhIjA7N5+d51hAe2mEwM09gquEcRZ
 0Q68L7OHW82giHrUMLfcUw==;
Date: Sun, 29 Mar 2026 07:59:06 +0300
Message-Id: <868qbbs02t.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <871ph3bu03.fsf@HIDDEN> (message from Stephen Berman on Sat, 28
 Mar 2026 21:04:44 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN> <871ph3bu03.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499-done
Cc: 80499-done <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Sat, 28 Mar 2026 21:04:44 +0100
> 
> On Sat, 28 Mar 2026 19:00:37 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
> 
> >> From: Stephen Berman <stephen.berman@HIDDEN>
> >> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> >> Date: Sat, 28 Mar 2026 16:09:26 +0100
> >> 
> >> >         But there's one more problem in files-tests.el, which was
> >> > present in your original commit as well: one new test fails, evidently
> >> > due to absolute vs relative name of the 'ls' executable file in the
> >> > error message:
> >> >
> >> >   Test files-tests-file-name-non-special-insert-directory condition:
> >> >       (ert-test-failed
> >> >        ((should
> >> > 	 (equal (buffer-string)
> >> > 		(concat "ls: cannot access '" nospecial-dir
> >> > 			"': No such file or directory\n")))
> >> > 	:form
> >> > 	(equal
> >> > 	 "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
> >> > 	 "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n")
> >> > 	:value nil :explanation
> >> > 	(arrays-of-different-length 101 96
> >> > 				    "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
> >> > 				    "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
> >> > 				    first-mismatch-at 0)))
> >> >
> >> > I don't know why this happens, but if it happens to me, it could also
> >> > happen to others, so maybe the error string to match should be relaxed?
> >> 
> >> Essentially the same test occurs in `dired-test-ls-error-message' in
> >> dired-tests.el, for which you the replaced my use of `equal' by
> >> `string-match-p', so that should also DTRT here as well, shouldn't it?
> >
> > Yes, I think so.  Also it should use insert-directory-program instead
> > of a literal "ls".
> 
> Ok, done and pushed as commit 0c961b7778a.  If you confirm the test now
> passes on your system that emits the error message with the string
> "/bin/ls", then I think the bug can be closed.

Yes, the test now passes, so I'm closing this bug.




Notification sent to Filipp Gunbin <fgunbin@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Eli Zaretskii <eliz@HIDDEN>:
You have taken responsibility. Full text available.

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


Received: (at 80499) by debbugs.gnu.org; 28 Mar 2026 20:04:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 28 16:04:55 2026
Received: from localhost ([127.0.0.1]:50422 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w6Ztu-0000k4-Da
	for submit <at> debbugs.gnu.org; Sat, 28 Mar 2026 16:04:54 -0400
Received: from mout.gmx.net ([212.227.15.18]:41431)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w6Zts-0000jk-46
 for 80499 <at> debbugs.gnu.org; Sat, 28 Mar 2026 16:04:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774728285; x=1775333085; i=stephen.berman@HIDDEN;
 bh=caVagKAz0E6ZIaIvypkSw3tNA8BGj3ijudESXU9Ugxo=;
 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=cn7bNdOYdL6HIXBS1doAEMwPaPXP7D7hAxHpFEzlQ5NuGs+HRatSCVRNDLVDAxrJ
 Ebw65w8bzu0i+/OQ/EGBKZh+qmrIzpkQP8c9w3lOI3d3SvXyZ7QudOxYQDzU4ph3w
 nwljcBFhT53PQeLC/UlYb1p8bQ/Nisn/SpjNiaWNSGXgm8IPs5TBOrGL2z5OiMiku
 FCfsVShltrwoTarcu5x9Og/WMQq9cGvPwpGefx3qeDszjOs6apl9a2iTOvps2HcCa
 b+yCtQF5ar8H6Q2SZNLQ5Z59n3YGpl5hOQE7HJLxhECjQk/WSO6LWvUHx2aLKeuks
 UVF8kH2p4z9Z+PsPDA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M9nxn-1wCKee2gZ3-003jOg; Sat, 28
 Mar 2026 21:04:45 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86h5q0rlju.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
 <86h5q0rlju.fsf@HIDDEN>
Date: Sat, 28 Mar 2026 21:04:44 +0100
Message-ID: <871ph3bu03.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:XEjSeEuu7MPsISDjxFmab3aEhNmMx/ToSso00+bU3xS91U+e6jD
 driLuFOYWB+S8H6LW16yZmHjLNMjNOV88i43mhOIyjb/453Qob9HUbZwsD6/rJQVmTHf0ma
 Ya7c4Q+QfJND6Q8n0I4dhbnmYKGw0ie1F1UnbCnE3oT2d/ucKnEAutcGyUnhai8C3AAXwvo
 +mRgEidIxg+emRCAh99vQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:Eto/J4sbvv8=;z1kidcqklVhu29VizSisOsxK5sc
 +pcDJaJz+2YRRtR0b+9KuMoTTuEy0K+4toqL/f2YbZ1oPLMfLnNNMXGHtR76fbTh8XTuoGdKk
 qGsEekFn916IzgBmCUEFmQD6+tsvAaFktZolLDkvJ8Mc/+oNiWWv1m3g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N6A+3pmmG1IQabaGEajpnMiou2O3E2seqZ1hcQcWcgYmwuV7L
 mSqpNulVdIKFPkwLYhMO2LsSFo2k2NfX7pD7fq8LEUOCIVG8qIp7d4=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (-)

On Sat, 28 Mar 2026 19:00:37 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Sat, 28 Mar 2026 16:09:26 +0100
>>=20
>> >         But there's one more problem in files-tests.el, which was
>> > present in your original commit as well: one new test fails, evidentl=
y
>> > due to absolute vs relative name of the 'ls' executable file in the
>> > error message:
>> >
>> >   Test files-tests-file-name-non-special-insert-directory condition:
>> >       (ert-test-failed
>> >        ((should
>> > 	 (equal (buffer-string)
>> > 		(concat "ls: cannot access '" nospecial-dir
>> > 			"': No such file or directory\n")))
>> > 	:form
>> > 	(equal
>> > 	 "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.s=
pecial': No such file or directory\n"
>> > 	 "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.specia=
l': No such file or directory\n")
>> > 	:value nil :explanation
>> > 	(arrays-of-different-length 101 96
>> > 				    "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqI=
xGsE.special': No such file or directory\n"
>> > 				    "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.=
special': No such file or directory\n"
>> > 				    first-mismatch-at 0)))
>> >
>> > I don't know why this happens, but if it happens to me, it could also
>> > happen to others, so maybe the error string to match should be relaxe=
d?
>>=20
>> Essentially the same test occurs in `dired-test-ls-error-message' in
>> dired-tests.el, for which you the replaced my use of `equal' by
>> `string-match-p', so that should also DTRT here as well, shouldn't it?
>
> Yes, I think so.  Also it should use insert-directory-program instead
> of a literal "ls".

Ok, done and pushed as commit 0c961b7778a.  If you confirm the test now
passes on your system that emits the error message with the string
"/bin/ls", then I think the bug can be closed.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 28 Mar 2026 16:00:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 28 12:00:49 2026
Received: from localhost ([127.0.0.1]:47632 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w6W5h-0004ng-Do
	for submit <at> debbugs.gnu.org; Sat, 28 Mar 2026 12:00:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59826)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w6W5f-0004lW-5C
 for 80499 <at> debbugs.gnu.org; Sat, 28 Mar 2026 12:00:48 -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 1w6W5X-0003VE-N2; Sat, 28 Mar 2026 12:00:41 -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=d1ykVrviAp3DSuJ5T+XlnZWMVi4kMnEehKJeJEViHHM=; b=LeHgQiQDp8Ll
 A6ghso6BLKpiohkVphS4O3ImLJFblkqiAm+jGWZeC7mqvzT9MB7OWdac9lc929tyNUI1TfhRaFVFC
 0lQj1dH3o+d6xRYzJXS4r/bt6aB0Kz5r6tZv6bbsWcoGz/FIyf3ALRccaThWyPA5zqe+UnoBJSIbQ
 7q3cB+YIxYGUhCk+6zyEz+4Ag/hKcJzNKOSJ64rwYpzw7wlvsanqC2C5adEV+EsC7weQjalJA78sN
 b4CVO8Prm7XiuyBE4BkNTd8a979IpGH/pJLop4knXw+7zpHZNJ8aVekpWm5pxhC+yUftzgkBQrI8F
 8z1eLx+HWOcUfHdEzchG7Q==;
Date: Sat, 28 Mar 2026 19:00:37 +0300
Message-Id: <86h5q0rlju.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87o6k8at3t.fsf@HIDDEN> (message from Stephen Berman on Sat, 28
 Mar 2026 16:09:26 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <87342ld8la.fsf@HIDDEN>
 <86wlzx4347.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN> <87o6k8at3t.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Sat, 28 Mar 2026 16:09:26 +0100
> 
> >         But there's one more problem in files-tests.el, which was
> > present in your original commit as well: one new test fails, evidently
> > due to absolute vs relative name of the 'ls' executable file in the
> > error message:
> >
> >   Test files-tests-file-name-non-special-insert-directory condition:
> >       (ert-test-failed
> >        ((should
> > 	 (equal (buffer-string)
> > 		(concat "ls: cannot access '" nospecial-dir
> > 			"': No such file or directory\n")))
> > 	:form
> > 	(equal
> > 	 "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
> > 	 "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n")
> > 	:value nil :explanation
> > 	(arrays-of-different-length 101 96
> > 				    "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
> > 				    "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
> > 				    first-mismatch-at 0)))
> >
> > I don't know why this happens, but if it happens to me, it could also
> > happen to others, so maybe the error string to match should be relaxed?
> 
> Essentially the same test occurs in `dired-test-ls-error-message' in
> dired-tests.el, for which you the replaced my use of `equal' by
> `string-match-p', so that should also DTRT here as well, shouldn't it?

Yes, I think so.  Also it should use insert-directory-program instead
of a literal "ls".

> BTW, concerning your change to call `make-directory' with PARENT = t,
> AFAICS the directory could only already exist if the test is rerun after
> already having failed for some other reason, because in a clean test
> environment, the directory does not exist before running the test, and
> if the test succeeds, the directory is deleted at the end.  So if the
> test works as intended, there is no need to set the PARENT argument.

Yes, I know.  I suspect some previous test removes the directory in a
way that fails on Windows (e.g., removing a directory that is current
for some process), but since having the directory already there does
not contradict the goals of the test, I thought it was enough to
accept an existing directory in this case.




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

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


Received: (at 80499) by debbugs.gnu.org; 28 Mar 2026 15:09:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 28 11:09:43 2026
Received: from localhost ([127.0.0.1]:47028 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w6VIE-0000XX-UN
	for submit <at> debbugs.gnu.org; Sat, 28 Mar 2026 11:09:43 -0400
Received: from mout.gmx.net ([212.227.17.21]:37393)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w6VIC-0000X2-59
 for 80499 <at> debbugs.gnu.org; Sat, 28 Mar 2026 11:09:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774710567; x=1775315367; i=stephen.berman@HIDDEN;
 bh=IEtJawfm/59wIAHPs7z8Bg/lssRuHfLC9ndSvzZtg4E=;
 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=bUZOSlWcOj7LNHQda0/aTnc9CAfCZVXcCrnBLdipTAYfH2jt9QVBAWsn/v+b9wn4
 CKpNN4ThyWBgi54nl9zo/6VL7yOg1Dz8v+TKSg5ST3RQrakSjK6Q6PNV+D5ODrgUD
 vU6LvGqigeIIS0bewmt09+5RBVvUeaz7184+u9CeOm9PqCATDDFEEA4VokCSypH/k
 F36GKB8qoDIw9wrf3jBquVJ6T1/nCt0fc4ATi2zjgycA4HAdCKXape/Cf2wT3gSI6
 9kZYoJks3+veIvPA7ogJ8j3IJICQxpM7q4MCZQlLisTcn9vCQFv2KR7t4kXNtZFBj
 QpkDG04wTdmGZAZSvw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MpUYu-1vlRDH28JI-00f4wp; Sat, 28
 Mar 2026 16:09:27 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <868qbcv3rw.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <87342ld8la.fsf@HIDDEN>
 <86wlzx4347.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
 <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
 <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
 <86zf4qxtdl.fsf@HIDDEN> <87h5qyl55z.fsf@HIDDEN>
 <87sead18pv.fsf@HIDDEN> <86a4wkt1g4.fsf@HIDDEN>
 <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
 <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
 <86ikakxdbf.fsf@HIDDEN> <87pl4q1m35.fsf@HIDDEN>
 <86v7ehvn6p.fsf@HIDDEN> <87qzp546yj.fsf@HIDDEN>
 <868qbcv3rw.fsf@HIDDEN>
Date: Sat, 28 Mar 2026 16:09:26 +0100
Message-ID: <87o6k8at3t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:KJ/dOGzfSWpzO7csElh2Ay4BRkEPX9zM8DhF8mKDlEI+rlwGPwj
 0MMWou8teFyo4B2/0Y/Tt172LMxUr90/1BaB5bMFoNRytKWahB8K3QAPEuEXnlr/Uq19XBd
 x6565wAZqBzgCvBvbTMDtlsVTyC7JFBJNEqaqmyS0cO+3kEhwXOxTc2XZU5zFuFqTsjfzyw
 u0s0rPeTlZpin5zJrAG8w==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:8sMEVISbc4k=;R0iCZGvlzHgtgJUSuSThSDwZYf3
 OvD++gOWAr1kK/xmN6eMeKB2VrNK/YuQgEr81AKCfDUkAoda4awvA+oBfeva+3FBo1iJ86m+4
 dbjTVJCK63M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tm+9wgB9IBE
 DRyUi/K+2dmE0ifKb3MeGpI1dwitb84/IW/kY3q0cvPWKRY3nLfhXlSbw+1jqlxnMrDIAa56L
 rNdALBT/xqxkM/mDQwVFDEC9tPOkCHXW3lgmwTYw6T35T4mz7+69cs=
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (-)

On Sat, 28 Mar 2026 09:58:43 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Fri, 27 Mar 2026 16:39:48 +0100
>>=20
>> On Fri, 27 Mar 2026 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
>>=20
>> >> From: Stephen Berman <stephen.berman@HIDDEN>
>> >> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> >> Date: Thu, 26 Mar 2026 19:29:02 +0100
>> >>=20
>> >> So if you find these changes acceptable, I think they're now ready to=
 be
>> >> installed.
>> >
>> > Assuming all the Dired-related tests pass, please do, and thanks.
>>=20
>> The patch contained a thinko, but fortunately running `make check'
>> caught it (two tests outside of dired-tests.el and files-tests.el
>> failed) and I quickly found and fixed the problem and once again
>> adjusted the test `dired-test-ls-error-message' (which I had previously
>> adjusted to pass with the (then unbeknownst to me) faulty code).  Now
>> all regression tests pass (except two network tests for reasons probably
>> specific to my system and unrelated to Dired), so I've gone ahead and
>> pushed the corrected patch (with a NEWS entry also added) to master as
>> commit 3b7d9e37ce0.  Thanks again for all the feedback.
>
> Thanks.  The new tests had some problems on MS-Windows, which I've now
> fixed.

Thanks for taking care of that again, and also for fixing the "Unused
lexical variable =E2=80=98end=E2=80=99" warning, which I evidently overlook=
ed when I ran
`make check'.

>         But there's one more problem in files-tests.el, which was
> present in your original commit as well: one new test fails, evidently
> due to absolute vs relative name of the 'ls' executable file in the
> error message:
>
>   Test files-tests-file-name-non-special-insert-directory condition:
>       (ert-test-failed
>        ((should
> 	 (equal (buffer-string)
> 		(concat "ls: cannot access '" nospecial-dir
> 			"': No such file or directory\n")))
> 	:form
> 	(equal
> 	 "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.speci=
al': No such file or directory\n"
> 	 "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': =
No such file or directory\n")
> 	:value nil :explanation
> 	(arrays-of-different-length 101 96
> 				    "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE=
.special': No such file or directory\n"
> 				    "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.spec=
ial': No such file or directory\n"
> 				    first-mismatch-at 0)))
>
> I don't know why this happens, but if it happens to me, it could also
> happen to others, so maybe the error string to match should be relaxed?

Essentially the same test occurs in `dired-test-ls-error-message' in
dired-tests.el, for which you the replaced my use of `equal' by
`string-match-p', so that should also DTRT here as well, shouldn't it?
Or did you try that and it didn't work?  (But if so, I don't see how the
two cases differ in this respect, and don't see an essentially different
way to fix it.)

BTW, concerning your change to call `make-directory' with PARENT =3D t,
AFAICS the directory could only already exist if the test is rerun after
already having failed for some other reason, because in a clean test
environment, the directory does not exist before running the test, and
if the test succeeds, the directory is deleted at the end.  So if the
test works as intended, there is no need to set the PARENT argument.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 28 Mar 2026 06:58:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 28 02:58:54 2026
Received: from localhost ([127.0.0.1]:42437 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w6NdG-0007QW-4F
	for submit <at> debbugs.gnu.org; Sat, 28 Mar 2026 02:58:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50270)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w6NdD-0007Pb-O2
 for 80499 <at> debbugs.gnu.org; Sat, 28 Mar 2026 02:58:52 -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 1w6Nd8-00042t-6g; Sat, 28 Mar 2026 02:58:46 -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=1EunyHDGpKVeykxvHbxSsmTS9EaPCJhHsIblgmw64XE=; b=n5zFOgQQIizw
 G+cBe7saifbBubo8Vw5FAxNBm71V7LJ6vgIk3oXCHAtL7k6uxzOqmrxys0WRfEeAABd20knfTFbJA
 mh9bE5XwordxYRePJ5apB4tFkL9lHlCvW1l8iZXiCbQBcWgsZpONgoXmdxHnB1sm3lcZS66ubDbAV
 Ppp6h+TepKICNvEzchCp5nkIAcZOQRc3ObaMv0ddg27L+/1Ii8g83LYgofoxWXa21yZWyXY9MgUU6
 tEWlLrFaeqgaBTXuwTiIrs5vS0hS9lJmh5eXnPEv3TcwBZ5GvrSpSdLtLYIY7WLA66jbkWy6uER5g
 VGiYb4Il+kI4cuF3NAmCXA==;
Date: Sat, 28 Mar 2026 09:58:43 +0300
Message-Id: <868qbcv3rw.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87qzp546yj.fsf@HIDDEN> (message from Stephen Berman on Fri, 27
 Mar 2026 16:39:48 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
 <87qzp546yj.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Fri, 27 Mar 2026 16:39:48 +0100
> 
> On Fri, 27 Mar 2026 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:
> 
> >> From: Stephen Berman <stephen.berman@HIDDEN>
> >> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> >> Date: Thu, 26 Mar 2026 19:29:02 +0100
> >> 
> >> So if you find these changes acceptable, I think they're now ready to be
> >> installed.
> >
> > Assuming all the Dired-related tests pass, please do, and thanks.
> 
> The patch contained a thinko, but fortunately running `make check'
> caught it (two tests outside of dired-tests.el and files-tests.el
> failed) and I quickly found and fixed the problem and once again
> adjusted the test `dired-test-ls-error-message' (which I had previously
> adjusted to pass with the (then unbeknownst to me) faulty code).  Now
> all regression tests pass (except two network tests for reasons probably
> specific to my system and unrelated to Dired), so I've gone ahead and
> pushed the corrected patch (with a NEWS entry also added) to master as
> commit 3b7d9e37ce0.  Thanks again for all the feedback.

Thanks.  The new tests had some problems on MS-Windows, which I've now
fixed.  But there's one more problem in files-tests.el, which was
present in your original commit as well: one new test fails, evidently
due to absolute vs relative name of the 'ls' executable file in the
error message:

  Test files-tests-file-name-non-special-insert-directory condition:
      (ert-test-failed
       ((should
	 (equal (buffer-string)
		(concat "ls: cannot access '" nospecial-dir
			"': No such file or directory\n")))
	:form
	(equal
	 "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
	 "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n")
	:value nil :explanation
	(arrays-of-different-length 101 96
				    "/bin/ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
				    "ls: cannot access '/tmp/files-testswRCpMJ/files-testsqIxGsE.special': No such file or directory\n"
				    first-mismatch-at 0)))

I don't know why this happens, but if it happens to me, it could also
happen to others, so maybe the error string to match should be relaxed?




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

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


Received: (at 80499) by debbugs.gnu.org; 27 Mar 2026 15:40:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 27 11:40:08 2026
Received: from localhost ([127.0.0.1]:57840 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w69I7-0002qU-NP
	for submit <at> debbugs.gnu.org; Fri, 27 Mar 2026 11:40:08 -0400
Received: from mout.gmx.net ([212.227.15.18]:39199)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w69I4-0002p0-GD
 for 80499 <at> debbugs.gnu.org; Fri, 27 Mar 2026 11:40:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774625989; x=1775230789; i=stephen.berman@HIDDEN;
 bh=WxGK4IWKCN7tyTq3Mq70uNM/XFYGMjiJqJQ8t7jc1fQ=;
 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=RAviyKgTsz+lh1bT63v5lb/iO6SKV+xWnL8IqvSJeyeXf/OWVvPkDPQtpHu+5xQx
 PKVOK+jpL/Q4KArHG7JtTXVeJkQMvZdye4vy8T0wcQMwyqY+GVQ1tqDwEHxconZg3
 k4idHdi4VPZL47bxb4jBqT3sxShBNJCoQ1VPETU8hJLwrGoFn9V/ZMzoEqF2JsWo2
 /bzDmD1jwNWT4plKc422Ps5VpFjsuHvQzXHavNKS3NyjPVWLHli5clEqiqGA8D5CJ
 DpoMl7hmE6EGovLsCsRMK1UvN43Bk2t/RbLt/vHs4ZlCLZhsSIToxxVPzKLic4a9W
 632Onsd758mJiQgv4A==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mn2aD-1veCbC2ZXj-00qbKO; Fri, 27
 Mar 2026 16:39:49 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86v7ehvn6p.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN> <86v7ehvn6p.fsf@HIDDEN>
Date: Fri, 27 Mar 2026 16:39:48 +0100
Message-ID: <87qzp546yj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:+OSZzJH7aOn1SWXfSmXp91zGTVYcjhFrAH+4mcVP3IE5ADxk4gJ
 vKN/zHnKz1ZY9ExbgI9gBafUpnIR4edxD/k9+DDDQ+j8pdi0uL7hMLn4Jvkl6mxGyzT7ykE
 IfxG4CRK7Huqd/4nUXasjCbbnc8iBffJlX2fCAutDpbrliVTCE+ZbyPCTcjeG6YgS//QTGJ
 mGe/laV7VU3GL/w9UsALw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:/8getk1L9DY=;7txm1DZt8cYN3Brc3hhVcSPAsuQ
 KQO9lCfNGc2bElhOQQ5cOq8xrmgxW1Xn4JhRUgHZAJM7B/D6eQC72FpS/a7fy8ueXz12Iv3XW
 M7nu0y0PUFTzUj3nhEuwMusMv3c2mMFdAmdActKIQ3fMWPJrdmYKyoWv0dSD4K2qbw/M7CtH3
 TRnSkjp5wb6sJ0Eb8xDQdtiz7hFbwTK/rxAfRuNa1W30lUzx1xJqrYf40qMKK8v6G57yYYehs
 bPr+3L3A7CkvyKJ9Rirn9r731I6AdN6TtVdpxZFq3Gx2gthMv5+pL5/gfi8ufDeQeuCsDC+WY
 d++SI99DsMGR/WDwllBPB5msWWabiOr1IxpT0QRP9SD0ldbjRqTysazV2dRNUkOqhkcv7lv8g
 0jeZl2Y0UWNJ4gY7A10q/ForrnnFC+WlInwOkGHlLjBSHQrCt09cUMOIqkZfVJPi7fOPZsHWD
 nrWDKCwH7ITDYeh7C4xqEg2EFSY6eXpyDjRT7CNaGHKih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T
 EofjkU70miabTsR37XbSaD5SfRKnqDekqOBcjipffclPmOGl7ozjeOn78MopTgnMb0sf3Gq7a
 Vszc9OXomrKk570F44prKmLIZJFv+qrOyMp67QVeCSTCFNZhKoyGjStDO7H9D2WzfMNwDvgF7
 akpKxnwaeuIVl/n+E2Ry1STeVqTtfKh/9LTyv/m1MnGCpRN1/x1R259TXb+PQORTcl8UI2wRi
 aAgq2dAqmayF5qB+BqOXIPrJuEk4rPDsIU6K1wR3NQA5QncG2pKNnpHpjeau8VnLpIBH1Gfq0
 AnMWjfMqVa+bOdPINrVCM4ud+qlKgPJ/VbIr0P4E3jdzp5l/hq8DAwq757HaxSWHA5A0pGlzW
 lR9IiGkY/GHF7HLFmXzbeEmxJd5+kLnBUrrZcn4PvJL5ihJAGmpYodFlWcVBN0+gIKlGBZ7B3
 qR2GFN6U0mv0/FhvKWwAeyZ3VNUuoXudzxRXE1nUj/Eb5oLjiu+j39YsS/YbOQ0D/7G9d1jtV
 sqamZE6Bm2KpkuUJpU9vbzi+bQpufLU55Jn+g6G5WZCKbUKURf3WETR28A0kbvMY7TND5A/sr
 aAJ1fhDbQcHaWC8ydzPmmIhNgnMrsiLIwHC2BPHyM4MxPAhN+Li7rduG/9w2EJ5SxKl8Ij3TS
 c2DQ/j7EpO0ehvJLSEmQACsQ8izs2/GVvPrOpR6++S9lfB5sXusXKZPow9c8qw0=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (-)

On Fri, 27 Mar 2026 08:47:10 +0300 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Thu, 26 Mar 2026 19:29:02 +0100
>>=20
>> So if you find these changes acceptable, I think they're now ready to b=
e
>> installed.
>
> Assuming all the Dired-related tests pass, please do, and thanks.

The patch contained a thinko, but fortunately running `make check'
caught it (two tests outside of dired-tests.el and files-tests.el
failed) and I quickly found and fixed the problem and once again
adjusted the test `dired-test-ls-error-message' (which I had previously
adjusted to pass with the (then unbeknownst to me) faulty code).  Now
all regression tests pass (except two network tests for reasons probably
specific to my system and unrelated to Dired), so I've gone ahead and
pushed the corrected patch (with a NEWS entry also added) to master as
commit 3b7d9e37ce0.  Thanks again for all the feedback.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 27 Mar 2026 05:47:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 27 01:47:22 2026
Received: from localhost ([127.0.0.1]:51918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w602T-0003lH-No
	for submit <at> debbugs.gnu.org; Fri, 27 Mar 2026 01:47:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46900)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w602R-0003kw-96
 for 80499 <at> debbugs.gnu.org; Fri, 27 Mar 2026 01:47:19 -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 1w602L-0000R5-JK; Fri, 27 Mar 2026 01:47:13 -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=bS22zHXJZjZMY5OWzBwsM62cwOqPVw2libBB3qyX4N4=; b=Ye5XxC10C9ED
 lNh5OsYUwmIeUYwcucVVjsHFJ5a/QOHQf15L+qOpGUor7JutHnadP10rkDSFRV/Z0j8kaoAVyz20Y
 +fdQRYGcSa2xf7sDrlCmY+QgVKQGmen5YiHfI1GJBtjc+TlAArnojcMrtSlk8X2Jbe+SGZcDOIoG/
 4slpt9WNu6GEoOowtBrlFU6VA/ZXtqvcj9/v4oo3pmrGsqHMYiK7CASz3tEOowoaOxL8d5IqsLnmA
 7KVVmZxrFrhp+F5M0W/E6xNsAXuBXiJPSl3cQzaxIgGZbaF9HMVtsbfOu/HD7uOOo28nRBymv+e7v
 X+6CdAVjZM88yVJTMO7fVw==;
Date: Fri, 27 Mar 2026 08:47:10 +0300
Message-Id: <86v7ehvn6p.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87pl4q1m35.fsf@HIDDEN> (message from Stephen Berman on Thu, 26
 Mar 2026 19:29:02 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
 <87pl4q1m35.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Thu, 26 Mar 2026 19:29:02 +0100
> 
> So if you find these changes acceptable, I think they're now ready to be
> installed.

Assuming all the Dired-related tests pass, please do, and thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 26 Mar 2026 18:29:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 26 14:29:14 2026
Received: from localhost ([127.0.0.1]:44416 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w5pSD-00033a-6q
	for submit <at> debbugs.gnu.org; Thu, 26 Mar 2026 14:29:14 -0400
Received: from mout.gmx.net ([212.227.15.19]:36613)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w5pS9-00033B-BZ
 for 80499 <at> debbugs.gnu.org; Thu, 26 Mar 2026 14:29:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774549742; x=1775154542; i=stephen.berman@HIDDEN;
 bh=GthAU7wjg7yLRMHZoed7H3PYCGRBadjMMdc6neJbQbE=;
 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=HlDb7SJVybw9Uuyio4ScvxwKbyKuNu8wwaQhCii5DNCfSNXcxSGAquMPx/cv8Os3
 tXmfXpa4HUytkQ0AdOEPZLDcYXm2uiawo4lHv9BEMaoxQT0JhhWAPAaZI8ZpG+oyq
 j81Y1EFa9dq6VyouISIZEo+Sv60QZZAUYy0id6VPF2dJFfXiqdur5P3TdTEpwyHQy
 Rdl/RsH3AIOWQAjaziUSo5Uer1iSCwv/2eGU2+xIoPaa9a/ecI5oOwmSajJbKb5HQ
 ZJ7pQxM2nUxXnJDG8PJ0VXiZFhdcDnXX40shHwHZkA0hn5i1kdTfiZc1mw6T6mX74
 evnkcstc8sZ7L1qR4A==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MDhhN-1wDlvd32Pf-00HUqr; Thu, 26
 Mar 2026 19:29:02 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86ikakxdbf.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
 <87h5q52ty3.fsf@HIDDEN> <86ikakxdbf.fsf@HIDDEN>
Date: Thu, 26 Mar 2026 19:29:02 +0100
Message-ID: <87pl4q1m35.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:jTGzqG8UHHKSrNqSCqe2RkrOqWlBZntLC91gBhdaFZWGkvvT6rg
 M5z8xPPhoMVxC5qtjgmqD0vaE3EBpSyvRz7dmSgCRBg5mkZQhUyIbbypvtSpk8Bw8mcVtL6
 hCg7WYNn+Q4CL0oV1xSHpob8D9rJyfufDLNRnlfn5wjIJ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+OyClvAsfoVlMQnr/0DJQ/qE0OTFSizqtzyMpeXjbAaCG695rWZN8w+
 4koXyjG/slwyMnIaLTJE9+t2i9Kb8EihIdCaP6Iuc1JVet9kJpmJsfI5hPxio4UAnbD/hw84p
 EJQpsIvCLbCy4Vz6xuVNJTZIdd3jQBhl5C95wK6uvavbaZygaTHbdZqhrI/3/wZhkNFGA9WVe
 XzrfwK/BwbWtFcjqVY39XlWOizBncEzkIjNC2liEMf0yJ04sv5uj+P+pxWC55uyX5gNnTutB0
 YtSquhWQLDy7VEybKOQROetbt3UNVWMaLot/DfWo1HUrz0t+oszCSp75gD1uWRVXEKRdSL1+v
 K/LWOkHtLUx+ztBROVFXNHTg==
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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
Content-Transfer-Encoding: quoted-printable

On Wed, 25 Mar 2026 15:12:52 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Tue, 24 Mar 2026 15:17:08 +0100
[...]=20
>> But still the question remains: is it appropriate to display the Dired
>> when the file it was intended to list does not exist?  In the current
>> code (i.e., without the patch) an error is raised and the Dired buffer
>> is not displayed, but with the ls error buffer from the patch,
>> additionally signalling an error is superfluous.  An argument for
>> showing the Dired buffer is that the user immediately sees that the
>> directory does not contain the file, whereas the ls error only asserts
>> that.  On the other hand, displaying the ls error seems sufficient and
>> additionally seeing the Dired buffer might be confusing.  A compromise
>> would be to condition showing the Dired buffer on setting a user option=
.
>> Do you have a preference among these alternatives, or can you suggest
>> another one?  The attached patch retains the behavior of the previous
>> patch for this case (i.e., unconditionally displaying both the ls error
>> buffer and the corresponding Dired buffer (but without the
>> //DIRED-OPTIONS// line)).
>
> I tend to favor the same behavior as before these changes: i.e. show
> an error message and don't display the buffer for a non-existent file.

Ok.

>> Concerning (iii), since you use Emacs on MS-Windows, can you check
>> whether the attached patch works for the missing file case there like i=
t
>> does under GNU/Linux, i.e., popping up the ls error buffer and
>> displaying the corresponding Dired buffer?
>
> You want me to test this after forcing Emacs to use 'ls' on Windows?
> That's not the default (by default we use ls-lisp.el instead), but if
> that's important, I can do that.  With ls-lisp.el, none of the above
> is relevant, because 'ls' is not invoked and any errors come from Lisp
> to begin with.  (And there could be no file names with newlines on
> Windows.)

Ok, it sounds like the effect of the changes on MS-Windows should be nil
for default usage.  And if someone does use 'ls' on Windows and
encounters an issue related to the changes, we can cross that bridge
when we get to it.

So with the attached patch the ls error buffer pops up as before, but
now the Dired buffer that caused the error is not displayed (and is
killed).  This turned out to be more involved than I had expected.
First, I had to move the code displaying the error buffer out of
`insert-directory' because there it ran too early to coordinate
correctly with killing (and hence not displaying) the corresponding
Dired buffer.  The proper place for the latter is
`dired-internal-noselect', where there is already a check for whether
`dired-readin' fails.  Then I realized that popping up the error buffer
can happen not only when invoking `dired', but also the other commands
that call `dired-noselect': `dired-other-window', `dired-other-frame',
and `dired-other-tab'.  So I've added a function for displaying the
error buffer and it is called at the end of these dired commands.  The
results seem satisfactory.  I also had to adjust the two tests involving
the ls error buffer, and all tests in dired-tests.el and files-tests.el
pass.

So if you find these changes acceptable, I think they're now ready to be
installed.

Steve Berman

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: patch for bug#80499
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/dired.el b/lisp/dired.el
index 4782c691411..23ada50d2f4 100644
=2D-- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -649,6 +649,10 @@ dired-subdir-regexp
 of the line.
 Subexpression 2 must end right before the \\n.")
=20
+(defvar dired--ls-error-buffer nil
+  "Non-nil if the current dired invocation yields an `ls' error.
+The non-nil value is the buffer containing the error message.")
+
 =0C
 ;;; Faces
=20
@@ -1230,7 +1234,8 @@ dired
 If DIRNAME is already in a Dired buffer, that buffer is used without refr=
esh."
   ;; Cannot use (interactive "D") because of wildcards.
   (interactive (dired-read-dir-and-switches ""))
-  (pop-to-buffer-same-window (dired-noselect dirname switches)))
+  (pop-to-buffer-same-window (dired-noselect dirname switches))
+  (dired--display-ls-error))
=20
 ;; This is needed to let clicks on the menu bar invoke Dired even if
 ;; some feature remaps the Dired command to another command.
@@ -1248,21 +1253,24 @@ dired-other-window
 the user options `split-height-threshold' and `split-width-threshold',
 when it decides whether to split the window horizontally or vertically."
   (interactive (dired-read-dir-and-switches "in other window "))
-  (switch-to-buffer-other-window (dired-noselect dirname switches)))
+  (switch-to-buffer-other-window (dired-noselect dirname switches))
+  (dired--display-ls-error))
=20
 ;;;###autoload (keymap-set ctl-x-5-map "d" #'dired-other-frame)
 ;;;###autoload
 (defun dired-other-frame (dirname &optional switches)
   "\"Edit\" directory DIRNAME.  Like `dired' but make a new frame."
   (interactive (dired-read-dir-and-switches "in other frame "))
-  (switch-to-buffer-other-frame (dired-noselect dirname switches)))
+  (switch-to-buffer-other-frame (dired-noselect dirname switches))
+  (dired--display-ls-error))
=20
 ;;;###autoload (keymap-set tab-prefix-map "d" #'dired-other-tab)
 ;;;###autoload
 (defun dired-other-tab (dirname &optional switches)
   "\"Edit\" directory DIRNAME.  Like `dired' but make a new tab."
   (interactive (dired-read-dir-and-switches "in other tab "))
-  (switch-to-buffer-other-tab (dired-noselect dirname switches)))
+  (switch-to-buffer-other-tab (dired-noselect dirname switches))
+  (dired--display-ls-error))
=20
 ;;;###autoload
 (defun dired-noselect (dir-or-list &optional switches)
@@ -1447,10 +1455,19 @@ dired-internal-noselect
       (let ((failed t))
 	(unwind-protect
 	    (progn (dired-readin)
-		   (setq failed nil))
-	  ;; dired-readin can fail if parent directories are inaccessible.
-	  ;; Don't leave an empty buffer around in that case.
-	  (if failed (kill-buffer buffer))))
+                   ;; Check for file entries (they are listed below the
+                   ;; directory name and (if present) wildcard lines).
+                   (while (and (skip-syntax-forward "\s")
+                               (looking-at "\\(.+:$\\|wildcard\\)"))
+                     (forward-line))
+                   (unless (eobp)
+		     (setq failed nil)))
+	  ;; No file entries indicates an `ls' error, and `dired-readin'
+	  ;; can fail if parent directories are inaccessible.  In either
+	  ;; case don't leave the Dired buffer around.
+	  (when failed
+            (kill-buffer buffer)
+            (setq buffer nil))))
       (goto-char (point-min))
       (dired-initial-position dirname))
     (when (consp dired-directory)
@@ -4093,6 +4110,13 @@ dired--display-filename-with-newline-warning
       (set-window-point (get-buffer-window)
                         (search-backward "Warning (dired)")))))
=20
+(defun dired--display-ls-error ()
+  "Pop up a buffer displaying the current `ls' error, if any."
+  (when dired--ls-error-buffer
+    (let* ((errwin (display-buffer dired--ls-error-buffer)))
+      (fit-window-to-buffer errwin))
+    (setq dired--ls-error-buffer nil)))
+
 =0C
 ;;; Deleting files
=20
diff --git a/lisp/files.el b/lisp/files.el
index f9af75187cb..ebbbd7ff1b6 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8320,41 +8320,24 @@ insert-directory-clean
       (forward-line -1))
     (if (let ((case-fold-search nil)) (looking-at "//DIRED//"))
 	(let ((end (line-end-position))
-	      (linebeg (point))
-	      error-lines)
-	  ;; Find all the lines that are error messages,
-	  ;; and record the bounds of each one.
-	  (goto-char beg)
-	  (while (< (point) linebeg)
-	    (or (eql (following-char) ?\s)
-		(push (list (point) (line-end-position)) error-lines))
-	    (forward-line 1))
-	  (setq error-lines (nreverse error-lines))
-	  ;; Now read the numeric positions of file names.
+	      (linebeg (point)))
+	  ;; Read the numeric positions of file names.
 	  (goto-char linebeg)
 	  (forward-word-strictly 1)
 	  (forward-char 3)
 	  (while (< (point) end)
-	    (let ((start (insert-directory-adj-pos
-			  (+ beg (read (current-buffer)))
-			  error-lines))
-		  (end (insert-directory-adj-pos
-			(+ beg (read (current-buffer)))
-			error-lines)))
-	      (if (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|))
-		  ;; End is followed by \n or by output of -F.
-		  (put-text-property start end 'dired-filename t)
-		;; It seems that we can't trust ls's output as to
-		;; byte positions of filenames.
-		(put-text-property beg (point) 'dired-filename nil)
-		(end-of-line))))
+	    (let ((start (+ beg (read (current-buffer))))
+		  (end (+ beg (read (current-buffer)))))
+	      (when (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|))
+		;; End is followed by \n or by output of -F.
+	        (put-text-property start end 'dired-filename t))))
 	  (goto-char end)
 	  (beginning-of-line)
 	  (delete-region (point) (progn (forward-line 1) (point))))
       ;; Take care of the case where the ls output contains a
       ;; "//DIRED-OPTIONS//"-line, but no "//DIRED//"-line
       ;; and we went one line too far back (see above).
-      (forward-line 1))
+      (unless (bobp) (forward-line 1)))
     (if (let ((case-fold-search nil)) (looking-at "//DIRED-OPTIONS//"))
 	(delete-region (point) (progn (forward-line 1) (point))))))
=20
@@ -8363,12 +8346,12 @@ insert-directory-clean
 ;;   FULL-DIRECTORY-P is nil.
 ;;   The single line of output must display FILE's name as it was
 ;;   given, namely, an absolute path name.
-;; - must insert exactly one line for each file if WILDCARD or
+;; - must insert exactly one entry for each file if WILDCARD or
 ;;   FULL-DIRECTORY-P is t, plus one optional "total" line
 ;;   before the file lines, plus optional text after the file lines.
-;;   Lines are delimited by "\n", so filenames containing "\n" are not
-;;   allowed.
-;;   File lines should display the basename.
+;;   Entries are delimited by "\n", but file names containing "\n" are
+;;   allowed and by default the "\n" is displayed as a literal newline.
+;;   File entries should display the basename.
 ;; - must be consistent with
 ;;   - functions dired-move-to-filename, (these two define what a file li=
ne is)
 ;;   		 dired-move-to-end-of-filename,
@@ -8410,10 +8393,10 @@ insert-directory
       (declare-function ls-lisp--insert-directory "ls-lisp")
       (ls-lisp--insert-directory file switches wildcard full-directory-p)=
)
      (t
-      (let (result (beg (point)))
+      (let ((beg (point))
+            (errfile (make-temp-file "lserr")))
=20
 	;; Read the actual directory using `insert-directory-program'.
-	;; RESULT gets the status code.
 	(let* (;; We at first read by no-conversion, then after
 	       ;; putting text property `dired-filename, decode one
 	       ;; bunch by one to preserve that property.
@@ -8423,143 +8406,88 @@ insert-directory
 		(and enable-multibyte-characters
 		     (or file-name-coding-system
 			 default-file-name-coding-system))))
-	  (setq result
-		(if wildcard
-		    ;; If the wildcard is just in the file part, then run ls in
-                    ;; the directory part of the file pattern using the l=
ast
-                    ;; component as argument.  Otherwise, run ls in the l=
ongest
-                    ;; subdirectory of the directory part free of wildcar=
ds; use
-                    ;; the remaining of the file pattern as argument.
-		    (let* ((dir-wildcard (insert-directory-wildcard-in-dir-p file))
-                           (default-directory
-                            (cond (dir-wildcard (car dir-wildcard))
-                                  (t
-			           (if (file-name-absolute-p file)
-				       (file-name-directory file)
-				     (file-name-directory (expand-file-name file))))))
-			   (pattern (if dir-wildcard (cdr dir-wildcard) (file-name-nondirector=
y file))))
-		      ;; NB since switches is passed to the shell, be
-		      ;; careful of malicious values, eg "-l;reboot".
-		      ;; See eg dired-safe-switches-p.
-		      (call-process
-		       shell-file-name nil t nil
-		       shell-command-switch
-		       (concat (if (memq system-type '(ms-dos windows-nt))
-				   ""
-				 "\\") ; Disregard Unix shell aliases!
-			       insert-directory-program
-			       " -d "
-			       ;; Quote switches that require quoting
-			       ;; such as "--block-size=3D'1".  But don't
-			       ;; quote switches that use patterns
-			       ;; such as "--ignore=3DPATTERN" (bug#71935).
-			       (mapconcat #'shell-quote-wildcard-pattern
-					  (if (stringp switches)
-					      (split-string-and-unquote switches)
-					    switches)
-					  " ")
-			       " -- "
-			       ;; Quote some characters that have
-			       ;; special meanings in shells; but
-			       ;; don't quote the wildcards--we want
-			       ;; them to be special.  We also
-			       ;; currently don't quote the quoting
-			       ;; characters in case people want to
-			       ;; use them explicitly to quote
-			       ;; wildcard characters.
-			       (shell-quote-wildcard-pattern pattern))))
-		  ;; SunOS 4.1.3, SVr4 and others need the "." to list the
-		  ;; directory if FILE is a symbolic link.
-		  (unless full-directory-p
-		    (setq switches
-			  (cond
-                           ((stringp switches) (concat switches " -d"))
-                           ((member "-d" switches) switches)
-                           (t (append switches '("-d"))))))
-		  (if (string-match "\\`~" file)
-		      (setq file (expand-file-name file)))
-		  (apply #'call-process
-			 insert-directory-program nil t nil
-			 (append
-			  (if (listp switches) switches
-			    (unless (equal switches "")
-			      ;; Split the switches at any spaces so we can
-			      ;; pass separate options as separate args.
-			      (split-string-and-unquote switches)))
-			  ;; Avoid lossage if FILE starts with `-'.
-			  '("--")
-			  (list file))))))
-
-	;; If we got "//DIRED//" in the output, it means we got a real
-	;; directory listing, even if `ls' returned nonzero.
-	;; So ignore any errors.
-	(when (if (stringp switches)
-		  (string-match "--dired\\>" switches)
-		(member "--dired" switches))
-	  (save-excursion
-            (let ((case-fold-search nil))
-	      (forward-line -2)
-	      (when (looking-at "//SUBDIRED//")
-	        (forward-line -1))
-	      (if (looking-at "//DIRED//")
-		  (setq result 0)))))
-
-	(when (and (not (eq 0 result))
-		   (eq insert-directory-ls-version 'unknown))
-	  ;; The first time ls returns an error,
-	  ;; find the version numbers of ls,
-	  ;; and set insert-directory-ls-version
-	  ;; to > if it is more than 5.2.1, < if it is less, nil if it
-	  ;; is equal or if the info cannot be obtained.
-	  ;; (That can mean it isn't GNU ls.)
-	  (let ((version-out
-		 (with-temp-buffer
-		   (call-process "ls" nil t nil "--version")
-		   (buffer-string))))
-	    (setq insert-directory-ls-version
-		  (if (string-match "ls (.*utils) \\([0-9.]*\\)$" version-out)
-		      (let* ((version (match-string 1 version-out))
-		             (split (split-string version "[.]"))
-		             (numbers (mapcar #'string-to-number split))
-		             (min '(5 2 1))
-		             comparison)
-		        (while (and (not comparison) (or numbers min))
-			  (cond ((null min)
-			         (setq comparison #'>))
-			        ((null numbers)
-			         (setq comparison #'<))
-			        ((> (car numbers) (car min))
-			         (setq comparison #'>))
-			        ((< (car numbers) (car min))
-			         (setq comparison #'<))
-			        (t
-				 (setq numbers (cdr numbers)
-				       min (cdr min)))))
-			(or comparison #'=3D))
-		    nil))))
-
-	;; For GNU ls versions 5.2.2 and up, ignore minor errors.
-	(when (and (eq 1 result) (eq insert-directory-ls-version #'>))
-	  (setq result 0))
-
-	;; If `insert-directory-program' failed, signal an error.
-	(unless (eq 0 result)
-	  ;; Delete the error message it may have output.
-	  (delete-region beg (point))
-	  ;; On non-Posix systems, we cannot open a directory, so
-	  ;; don't even try, because that will always result in
-	  ;; the ubiquitous "Access denied".  Instead, show the
-	  ;; command line so the user can try to guess what went wrong.
-	  (if (and (file-directory-p file)
-		   (memq system-type '(ms-dos windows-nt)))
-	      (error
-	       "Reading directory: \"%s %s -- %s\" exited with status %s"
-	       insert-directory-program
-	       (if (listp switches) (concat switches) switches)
-	       file result)
-	    ;; Unix.  Access the file to get a suitable error.
-	    (access-file file "Reading directory")
-	    (error "Listing directory failed but `access-file' worked")))
+	  (if wildcard
+	      ;; If the wildcard is just in the file part, then run ls in
+              ;; the directory part of the file pattern using the last
+              ;; component as argument.  Otherwise, run ls in the longest
+              ;; subdirectory of the directory part free of wildcards; us=
e
+              ;; the remaining of the file pattern as argument.
+	      (let* ((dir-wildcard
+                      (insert-directory-wildcard-in-dir-p file))
+                     (default-directory
+                      (cond (dir-wildcard (car dir-wildcard))
+                            (t
+			     (if (file-name-absolute-p file)
+				 (file-name-directory file)
+			       (file-name-directory
+                                (expand-file-name file))))))
+		     (pattern (if dir-wildcard
+                                  (cdr dir-wildcard)
+                                (file-name-nondirectory file))))
+		;; NB since switches is passed to the shell, be
+		;; careful of malicious values, eg "-l;reboot".
+		;; See eg dired-safe-switches-p.
+		(call-process
+		 shell-file-name nil (list t errfile) nil
+		 shell-command-switch
+		 (concat (if (memq system-type '(ms-dos windows-nt))
+			     ""
+			   "\\") ; Disregard Unix shell aliases!
+			 insert-directory-program
+			 " -d "
+			 ;; Quote switches that require quoting
+			 ;; such as "--block-size=3D'1".  But don't
+			 ;; quote switches that use patterns
+			 ;; such as "--ignore=3DPATTERN" (bug#71935).
+			 (mapconcat #'shell-quote-wildcard-pattern
+				    (if (stringp switches)
+					(split-string-and-unquote switches)
+				      switches)
+				    " ")
+			 " -- "
+			 ;; Quote some characters that have
+			 ;; special meanings in shells; but
+			 ;; don't quote the wildcards--we want
+			 ;; them to be special.  We also
+			 ;; currently don't quote the quoting
+			 ;; characters in case people want to
+			 ;; use them explicitly to quote
+			 ;; wildcard characters.
+			 (shell-quote-wildcard-pattern pattern))))
+	    ;; SunOS 4.1.3, SVr4 and others need the "." to list the
+	    ;; directory if FILE is a symbolic link.
+	    (unless full-directory-p
+	      (setq switches
+		    (cond
+                     ((stringp switches) (concat switches " -d"))
+                     ((member "-d" switches) switches)
+                     (t (append switches '("-d"))))))
+	    (if (string-match "\\`~" file)
+		(setq file (expand-file-name file)))
+	    (apply #'call-process
+		   insert-directory-program nil (list t errfile) nil
+		   (append
+		    (if (listp switches) switches
+		      (unless (equal switches "")
+			;; Split the switches at any spaces so we can
+			;; pass separate options as separate args.
+			(split-string-and-unquote switches)))
+		    ;; Avoid lossage if FILE starts with `-'.
+		    '("--")
+		    (list file)))))
+
+        ;; If `ls' emits an error message, copy it to a buffer that will
+        ;; be displayed when a Dired invocation results in the `ls'
+        ;; error.
+        (when (> (file-attribute-size (file-attributes errfile)) 0)
+          (defvar dired--ls-error-buffer) ; Pacify byte-compiler.
+          (let ((errbuf (get-buffer-create "*ls error*")))
+            (with-current-buffer errbuf
+              (erase-buffer)
+              (insert-file-contents errfile))
+            (setq dired--ls-error-buffer errbuf)))
+        (delete-file errfile)
+
         (insert-directory-clean beg switches)
 	;; Now decode what read if necessary.
 	(let ((coding (or coding-system-for-read
@@ -8594,18 +8522,6 @@ insert-directory
 			(put-text-property pos (point)
 					   'dired-filename t))))))))))))
=20
-(defun insert-directory-adj-pos (pos error-lines)
-  "Convert `ls --dired' file name position value POS to a buffer position=
.
-File name position values returned in ls --dired output
-count only stdout; they don't count the error messages sent to stderr.
-So this function converts to them to real buffer positions.
-ERROR-LINES is a list of buffer positions of error message lines,
-of the form (START END)."
-  (while (and error-lines (< (caar error-lines) pos))
-    (setq pos (+ pos (- (nth 1 (car error-lines)) (nth 0 (car error-lines=
)))))
-    (pop error-lines))
-  pos)
-
 (defun insert-directory-safely (file switches
 				     &optional wildcard full-directory-p)
   "Insert directory listing for FILE, formatted according to SWITCHES.
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 559e113a24c..2820e1ae9cd 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -658,6 +658,86 @@ dired-test-hide-absolute-location-disabled
       (let ((default-directory test-dir-other))
         (files-tests--insert-directory-shows-given-free test-dir)))))
=20
+(ert-deftest dired-test-filename-with-newline-1 () ; bug#79528, bug#80499
+  "Test handling of file name with literal embedded newline."
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (let* ((dired-auto-toggle-b-switch nil)
+         (dir (ert-resource-file
+               (file-name-as-directory "filename-with-newline")))
+         (file (concat dir "filename\nwith newline"))
+         (buf (progn (make-empty-file file t)
+                     (dired (file-name-directory file))))
+         (warnbuf (get-buffer "*Warnings*")))
+    (should (dired--filename-with-newline-p))
+    (let ((beg (point))               ; beginning of file name
+          (end (dired-move-to-end-of-filename)))
+      (should (search-backward "with newline")) ; literal space in file n=
ame
+      (should (search-backward "\n" beg))) ; literal newline in file name
+    (if noninteractive
+        (with-current-buffer "*Messages*"
+          (goto-char (point-min))
+          (should (search-forward
+                   "Warning (dired): Literal newline in file name.")))
+      (should (get-buffer-window warnbuf))
+      (with-current-buffer warnbuf
+        (goto-char (point-min))
+        (should (string-match
+                 (regexp-quote "Warning (dired): Literal newline in file =
name.")
+                 (buffer-substring (pos-bol) (pos-eol))))))
+    (kill-buffer buf)
+    (kill-buffer warnbuf)
+    (delete-directory dir t)))
+
+(ert-deftest dired-test-filename-with-newline-2 () ; bug#79528, bug#80499
+  "Test handling of file name with embedded newline using `b' switch."
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (let* ((dired-auto-toggle-b-switch t)
+         (dir (ert-resource-file
+               (file-name-as-directory "filename-with-newline")))
+         (file (concat dir "filename\nwith newline"))
+         (buf (progn (make-empty-file file t)
+                     (dired-noselect (file-name-directory file))))
+         (warnbuf (get-buffer "*Warnings*")))
+    (with-current-buffer buf
+      (should (dired--filename-with-newline-p))
+      (dired--toggle-b-switch)
+      (let ((beg (point))               ; beginning of file name
+            (end (dired-move-to-end-of-filename)))
+        (should (search-backward "with\\ newline")) ; result of ls -b swi=
tch
+        (should (search-backward "\\n" beg)))) ; result of ls -b switch
+    (if noninteractive
+        (with-current-buffer "*Messages*"
+          (goto-char (point-min))
+          (should-error (search-forward
+                         "Warning (dired): Literal newline in file name."=
)))
+      (should-not (get-buffer "*Warnings*")))
+    (kill-buffer buf)
+    (kill-buffer warnbuf)
+    (delete-directory dir t)))
+
+(ert-deftest dired-test-ls-error-message () ; bug#80499
+  "Test invoking `dired' on a nonexisting file.
+A buffer should pop up containing the error emitted by ls."
+  (let* ((dir (ert-resource-file (file-name-as-directory "empty-dir")))
+         (name (concat dir "bla"))
+         (buf (progn (make-directory dir)
+                     (dired name))))
+    (let ((errbuf (get-buffer "*ls error*")))
+      (should (get-buffer-window errbuf))
+      (should-not (buffer-live-p buf))
+      (with-current-buffer errbuf
+        (should (equal (buffer-string)
+                       (concat "ls: cannot access '"
+                               (file-name-nondirectory name)
+                               "': No such file or directory\n"))))
+      (kill-buffer errbuf))
+    (delete-directory dir t)))
+
+
 (defun dired-test--filename-with-backslash-n ()
   "Core of test `dired-test-filename-with-backslash-n'."
   (let* ((dir (ert-resource-file
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index e6b2a0eb078..ae40bb8c385 100644
=2D-- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -1027,7 +1027,17 @@ files-tests-file-name-non-special-insert-directory
                      (buffer-string)))))
   (files-tests--with-temp-non-special-and-file-name-handler
       (tmpdir nospecial-dir t)
-    (should-error (with-temp-buffer (insert-directory nospecial-dir "")))=
))
+    (with-temp-buffer (insert-directory nospecial-dir ""))
+    (let ((errbuf (get-buffer "*ls error*"))
+          ;; By the time `ls' is called in `insert-directory', the
+          ;; handler prefix has been removed.
+          (nospecial-dir (string-remove-prefix "/:" nospecial-dir)))
+      (should errbuf)
+      (with-current-buffer errbuf
+        (should (equal (buffer-string)
+                       (concat "ls: cannot access '" nospecial-dir
+                               "': No such file or directory\n"))))
+      (kill-buffer errbuf))))
=20
 (ert-deftest files-tests-file-name-non-special-insert-file-contents ()
   (files-tests--with-temp-non-special (tmpfile nospecial)

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 25 Mar 2026 13:13:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 25 09:13:06 2026
Received: from localhost ([127.0.0.1]:52113 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w5O2j-00073A-1e
	for submit <at> debbugs.gnu.org; Wed, 25 Mar 2026 09:13:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37772)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w5O2g-00072U-0Z
 for 80499 <at> debbugs.gnu.org; Wed, 25 Mar 2026 09:13:02 -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 1w5O2a-0006oi-IO; Wed, 25 Mar 2026 09:12:56 -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=SxHYPkQSqDh4dL9s+Gy5vG7Vylf3sog0emjswMgNB0A=; b=nxRuKig/DbmF
 reyNeMI2ZQbQyGJAMKbFT1cYd3pZqsIterdp9yajxHszQtWnxDcl1jgF/Q8LfVZmRG7gLq0QECySM
 y8UlIA/dZmPaQeUUPOPAqPoxeglIWWKY0qnFTO+pOM8nwFeu0zAkMimD1yB+U1T6SMRfp2gtZKsW3
 XmgrlAcocIZM9kcwqxaXkL3+b1vNonIydHE/vumCDPYn4vPf0rcvgrPIHbjLeOxdTVRNBnwyb5TWU
 fSlwlQEGFm1dY3n5vfa4AxqUj1QgbRKhgbY0BhJossi4qS/M/zYcy0m9LWp2A7+83xcgfwjRtLtex
 mYxIxsnWifSNFBnvylFrDA==;
Date: Wed, 25 Mar 2026 15:12:52 +0200
Message-Id: <86ikakxdbf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87h5q52ty3.fsf@HIDDEN> (message from Stephen Berman on Tue, 24
 Mar 2026 15:17:08 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN> <87h5q52ty3.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Tue, 24 Mar 2026 15:17:08 +0100
> 
> Sorry for the delay in replying.  While testing, some issues with this
> patch arose: (i) a proliferation of empty ls error buffers; (ii) what to
> do with the Dired buffer created when invoking Dired on a nonexisting
> file; and finally, (iii) I'm not sure (and cannot test) that the patch
> is unproblematic for non-POSIX systems.
> 
> Concerning (i), since popping up the ls error buffer is conditioned on
> there being an error, i.e., the buffer is not empty, the proliferation
> is avoided simply by deleting the buffer when the condition fails.  The
> attached patch updates the previous one to avoid the buffer
> proliferation.

SGTM, thanks.

> Concerning (ii), the behavior with the patch is shown in the attached
> screenshot: the top window shows the result (also without the patch) of
> invoking dired on an existing nondirectory file, the middle and bottom
> windows the result with a nonexisting file.  The //DIRED-OPTIONS// line
> should not be there; a comment in `insert-directory-clean' suggests the
> current code should handle this by calling `forward-line' to go to that
> line, but it fails when the buffer contains only that line (the first
> two lines are added subsequently by code in `dired-insert-directory').
> The fix is to skip `forward-line' when point is already at BOB.  I
> reviewed the thread of bug#27631, which resulted in the current code but
> found no discussion of this case, but the BOB check seems safe to me.
> But still the question remains: is it appropriate to display the Dired
> when the file it was intended to list does not exist?  In the current
> code (i.e., without the patch) an error is raised and the Dired buffer
> is not displayed, but with the ls error buffer from the patch,
> additionally signalling an error is superfluous.  An argument for
> showing the Dired buffer is that the user immediately sees that the
> directory does not contain the file, whereas the ls error only asserts
> that.  On the other hand, displaying the ls error seems sufficient and
> additionally seeing the Dired buffer might be confusing.  A compromise
> would be to condition showing the Dired buffer on setting a user option.
> Do you have a preference among these alternatives, or can you suggest
> another one?  The attached patch retains the behavior of the previous
> patch for this case (i.e., unconditionally displaying both the ls error
> buffer and the corresponding Dired buffer (but without the
> //DIRED-OPTIONS// line)).

I tend to favor the same behavior as before these changes: i.e. show
an error message and don't display the buffer for a non-existent file.

> Concerning (iii), since you use Emacs on MS-Windows, can you check
> whether the attached patch works for the missing file case there like it
> does under GNU/Linux, i.e., popping up the ls error buffer and
> displaying the corresponding Dired buffer?

You want me to test this after forcing Emacs to use 'ls' on Windows?
That's not the default (by default we use ls-lisp.el instead), but if
that's important, I can do that.  With ls-lisp.el, none of the above
is relevant, because 'ls' is not invoked and any errors come from Lisp
to begin with.  (And there could be no file names with newlines on
Windows.)

> The attached patch also includes changes to the comment above
> `insert-directory' regarding file entries (which now need not be single
> lines) in Dired; do you agree with those changes?

Yes.

> In addition, the patch contains revised Dired tests (using temporary
> directories and files rather than permanently adding them to the
> test/dired-resources directory).  When the patch is ready to
> install, I'll also add a NEWS entry; I don't think changes to the
> elisp manual are needed.

Thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 24 Mar 2026 14:17:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 24 10:17:32 2026
Received: from localhost ([127.0.0.1]:44191 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w52ZY-000506-67
	for submit <at> debbugs.gnu.org; Tue, 24 Mar 2026 10:17:32 -0400
Received: from mout.gmx.net ([212.227.17.22]:48609)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1w52ZV-0004zQ-8m
 for 80499 <at> debbugs.gnu.org; Tue, 24 Mar 2026 10:17:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1774361830; x=1774966630; i=stephen.berman@HIDDEN;
 bh=sYQYQqPNRkc7qQacV/y4tyzNEZKLjw9eq17HNowOzGc=;
 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=paq9S9345x0c7PyhUkARPlkGM8VK976me2bdbOY93tbcHW+cQk320k2un8X13wxm
 4/mLjkpsA7x++yTwIMEdm/OyRI9iEAKskeFhUHOnlSZ7xA6xsBQ0ol3FzbHusajDP
 9LJvDvA0HvpLTYjJ9OCLa+DRzTStiCVHv9eIc8GcaHL1fXB2tAIzdEspAyIpdrFId
 v5LAKnoRrkiJSfbaA4Ivqi3FRE0W60L/jVfZcAiOd6bOo/txiRDkahWjm4vlYxsjf
 g9gQuyvZ7c+XZFN5UXgCvKZ5iSovpsn95Nm7dB/LZXcTxV1c1e2DcZQPdtQuDs8aK
 vH/rkSxb+X6hk1AtBA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MN5eX-1vosj22Efl-00WLha; Tue, 24
 Mar 2026 15:17:09 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86ms01biem.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
 <874impupg4.fsf@HIDDEN> <86ms01biem.fsf@HIDDEN>
Date: Tue, 24 Mar 2026 15:17:08 +0100
Message-ID: <87h5q52ty3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:cEsOFt+mayxtoqxn7e7STqAQL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FWO/R4cLK9S/4LoXWdUIOWmsxRifupmbwx/x7h/GLHL8A57sBRmJQ0z8
 rQl6v3Xc3vGWfHxCfYyMcBb7213SCqRJ+p91aSohQmoIVv6u39Zi/UanbhOXYzvo+J80qB17p
 Q5aeSjRiOdn+cYhXnjjG0gLpJk1wMPDsgCGRZSbbIg5/7pgv4jbhJ8bGrLLYt72vH0iBOubXr
 Ehd+vCISPO5Yd5Rznw0frUdUhpZN9uEmFQVjefc2jAQJZbr9jbgbh5hCdTYEmhxQSnXPXj8Tt
 hyiPtwxCP1kdWqSjIPp5hoOyAiRN5mNvsK4/bZGA2yMMeOM2lYVaGqwz//dnhIwYjv1f7OjGV
 TLBvB+2mspwx4T3SnPnPcKW25g77HpnkP231A5X5UeiKxwAwSAeXk7PziR6lyuTdCXh5WjGpm
 eXpRSleCND0CPn/eQZ9HephYTAw4CJGSUNnpRZvJaVp6szSgCBj2nqkkzGhxWGWACrtyMiMRB
 qWLY8NR+qzFFuwrFrIyfkS2WIN39SpC5Pg2COSvp8lVl2O6R+vyUs1ldHnlYfl6ybLDgCnI1L
 gMysSgt88giFl3A7RhGDVmYiE4CDDq/uE/ZI=
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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>

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

On Sat, 21 Mar 2026 12:12:33 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Mon, 09 Mar 2026 14:01:31 +0100
[...]=20
>> The failing test in files-tests.el turned out to be a variant of the
>> missing file case, so I was able to fix the failure by using the same
>> means as in the third new test I added to dired-tests.el.  This in turn
>> made it possible to eliminate all of the original error checking code i=
n
>> `insert-directory', since any errors caught by it are already handled b=
y
>> the new `ls' error handling -- at least, I hope so; but if not, then th=
e
>> new approach should be flexible enough to be adjusted or extended as
>> needed.  In any case, with the attached patch all but two non-skipped
>> tests run by `make check' pass (and AFAICT the two failed tests do not
>> involve `insert-directory').
>
> Can we install this patch, please?

Sorry for the delay in replying.  While testing, some issues with this
patch arose: (i) a proliferation of empty ls error buffers; (ii) what to
do with the Dired buffer created when invoking Dired on a nonexisting
file; and finally, (iii) I'm not sure (and cannot test) that the patch
is unproblematic for non-POSIX systems.

Concerning (i), since popping up the ls error buffer is conditioned on
there being an error, i.e., the buffer is not empty, the proliferation
is avoided simply by deleting the buffer when the condition fails.  The
attached patch updates the previous one to avoid the buffer
proliferation.

Concerning (ii), the behavior with the patch is shown in the attached
screenshot: the top window shows the result (also without the patch) of
invoking dired on an existing nondirectory file, the middle and bottom
windows the result with a nonexisting file.  The //DIRED-OPTIONS// line
should not be there; a comment in `insert-directory-clean' suggests the
current code should handle this by calling `forward-line' to go to that
line, but it fails when the buffer contains only that line (the first
two lines are added subsequently by code in `dired-insert-directory').
The fix is to skip `forward-line' when point is already at BOB.  I
reviewed the thread of bug#27631, which resulted in the current code but
found no discussion of this case, but the BOB check seems safe to me.
But still the question remains: is it appropriate to display the Dired
when the file it was intended to list does not exist?  In the current
code (i.e., without the patch) an error is raised and the Dired buffer
is not displayed, but with the ls error buffer from the patch,
additionally signalling an error is superfluous.  An argument for
showing the Dired buffer is that the user immediately sees that the
directory does not contain the file, whereas the ls error only asserts
that.  On the other hand, displaying the ls error seems sufficient and
additionally seeing the Dired buffer might be confusing.  A compromise
would be to condition showing the Dired buffer on setting a user option.
Do you have a preference among these alternatives, or can you suggest
another one?  The attached patch retains the behavior of the previous
patch for this case (i.e., unconditionally displaying both the ls error
buffer and the corresponding Dired buffer (but without the
//DIRED-OPTIONS// line)).

Concerning (iii), since you use Emacs on MS-Windows, can you check
whether the attached patch works for the missing file case there like it
does under GNU/Linux, i.e., popping up the ls error buffer and
displaying the corresponding Dired buffer?  If it does, then I think the
patch can be installed as is (or after adjusting to suppress or
conditionalize the display of the Dired buffer).  If the patch does not
work as intended under MS-Windows, then perhaps it would suffice to
retain that part of the error handling for non-POSIX systems currently
in `insert-directory'; but if more adjustments are required, I'll need
help to do that, or I'd be happy to leave that to you or someone else
familiar with the requirements of Emacs under MS-Windows.

The attached patch also includes changes to the comment above
`insert-directory' regarding file entries (which now need not be single
lines) in Dired; do you agree with those changes?  In addition, the
patch contains revised Dired tests (using temporary directories and
files rather than permanently adding them to the test/dired-resources
directory).  When the patch is ready to install, I'll also add a NEWS
entry; I don't think changes to the elisp manual are needed.

Steve Berman

--=-=-=
Content-Type: image/png
Content-Disposition: attachment; filename=Screenshot_2026-03-23_23-53-24.png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAqoAAALQCAYAAABYPFLNAADYM0lEQVR4nOydBXxUR9fGz8YdCe7u
UIpbgba01KjSljp1f99SpVTe9qu7u3upu1CsaLHi7g4JgSQQl/3mmc1ddjcrd5Pd5AaeP78lu1fn
zp0788w5Z+ZGiQc333SDXQghhBBCCKliXnv9TZvr7yjjyy033Wjv0KG99O3bR+rWqSuEEEIIIYRU
FQsXLZKkpCR7zqEcefX1N7Rg1f/dcvON9oEDBkif3r2EEEI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+PANVSZIkdalGA9SMgaokSZKSZKAqSZKkJFUNVEcdddTw2WefhZ9++qnqm77++usg
SZIkZSaeeOLQjBFGGCGMNtpoIfz26xDLqgaqn376aRg0aFCQJEmSutrjjz8etv7734Z4vWqg+vPP
PwdJkiSpO7z77rtVX2+6jyrdAi655JKw0korhfHHHz++9vLLL4enn346rLXWWqU+47fffgs//vhj
GGmkkZpa3pV++OGHsMkmm4Spp546HHrooUMsv+WWW8JZZ53V8e+dd945zDvvvKG79PT3q/tcdtll
Yeyxxw7LL798p9c5z3755Zd4jlxxxRX/azZpYHlXu++++8Kvv/4aFltsscK/vfPOO8MHH3wQ1l13
3dAbnXzyyWGmmWYKSy+9dPz3N998E6666qowzDDDxK5ULJt11lmrvvfCCy+Mf7/VVluFrtTo9+y9
997x9yy11FJhaEQZyzGZN/roo4c111wzPq93fjWy/1tx7rnnhvHGGy+suuqqQeqrmp7wn0COQOnD
Dz/seO3FF18MF198can3v/DCC2HjjTcOf/vb38Lxxx/f8PKuxgWWQurjjz+uunzSSScNSyyxRAwg
+Lvvv/8+dKee/n51jzfeeCOceeaZ4ZhjjokXxDwuhGeccUbc91TqKhUt72oEn3fccUfh373yyivh
sMMOC+eff37ojdhHt99+e1h00UU7Xvvqq69i+fj666+HJ554Iuyxxx5ht912G2IfYrLJJgtTTTVV
6Gpffvll+OKLL0r//SeffBK+/fbbMLS68cYb4zH8/vvvdzw++uijjuX1zq9G9n8rVlhhhVg+DM37
SX1fj92Z6pxzzgl77rln/D8nM49GlncnssfPPPNM+Pzzzztem2222cLWW28d/vCHP9R9L4E8WWbe
38wgNCoEzz77bMxW5we3lf1+9W5kJRdaaKEw7rjjxv47fQ0VwqOOOir86U9/Cr3VlVdeGTOPI444
4hDLqGwfeOCBMfP11ltvxex4hnObwIdM28ILL1z1swkuCUKyMoigOI+MHpV6HtUGv5LZqyy7GkWA
9txzz8X1za87gWwlXisbjLFOBHn8nzKS4K4S24dlgwcPjsdKhu/gfe+99158ZNuhsowt2j5F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FHbWh5V3vooYfC
r7/+GhZaaKGqy1m3V155JdZSv/vuu7DOOuuE3uqss84KM8wwQ1hssf9rRnr22WfDoEGDhvjbtdZa
K4wwwgih3S6//PLw7bffhk022SSk4scffwxffvllLB8bVeb4vfjii8N4440Xll9++SBJPWHY0IMe
fvjhWEi+/fbb4bPPPgtfffVVeOaZZ0ov70q//fZbuOmmm8IPP/wQXnzxxfDOO+/Edbjjjjvi8kkm
mSQsvPDCMcD58MMP498NTYq2T2/x1ltvhQsuuCCccsop8aKfd95554Vjjz02fP/99/H3Vipa3tXu
u+++cO+999ZcTgVi3333DQMHDgwXXnhh6K3YR/fcc09YYIEFOr3+5JNPxt/I+Zd/dNW+oPwhKEzJ
888/H3bZZZfQjDLH7zLLLBPOP//8GKBLUk/o0YwqtflDDjkkZj+4GN18881h7bXXLr28K5GBevrp
p8Nll10WRh555PDuu++GSy+9NCy77LJx+cwzzxwfZHpefvnlmp9DAf/mm2/G5wS3Y401VmgEwRNZ
sZFGGilMMcUUnTJFbB+CQ5aRDSFzNsooo4Spp5661HIQaLL+I444Yph22mnDcMMNV+rzi7ZPb0FW
cr755ovbmN8z77zzhr6CLNhqq60WHn300TBgwIDQW11//fUxk8oxWolzarvttqv6PgJLjt3sfQRk
HNOjjTZa/Ded+FnOOUBleMoppwxjjDFGp8/g/H399dfDZJNNVvU7Pv744/DBBx/Ez+H8GXbY/9X9
OW85R3gMM8wwMeP56quvhkknnbTj+8H68Do4r/Lnd731y85NAmey6qwHOE/zmdFa61fWhBNOGFuy
qICussoqQZK6W7cEqocddli8oNDUlEeT5eijjx6DUTKTe+21V5h88slLL+9KFPY77bRTzLTdcsst
8bUtt9wyXvjLuv/++8O///3veIHM7L///qW7CDzxxBPhyCOPjBdcjDvuuDF7Muuss8Z/v/fee2Gb
bbYJ/fr1C998800M5sF2mn/++QuXk50+9NBDOz6f5vv99tsvXkzLfH6r2ycFZO0Jrscee+wYtPal
QJUKRG9Hpo/M8e677x4addBBB4Ull1wyrLTSS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c3PEVwWlUyylWQuqw2EzG4CQD/uZls6sjKC8qEd3XrauX4M9GLWAmZg6Yq7fUlShpazBeaf
r9NrBw0YkMYtVPuyygm4m8GAjsqJyNuplT5yUlfj+GSaKAZN1rpdbC0El7UGc5ZBxrHeYMV2nJvt
KCNqaXX92OZbbbWVQaqkHmOgKil5q666alD36445qyWpnpqBajODFyRJkqR2qRqoFnXm78pmaEmS
JKWnaOaYVuPD7779ZojXbPqXJElSkgxUJUmSlCQDVUmSJCXJQFWSJElJMlCVJElSkgxUJUmSlCQD
VUmSJCXJQFWSJElJMlCVJElSkgxUJUmSlCQDVUmSJCXJQFWSJElJMlCVJElSkgxUJUmSlCQDVUmS
JCXJQFWSJElJqhqoDj/csHXf9N233wRJkiQNPXoiPjSjKkmSpCTF0Pirr74KkiRJUgqy2DQGqgMH
DgzffGNzviRJknoWMSmxKYbhP/377/FbkCRJkhJx8MGHDPP/APu/lZKJn91dAAAAAElFTkSuQmCC
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: patch for bug#80499
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/files.el b/lisp/files.el
index f9af75187cb..79d855e6a34 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8320,41 +8320,24 @@ insert-directory-clean
       (forward-line -1))
     (if (let ((case-fold-search nil)) (looking-at "//DIRED//"))
 	(let ((end (line-end-position))
-	      (linebeg (point))
-	      error-lines)
-	  ;; Find all the lines that are error messages,
-	  ;; and record the bounds of each one.
-	  (goto-char beg)
-	  (while (< (point) linebeg)
-	    (or (eql (following-char) ?\s)
-		(push (list (point) (line-end-position)) error-lines))
-	    (forward-line 1))
-	  (setq error-lines (nreverse error-lines))
-	  ;; Now read the numeric positions of file names.
+	      (linebeg (point)))
+	  ;; Read the numeric positions of file names.
 	  (goto-char linebeg)
 	  (forward-word-strictly 1)
 	  (forward-char 3)
 	  (while (< (point) end)
-	    (let ((start (insert-directory-adj-pos
-			  (+ beg (read (current-buffer)))
-			  error-lines))
-		  (end (insert-directory-adj-pos
-			(+ beg (read (current-buffer)))
-			error-lines)))
-	      (if (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|))
-		  ;; End is followed by \n or by output of -F.
-		  (put-text-property start end 'dired-filename t)
-		;; It seems that we can't trust ls's output as to
-		;; byte positions of filenames.
-		(put-text-property beg (point) 'dired-filename nil)
-		(end-of-line))))
+	    (let ((start (+ beg (read (current-buffer))))
+		  (end (+ beg (read (current-buffer)))))
+	      (when (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|))
+		;; End is followed by \n or by output of -F.
+	        (put-text-property start end 'dired-filename t))))
 	  (goto-char end)
 	  (beginning-of-line)
 	  (delete-region (point) (progn (forward-line 1) (point))))
       ;; Take care of the case where the ls output contains a
       ;; "//DIRED-OPTIONS//"-line, but no "//DIRED//"-line
       ;; and we went one line too far back (see above).
-      (forward-line 1))
+      (unless (bobp) (forward-line 1)))
     (if (let ((case-fold-search nil)) (looking-at "//DIRED-OPTIONS//"))
 	(delete-region (point) (progn (forward-line 1) (point))))))
=20
@@ -8363,12 +8346,12 @@ insert-directory-clean
 ;;   FULL-DIRECTORY-P is nil.
 ;;   The single line of output must display FILE's name as it was
 ;;   given, namely, an absolute path name.
-;; - must insert exactly one line for each file if WILDCARD or
+;; - must insert exactly one entry for each file if WILDCARD or
 ;;   FULL-DIRECTORY-P is t, plus one optional "total" line
 ;;   before the file lines, plus optional text after the file lines.
-;;   Lines are delimited by "\n", so filenames containing "\n" are not
-;;   allowed.
-;;   File lines should display the basename.
+;;   Entries are delimited by "\n", but file names containing "\n" are
+;;   allowed and by default the "\n" is displayed as a literal newline.
+;;   File entries should display the basename.
 ;; - must be consistent with
 ;;   - functions dired-move-to-filename, (these two define what a file li=
ne is)
 ;;   		 dired-move-to-end-of-filename,
@@ -8410,10 +8393,10 @@ insert-directory
       (declare-function ls-lisp--insert-directory "ls-lisp")
       (ls-lisp--insert-directory file switches wildcard full-directory-p)=
)
      (t
-      (let (result (beg (point)))
+      (let ((beg (point))
+            (errfile (make-temp-file "lserr")))
=20
 	;; Read the actual directory using `insert-directory-program'.
-	;; RESULT gets the status code.
 	(let* (;; We at first read by no-conversion, then after
 	       ;; putting text property `dired-filename, decode one
 	       ;; bunch by one to preserve that property.
@@ -8423,143 +8406,88 @@ insert-directory
 		(and enable-multibyte-characters
 		     (or file-name-coding-system
 			 default-file-name-coding-system))))
-	  (setq result
-		(if wildcard
-		    ;; If the wildcard is just in the file part, then run ls in
-                    ;; the directory part of the file pattern using the l=
ast
-                    ;; component as argument.  Otherwise, run ls in the l=
ongest
-                    ;; subdirectory of the directory part free of wildcar=
ds; use
-                    ;; the remaining of the file pattern as argument.
-		    (let* ((dir-wildcard (insert-directory-wildcard-in-dir-p file))
-                           (default-directory
-                            (cond (dir-wildcard (car dir-wildcard))
-                                  (t
-			           (if (file-name-absolute-p file)
-				       (file-name-directory file)
-				     (file-name-directory (expand-file-name file))))))
-			   (pattern (if dir-wildcard (cdr dir-wildcard) (file-name-nondirector=
y file))))
-		      ;; NB since switches is passed to the shell, be
-		      ;; careful of malicious values, eg "-l;reboot".
-		      ;; See eg dired-safe-switches-p.
-		      (call-process
-		       shell-file-name nil t nil
-		       shell-command-switch
-		       (concat (if (memq system-type '(ms-dos windows-nt))
-				   ""
-				 "\\") ; Disregard Unix shell aliases!
-			       insert-directory-program
-			       " -d "
-			       ;; Quote switches that require quoting
-			       ;; such as "--block-size=3D'1".  But don't
-			       ;; quote switches that use patterns
-			       ;; such as "--ignore=3DPATTERN" (bug#71935).
-			       (mapconcat #'shell-quote-wildcard-pattern
-					  (if (stringp switches)
-					      (split-string-and-unquote switches)
-					    switches)
-					  " ")
-			       " -- "
-			       ;; Quote some characters that have
-			       ;; special meanings in shells; but
-			       ;; don't quote the wildcards--we want
-			       ;; them to be special.  We also
-			       ;; currently don't quote the quoting
-			       ;; characters in case people want to
-			       ;; use them explicitly to quote
-			       ;; wildcard characters.
-			       (shell-quote-wildcard-pattern pattern))))
-		  ;; SunOS 4.1.3, SVr4 and others need the "." to list the
-		  ;; directory if FILE is a symbolic link.
-		  (unless full-directory-p
-		    (setq switches
-			  (cond
-                           ((stringp switches) (concat switches " -d"))
-                           ((member "-d" switches) switches)
-                           (t (append switches '("-d"))))))
-		  (if (string-match "\\`~" file)
-		      (setq file (expand-file-name file)))
-		  (apply #'call-process
-			 insert-directory-program nil t nil
-			 (append
-			  (if (listp switches) switches
-			    (unless (equal switches "")
-			      ;; Split the switches at any spaces so we can
-			      ;; pass separate options as separate args.
-			      (split-string-and-unquote switches)))
-			  ;; Avoid lossage if FILE starts with `-'.
-			  '("--")
-			  (list file))))))
-
-	;; If we got "//DIRED//" in the output, it means we got a real
-	;; directory listing, even if `ls' returned nonzero.
-	;; So ignore any errors.
-	(when (if (stringp switches)
-		  (string-match "--dired\\>" switches)
-		(member "--dired" switches))
-	  (save-excursion
-            (let ((case-fold-search nil))
-	      (forward-line -2)
-	      (when (looking-at "//SUBDIRED//")
-	        (forward-line -1))
-	      (if (looking-at "//DIRED//")
-		  (setq result 0)))))
-
-	(when (and (not (eq 0 result))
-		   (eq insert-directory-ls-version 'unknown))
-	  ;; The first time ls returns an error,
-	  ;; find the version numbers of ls,
-	  ;; and set insert-directory-ls-version
-	  ;; to > if it is more than 5.2.1, < if it is less, nil if it
-	  ;; is equal or if the info cannot be obtained.
-	  ;; (That can mean it isn't GNU ls.)
-	  (let ((version-out
-		 (with-temp-buffer
-		   (call-process "ls" nil t nil "--version")
-		   (buffer-string))))
-	    (setq insert-directory-ls-version
-		  (if (string-match "ls (.*utils) \\([0-9.]*\\)$" version-out)
-		      (let* ((version (match-string 1 version-out))
-		             (split (split-string version "[.]"))
-		             (numbers (mapcar #'string-to-number split))
-		             (min '(5 2 1))
-		             comparison)
-		        (while (and (not comparison) (or numbers min))
-			  (cond ((null min)
-			         (setq comparison #'>))
-			        ((null numbers)
-			         (setq comparison #'<))
-			        ((> (car numbers) (car min))
-			         (setq comparison #'>))
-			        ((< (car numbers) (car min))
-			         (setq comparison #'<))
-			        (t
-				 (setq numbers (cdr numbers)
-				       min (cdr min)))))
-			(or comparison #'=3D))
-		    nil))))
-
-	;; For GNU ls versions 5.2.2 and up, ignore minor errors.
-	(when (and (eq 1 result) (eq insert-directory-ls-version #'>))
-	  (setq result 0))
-
-	;; If `insert-directory-program' failed, signal an error.
-	(unless (eq 0 result)
-	  ;; Delete the error message it may have output.
-	  (delete-region beg (point))
-	  ;; On non-Posix systems, we cannot open a directory, so
-	  ;; don't even try, because that will always result in
-	  ;; the ubiquitous "Access denied".  Instead, show the
-	  ;; command line so the user can try to guess what went wrong.
-	  (if (and (file-directory-p file)
-		   (memq system-type '(ms-dos windows-nt)))
-	      (error
-	       "Reading directory: \"%s %s -- %s\" exited with status %s"
-	       insert-directory-program
-	       (if (listp switches) (concat switches) switches)
-	       file result)
-	    ;; Unix.  Access the file to get a suitable error.
-	    (access-file file "Reading directory")
-	    (error "Listing directory failed but `access-file' worked")))
+	  (if wildcard
+	      ;; If the wildcard is just in the file part, then run ls in
+              ;; the directory part of the file pattern using the last
+              ;; component as argument.  Otherwise, run ls in the longest
+              ;; subdirectory of the directory part free of wildcards; us=
e
+              ;; the remaining of the file pattern as argument.
+	      (let* ((dir-wildcard
+                      (insert-directory-wildcard-in-dir-p file))
+                     (default-directory
+                      (cond (dir-wildcard (car dir-wildcard))
+                            (t
+			     (if (file-name-absolute-p file)
+				 (file-name-directory file)
+			       (file-name-directory
+                                (expand-file-name file))))))
+		     (pattern (if dir-wildcard
+                                  (cdr dir-wildcard)
+                                (file-name-nondirectory file))))
+		;; NB since switches is passed to the shell, be
+		;; careful of malicious values, eg "-l;reboot".
+		;; See eg dired-safe-switches-p.
+		(call-process
+		 shell-file-name nil (list t errfile) nil
+		 shell-command-switch
+		 (concat (if (memq system-type '(ms-dos windows-nt))
+			     ""
+			   "\\") ; Disregard Unix shell aliases!
+			 insert-directory-program
+			 " -d "
+			 ;; Quote switches that require quoting
+			 ;; such as "--block-size=3D'1".  But don't
+			 ;; quote switches that use patterns
+			 ;; such as "--ignore=3DPATTERN" (bug#71935).
+			 (mapconcat #'shell-quote-wildcard-pattern
+				    (if (stringp switches)
+					(split-string-and-unquote switches)
+				      switches)
+				    " ")
+			 " -- "
+			 ;; Quote some characters that have
+			 ;; special meanings in shells; but
+			 ;; don't quote the wildcards--we want
+			 ;; them to be special.  We also
+			 ;; currently don't quote the quoting
+			 ;; characters in case people want to
+			 ;; use them explicitly to quote
+			 ;; wildcard characters.
+			 (shell-quote-wildcard-pattern pattern))))
+	    ;; SunOS 4.1.3, SVr4 and others need the "." to list the
+	    ;; directory if FILE is a symbolic link.
+	    (unless full-directory-p
+	      (setq switches
+		    (cond
+                     ((stringp switches) (concat switches " -d"))
+                     ((member "-d" switches) switches)
+                     (t (append switches '("-d"))))))
+	    (if (string-match "\\`~" file)
+		(setq file (expand-file-name file)))
+	    (apply #'call-process
+		   insert-directory-program nil (list t errfile) nil
+		   (append
+		    (if (listp switches) switches
+		      (unless (equal switches "")
+			;; Split the switches at any spaces so we can
+			;; pass separate options as separate args.
+			(split-string-and-unquote switches)))
+		    ;; Avoid lossage if FILE starts with `-'.
+		    '("--")
+		    (list file)))))
+
+        ;; FIXME: Should displaying the ls error buffer be conditional on=
 a
+        ;; user option?
+        ;; If ls emits any error messages, pop up a buffer displaying the=
m.
+        (if (> (file-attribute-size (file-attributes errfile)) 0)
+            (let ((errbuf (get-buffer-create "*ls error*")))
+              (with-current-buffer errbuf
+                (erase-buffer)
+                (insert-file-contents errfile))
+              (let ((errwin (display-buffer errbuf)))
+                (fit-window-to-buffer errwin)))
+          (delete-file errfile))
+
         (insert-directory-clean beg switches)
 	;; Now decode what read if necessary.
 	(let ((coding (or coding-system-for-read
@@ -8594,18 +8522,6 @@ insert-directory
 			(put-text-property pos (point)
 					   'dired-filename t))))))))))))
=20
-(defun insert-directory-adj-pos (pos error-lines)
-  "Convert `ls --dired' file name position value POS to a buffer position=
.
-File name position values returned in ls --dired output
-count only stdout; they don't count the error messages sent to stderr.
-So this function converts to them to real buffer positions.
-ERROR-LINES is a list of buffer positions of error message lines,
-of the form (START END)."
-  (while (and error-lines (< (caar error-lines) pos))
-    (setq pos (+ pos (- (nth 1 (car error-lines)) (nth 0 (car error-lines=
)))))
-    (pop error-lines))
-  pos)
-
 (defun insert-directory-safely (file switches
 				     &optional wildcard full-directory-p)
   "Insert directory listing for FILE, formatted according to SWITCHES.
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 7d0ea1692ff..e59c32a7416 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -658,5 +658,83 @@ dired-test-hide-absolute-location-disabled
       (let ((default-directory test-dir-other))
         (files-tests--insert-directory-shows-given-free test-dir)))))
=20
+(ert-deftest dired-test-filename-with-newline-1 () ; bug#79528, bug#80499
+  "Test handling of file name with literal embedded newline."
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (let* ((dired-auto-toggle-b-switch nil)
+         (dir (ert-resource-file
+               (file-name-as-directory "filename-with-newline")))
+         (file (concat dir "filename\nwith newline"))
+         (buf (progn (make-empty-file file t)
+                     (dired (file-name-directory file))))
+         (warnbuf (get-buffer "*Warnings*")))
+    (should (dired--filename-with-newline-p))
+    (let ((beg (point))               ; beginning of file name
+          (end (dired-move-to-end-of-filename)))
+      (should (search-backward "with newline")) ; literal space in file n=
ame
+      (should (search-backward "\n" beg))) ; literal newline in file name
+    (if noninteractive
+        (with-current-buffer "*Messages*"
+          (goto-char (point-min))
+          (should (search-forward
+                   "Warning (dired): Literal newline in file name.")))
+      (should (get-buffer-window warnbuf))
+      (with-current-buffer warnbuf
+        (goto-char (point-min))
+        (should (string-match
+                 (regexp-quote "Warning (dired): Literal newline in file =
name.")
+                 (buffer-substring (pos-bol) (pos-eol))))))
+    (kill-buffer buf)
+    (kill-buffer warnbuf)
+    (delete-directory dir t)))
+
+(ert-deftest dired-test-filename-with-newline-2 () ; bug#79528, bug#80499
+  "Test handling of file name with embedded newline using `b' switch."
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (let* ((dired-auto-toggle-b-switch t)
+         (dir (ert-resource-file
+               (file-name-as-directory "filename-with-newline")))
+         (file (concat dir "filename\nwith newline"))
+         (buf (progn (make-empty-file file t)
+                     (dired-noselect (file-name-directory file))))
+         (warnbuf (get-buffer "*Warnings*")))
+    (with-current-buffer buf
+      (should (dired--filename-with-newline-p))
+      (dired--toggle-b-switch)
+      (let ((beg (point))               ; beginning of file name
+            (end (dired-move-to-end-of-filename)))
+        (should (search-backward "with\\ newline")) ; result of ls -b swi=
tch
+        (should (search-backward "\\n" beg)))) ; result of ls -b switch
+    (if noninteractive
+        (with-current-buffer "*Messages*"
+          (goto-char (point-min))
+          (should-error (search-forward
+                         "Warning (dired): Literal newline in file name."=
)))
+      (should-not (get-buffer "*Warnings*")))
+    (kill-buffer buf)
+    (kill-buffer warnbuf)
+    (delete-directory dir t)))
+
+(ert-deftest dired-test-ls-error-message () ; bug#80499
+  "Test invoking `dired' on a nonexisting file.
+A buffer should pop up containing the error emitted by ls."
+  (let* ((dir (ert-resource-file (file-name-as-directory "empty-dir")))
+         (name (concat dir "bla"))
+         (buf (progn (make-directory dir)
+                     (dired name))))
+    (let ((errbuf (get-buffer "*ls error*")))
+      (should (get-buffer-window errbuf))
+      (with-current-buffer errbuf
+        (should (equal (buffer-string)
+                       (concat "ls: cannot access '" (buffer-name buf)
+                               "': No such file or directory\n"))))
+      (kill-buffer errbuf))
+    (kill-buffer buf)
+    (delete-directory dir t)))
+
 (provide 'dired-tests)
 ;;; dired-tests.el ends here
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index e6b2a0eb078..ef48e59fedd 100644
=2D-- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -1027,7 +1027,17 @@ files-tests-file-name-non-special-insert-directory
                      (buffer-string)))))
   (files-tests--with-temp-non-special-and-file-name-handler
       (tmpdir nospecial-dir t)
-    (should-error (with-temp-buffer (insert-directory nospecial-dir "")))=
))
+    (with-temp-buffer (insert-directory nospecial-dir ""))
+    (let ((errbuf (get-buffer "*ls error*"))
+          ;; By the time `ls' is called in `insert-directory', the
+          ;; handler prefix has been removed.
+          (nospecial-dir (string-remove-prefix "/:" nospecial-dir)))
+      (should (get-buffer-window errbuf))
+      (with-current-buffer errbuf
+        (should (equal (buffer-string)
+                       (concat "ls: cannot access '" nospecial-dir
+                               "': No such file or directory\n"))))
+      (kill-buffer errbuf))))
=20
 (ert-deftest files-tests-file-name-non-special-insert-file-contents ()
   (files-tests--with-temp-non-special (tmpfile nospecial)

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 21 Mar 2026 10:12:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 21 06:12:44 2026
Received: from localhost ([127.0.0.1]:40875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w3tJz-000113-TL
	for submit <at> debbugs.gnu.org; Sat, 21 Mar 2026 06:12:44 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45660)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w3tJx-00010S-IW
 for 80499 <at> debbugs.gnu.org; Sat, 21 Mar 2026 06:12:42 -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 1w3tJs-00043Q-3b; Sat, 21 Mar 2026 06:12:36 -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=KB27H9cQ2OSL6wHwvsYWtfTCKqlR+IuTboCXWPc0ZgI=; b=BBlBaaV9WmyK
 z++zn4Z1/8CjMa8AqTIoiMfhWs2a4vSLGyFlbSUHe2gxJhMIHICOmf6Mxi68V1ob5EocYF7Naj0jk
 ZcXWnSclJ+MiX3cPEFOAF+h6nA6nZZLRozpVaqr9NIFJLLqgfr2M2NGEOJhkKGGI3R5ZfB8toCpve
 OQZG6ogoV9q++sSMHXagOo8XhOngtIi94pYV9qSOCXewoqcYaSVMl17KN6y17P8meAORxqDkCLdoI
 BipxCL+2jZ2XXUBT8CQFYQdpT+5d5eif3Mbv3yAC7sUt2gltNmQKt2r0pXGCreU3v3l/cPaGgEy0r
 UE38ale0E8QMbTAw6h2VRg==;
Date: Sat, 21 Mar 2026 12:12:33 +0200
Message-Id: <86ms01biem.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <874impupg4.fsf@HIDDEN> (message from Stephen Berman on Mon, 09
 Mar 2026 14:01:31 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN> <874impupg4.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Mon, 09 Mar 2026 14:01:31 +0100
> 
> On Sun, 08 Mar 2026 18:27:56 +0100 Stephen Berman <stephen.berman@HIDDEN> wrote:
> 
> > On Sat, 07 Mar 2026 11:48:27 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:
> >
> >>> From: Stephen Berman <stephen.berman@HIDDEN>
> >>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> >>> Date: Fri, 06 Mar 2026 12:46:36 +0100
> >>> 
> >>> Does this persuade you to accept the patch augmented with the removal of
> >>> the code that treats Dired lines beginning at column 0 as error messages
> >>> and accordingly adjusts the offsets produced by --dired for the file
> >>> names (thereby breaking the handling of file names containing newlines)?
> >>
> >> I tested this patch both when 'ls' report errors to stderr and when it
> >> doesn't, and it seems to work well in both cases.  So yes, please show
> >> a patch that includes this and removes the code which treats lines
> >> beginning at column zero as errors, and let's test that on all the
> >> cases where there are files with embedded newlines in their names.
> >
> > Patch attached. [...]
> >
> > In several places in the patch I added FIXME comments where it seems to
> > me that further code simplification/elimination may be possible.  I
> > tried removing all the code in question but got one failing test in
> > dired-tests.el that I was able to fix by restoring one line of the
> > removed code, but also a failing test in files-tests.el that I haven't
> > yet found a way to fix without restoring all the code in question.  If I
> > do find a way I'll post a followup patch.
> 
> The failing test in files-tests.el turned out to be a variant of the
> missing file case, so I was able to fix the failure by using the same
> means as in the third new test I added to dired-tests.el.  This in turn
> made it possible to eliminate all of the original error checking code in
> `insert-directory', since any errors caught by it are already handled by
> the new `ls' error handling -- at least, I hope so; but if not, then the
> new approach should be flexible enough to be adjusted or extended as
> needed.  In any case, with the attached patch all but two non-skipped
> tests run by `make check' pass (and AFAICT the two failed tests do not
> involve `insert-directory').

Can we install this patch, please?




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

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


Received: (at 80499) by debbugs.gnu.org; 9 Mar 2026 13:01:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 09 09:01:45 2026
Received: from localhost ([127.0.0.1]:45222 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vzaEy-0001cz-D0
	for submit <at> debbugs.gnu.org; Mon, 09 Mar 2026 09:01:45 -0400
Received: from mout.gmx.net ([212.227.17.22]:44007)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vzaEs-0001cK-Rs
 for 80499 <at> debbugs.gnu.org; Mon, 09 Mar 2026 09:01:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1773061292; x=1773666092; i=stephen.berman@HIDDEN;
 bh=5Bo+02vQ436UsPueCWLhcZXPm6x/uqxb2D/Np4W76D4=;
 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=SOnWqRbOt1rnzCMh3jMdOEFgfJgExqNiHfZPNqyfj5s2YqpLFPPwdkpV4VvfLhPn
 atio+Tje2McoAND6jWfbl++izGOcvWfiON5wIFrTBwkGo04G0rtSi2+ynZkztcYRA
 H1qGXikncpiEOxdmtsZv3BpeZQ6DaSJCz4TuBH5QKs4IWp0Vi1qX8sgMEphUYcF3D
 MwcVLPKoyGQXuMyKdI1a70BpsI1bwFepEvEO8YTpm8Oh5cftl8Fu8B2xuEPNnl/QC
 2QgJnxUjbWDC3F0E1ZKz4C7gLYNM1eTT+qCJJUOFx30GgjdKrVPFv6RhzHlg7kvDl
 /5LBWmei9sVPLzQmeg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1ML9uU-1wGZ9l47U2-00WXP5; Mon, 09
 Mar 2026 14:01:32 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87bjgyb59f.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN> <87bjgyb59f.fsf@HIDDEN>
Date: Mon, 09 Mar 2026 14:01:31 +0100
Message-ID: <874impupg4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:bVsRfm9k31ji+rXbz0pte/wFUa1xn6kbJ/jXFmp4eu72oq02Wtj
 xExOGt6wE7MK7xn12+4NKKMAs7YahbtYCFS2Ga4/TVIQoOCAqyQw/I3t8UnilgjS8io3Jxj
 Zz6L8MCt19Rl7LvptORCa/Sm/AmNJI0jZFBYj0OVWECaXVE8mUFK26pphgEZWzg609OvnGE
 ME+KUWX2jh8qmkX+jWwew==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:ZScaHDJS10w=;YNDPPZXiSvQtybPx6tcRns2ANDH
 Lxa2nMl9htAZbTK51frqe+iJLRB7aYNTypWyD9BNtb63yFEiev3umngOHlvJ54INmwVNzxYVS
 K48jjeU0fz/7AXrwNTsa1KrHypPNDLjnXfyUkhPUVdFSFf9VrRN6vFvA1xPY/lGeRgaguvjgr
 Y8P+wStLvdRjt18gYdYsBkO8uJuKiWBrnawz0dI/WHbM7cRVASssDohG3Rao7VF+eAGMuVtwo
 bOZfOddd9Ym8a4WqFCBbuxWOWaDsGV1qce4HT5zTxnFYIUYpN2SS0xs/Dgm5G2TKZkbDDEBMh
 EP+Uph/CZ52C+qiV8Hfy1o89SQ/IpMqnjUNaAd++J9GNf8NzWfOub71KWl1/3VvoU7YnTzqWZ
 hDg0LYVcCTRKoIDCbofgNJozuV+O2l8xgS5tXIB0Tt98+pUIHc/QcjYP+7mV9RH6dryLA2hUj
 OKc9La8eXUNcugyVor+9F3GM2P6/tL/Nszpnd9dLi6Ib2dt8cVLJTpTm8cl9Kw4hT5OY6crYw
 FrsUl/mU56CeIjbV+EPYCGMnDaOGsJcW36GON18KNPcmzEF56d1MRqhmzH4qTs8al2c5bYJEK
 hAWOSQHV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ntVA6H/ZXmA3Te8zK8J
 6ATpPcFWZ+pMOknrrO+sDL2BKIUkmelXGQOqPbkB4RU+lR/ggJTo/Mh+3Trsm1ZgVPTMMIHBl
 qFoSijIsbaj+ghVNQR0P/BYn9rWOvPDK6tOoICCN8n6LAYbaQ4BOOkqw2OIZApURW5bRv/iYl
 KkC8STe9AH0bB395ZsBq+z0W2HwAY6TVLs4XglVkF62M20mG3JvgKNIWG1dUTOJW/4wH4o+yF
 PDkVzH6WAtMABwc++11Hrh93IlVuOELD30cacvnWRgH2wGmxgzuojXOWVjZwWFDmXi4ulfHKQ
 0mj3JvrPWkaY/DoApdRNYPaHhtMR6d6KJs0ivI4+ZUf1LEJ9SJdnGgeI9LAmy7heRXzKiU/Ki
 kIIWNDZ1pfn6SkyOrSpOX80GOOMci67SHGZ2P3Fe4p31xS3gq49Q/iZ1KuqcHpdQYmqu6H9LJ
 Os45Jlt5EHeA6dwllOLQE7D2hpvxLj5AgBDIkONfHihZRF1Y32BgFbb8fWdzkowYVgfh7emAF
 fwEV1lEqnort5VnJiJ2TrzMCbcswV90aJToA/OXEDZK+gypEMRUTrO/94k9vJxg=
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Sun, 08 Mar 2026 18:27:56 +0100 Stephen Berman wrote: >
 On Sat, 07 Mar 2026 11:48:27 +0200 Eli Zaretskii wrote: > >>> From: Stephen
 Berman >>> Cc: fgunbin@HIDDEN, 80499 <at> debbugs.gnu.org >>> Date: Fri,
 06 Mar 2026 12:46:36 +0100 >>> >>> Does this [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.9 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in sa-trusted.bondedsender.org]
 0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.22 listed in wl.mailspike.net]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.8 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in bl.score.senderscore.com]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.22 listed in list.dnswl.org]
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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: 0.0 (/)

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

On Sun, 08 Mar 2026 18:27:56 +0100 Stephen Berman <stephen.berman@HIDDEN>=
 wrote:

> On Sat, 07 Mar 2026 11:48:27 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:
>
>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>>> Date: Fri, 06 Mar 2026 12:46:36 +0100
>>>=20
>>> Does this persuade you to accept the patch augmented with the removal =
of
>>> the code that treats Dired lines beginning at column 0 as error messag=
es
>>> and accordingly adjusts the offsets produced by --dired for the file
>>> names (thereby breaking the handling of file names containing newlines=
)?
>>
>> I tested this patch both when 'ls' report errors to stderr and when it
>> doesn't, and it seems to work well in both cases.  So yes, please show
>> a patch that includes this and removes the code which treats lines
>> beginning at column zero as errors, and let's test that on all the
>> cases where there are files with embedded newlines in their names.
>
> Patch attached. [...]
>
> In several places in the patch I added FIXME comments where it seems to
> me that further code simplification/elimination may be possible.  I
> tried removing all the code in question but got one failing test in
> dired-tests.el that I was able to fix by restoring one line of the
> removed code, but also a failing test in files-tests.el that I haven't
> yet found a way to fix without restoring all the code in question.  If I
> do find a way I'll post a followup patch.

The failing test in files-tests.el turned out to be a variant of the
missing file case, so I was able to fix the failure by using the same
means as in the third new test I added to dired-tests.el.  This in turn
made it possible to eliminate all of the original error checking code in
`insert-directory', since any errors caught by it are already handled by
the new `ls' error handling -- at least, I hope so; but if not, then the
new approach should be flexible enough to be adjusted or extended as
needed.  In any case, with the attached patch all but two non-skipped
tests run by `make check' pass (and AFAICT the two failed tests do not
involve `insert-directory').

Steve Berman


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: updated patch for bug#80499
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/files.el b/lisp/files.el
index d42154cf8a2..79f1bebe5c8 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8316,34 +8316,17 @@ insert-directory-clean
       (forward-line -1))
     (if (let ((case-fold-search nil)) (looking-at "//DIRED//"))
 	(let ((end (line-end-position))
-	      (linebeg (point))
-	      error-lines)
-	  ;; Find all the lines that are error messages,
-	  ;; and record the bounds of each one.
-	  (goto-char beg)
-	  (while (< (point) linebeg)
-	    (or (eql (following-char) ?\s)
-		(push (list (point) (line-end-position)) error-lines))
-	    (forward-line 1))
-	  (setq error-lines (nreverse error-lines))
-	  ;; Now read the numeric positions of file names.
+	      (linebeg (point)))
+	  ;; Read the numeric positions of file names.
 	  (goto-char linebeg)
 	  (forward-word-strictly 1)
 	  (forward-char 3)
 	  (while (< (point) end)
-	    (let ((start (insert-directory-adj-pos
-			  (+ beg (read (current-buffer)))
-			  error-lines))
-		  (end (insert-directory-adj-pos
-			(+ beg (read (current-buffer)))
-			error-lines)))
-	      (if (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|))
-		  ;; End is followed by \n or by output of -F.
-		  (put-text-property start end 'dired-filename t)
-		;; It seems that we can't trust ls's output as to
-		;; byte positions of filenames.
-		(put-text-property beg (point) 'dired-filename nil)
-		(end-of-line))))
+	    (let ((start (+ beg (read (current-buffer))))
+		  (end (+ beg (read (current-buffer)))))
+	      (when (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|))
+		;; End is followed by \n or by output of -F.
+	        (put-text-property start end 'dired-filename t))))
 	  (goto-char end)
 	  (beginning-of-line)
 	  (delete-region (point) (progn (forward-line 1) (point))))
@@ -8354,6 +8337,8 @@ insert-directory-clean
     (if (let ((case-fold-search nil)) (looking-at "//DIRED-OPTIONS//"))
 	(delete-region (point) (progn (forward-line 1) (point))))))
=20
+;; FIXME: Adjust this specification now that ls error messages are no
+;; longer inserted into Dired buffers.
 ;; insert-directory
 ;; - must insert _exactly_one_line_ describing FILE if WILDCARD and
 ;;   FULL-DIRECTORY-P is nil.
@@ -8406,10 +8391,10 @@ insert-directory
       (declare-function ls-lisp--insert-directory "ls-lisp")
       (ls-lisp--insert-directory file switches wildcard full-directory-p)=
)
      (t
-      (let (result (beg (point)))
+      (let ((beg (point))
+            (errfile (make-temp-file "lserr")))
=20
 	;; Read the actual directory using `insert-directory-program'.
-	;; RESULT gets the status code.
 	(let* (;; We at first read by no-conversion, then after
 	       ;; putting text property `dired-filename, decode one
 	       ;; bunch by one to preserve that property.
@@ -8419,143 +8404,87 @@ insert-directory
 		(and enable-multibyte-characters
 		     (or file-name-coding-system
 			 default-file-name-coding-system))))
-	  (setq result
-		(if wildcard
-		    ;; If the wildcard is just in the file part, then run ls in
-                    ;; the directory part of the file pattern using the l=
ast
-                    ;; component as argument.  Otherwise, run ls in the l=
ongest
-                    ;; subdirectory of the directory part free of wildcar=
ds; use
-                    ;; the remaining of the file pattern as argument.
-		    (let* ((dir-wildcard (insert-directory-wildcard-in-dir-p file))
-                           (default-directory
-                            (cond (dir-wildcard (car dir-wildcard))
-                                  (t
-			           (if (file-name-absolute-p file)
-				       (file-name-directory file)
-				     (file-name-directory (expand-file-name file))))))
-			   (pattern (if dir-wildcard (cdr dir-wildcard) (file-name-nondirector=
y file))))
-		      ;; NB since switches is passed to the shell, be
-		      ;; careful of malicious values, eg "-l;reboot".
-		      ;; See eg dired-safe-switches-p.
-		      (call-process
-		       shell-file-name nil t nil
-		       shell-command-switch
-		       (concat (if (memq system-type '(ms-dos windows-nt))
-				   ""
-				 "\\") ; Disregard Unix shell aliases!
-			       insert-directory-program
-			       " -d "
-			       ;; Quote switches that require quoting
-			       ;; such as "--block-size=3D'1".  But don't
-			       ;; quote switches that use patterns
-			       ;; such as "--ignore=3DPATTERN" (bug#71935).
-			       (mapconcat #'shell-quote-wildcard-pattern
-					  (if (stringp switches)
-					      (split-string-and-unquote switches)
-					    switches)
-					  " ")
-			       " -- "
-			       ;; Quote some characters that have
-			       ;; special meanings in shells; but
-			       ;; don't quote the wildcards--we want
-			       ;; them to be special.  We also
-			       ;; currently don't quote the quoting
-			       ;; characters in case people want to
-			       ;; use them explicitly to quote
-			       ;; wildcard characters.
-			       (shell-quote-wildcard-pattern pattern))))
-		  ;; SunOS 4.1.3, SVr4 and others need the "." to list the
-		  ;; directory if FILE is a symbolic link.
-		  (unless full-directory-p
-		    (setq switches
-			  (cond
-                           ((stringp switches) (concat switches " -d"))
-                           ((member "-d" switches) switches)
-                           (t (append switches '("-d"))))))
-		  (if (string-match "\\`~" file)
-		      (setq file (expand-file-name file)))
-		  (apply #'call-process
-			 insert-directory-program nil t nil
-			 (append
-			  (if (listp switches) switches
-			    (unless (equal switches "")
-			      ;; Split the switches at any spaces so we can
-			      ;; pass separate options as separate args.
-			      (split-string-and-unquote switches)))
-			  ;; Avoid lossage if FILE starts with `-'.
-			  '("--")
-			  (list file))))))
-
-	;; If we got "//DIRED//" in the output, it means we got a real
-	;; directory listing, even if `ls' returned nonzero.
-	;; So ignore any errors.
-	(when (if (stringp switches)
-		  (string-match "--dired\\>" switches)
-		(member "--dired" switches))
-	  (save-excursion
-            (let ((case-fold-search nil))
-	      (forward-line -2)
-	      (when (looking-at "//SUBDIRED//")
-	        (forward-line -1))
-	      (if (looking-at "//DIRED//")
-		  (setq result 0)))))
-
-	(when (and (not (eq 0 result))
-		   (eq insert-directory-ls-version 'unknown))
-	  ;; The first time ls returns an error,
-	  ;; find the version numbers of ls,
-	  ;; and set insert-directory-ls-version
-	  ;; to > if it is more than 5.2.1, < if it is less, nil if it
-	  ;; is equal or if the info cannot be obtained.
-	  ;; (That can mean it isn't GNU ls.)
-	  (let ((version-out
-		 (with-temp-buffer
-		   (call-process "ls" nil t nil "--version")
-		   (buffer-string))))
-	    (setq insert-directory-ls-version
-		  (if (string-match "ls (.*utils) \\([0-9.]*\\)$" version-out)
-		      (let* ((version (match-string 1 version-out))
-		             (split (split-string version "[.]"))
-		             (numbers (mapcar #'string-to-number split))
-		             (min '(5 2 1))
-		             comparison)
-		        (while (and (not comparison) (or numbers min))
-			  (cond ((null min)
-			         (setq comparison #'>))
-			        ((null numbers)
-			         (setq comparison #'<))
-			        ((> (car numbers) (car min))
-			         (setq comparison #'>))
-			        ((< (car numbers) (car min))
-			         (setq comparison #'<))
-			        (t
-				 (setq numbers (cdr numbers)
-				       min (cdr min)))))
-			(or comparison #'=3D))
-		    nil))))
-
-	;; For GNU ls versions 5.2.2 and up, ignore minor errors.
-	(when (and (eq 1 result) (eq insert-directory-ls-version #'>))
-	  (setq result 0))
-
-	;; If `insert-directory-program' failed, signal an error.
-	(unless (eq 0 result)
-	  ;; Delete the error message it may have output.
-	  (delete-region beg (point))
-	  ;; On non-Posix systems, we cannot open a directory, so
-	  ;; don't even try, because that will always result in
-	  ;; the ubiquitous "Access denied".  Instead, show the
-	  ;; command line so the user can try to guess what went wrong.
-	  (if (and (file-directory-p file)
-		   (memq system-type '(ms-dos windows-nt)))
-	      (error
-	       "Reading directory: \"%s %s -- %s\" exited with status %s"
-	       insert-directory-program
-	       (if (listp switches) (concat switches) switches)
-	       file result)
-	    ;; Unix.  Access the file to get a suitable error.
-	    (access-file file "Reading directory")
-	    (error "Listing directory failed but `access-file' worked")))
+	  (if wildcard
+	      ;; If the wildcard is just in the file part, then run ls in
+              ;; the directory part of the file pattern using the last
+              ;; component as argument.  Otherwise, run ls in the longest
+              ;; subdirectory of the directory part free of wildcards; us=
e
+              ;; the remaining of the file pattern as argument.
+	      (let* ((dir-wildcard
+                      (insert-directory-wildcard-in-dir-p file))
+                     (default-directory
+                      (cond (dir-wildcard (car dir-wildcard))
+                            (t
+			     (if (file-name-absolute-p file)
+				 (file-name-directory file)
+			       (file-name-directory
+                                (expand-file-name file))))))
+		     (pattern (if dir-wildcard
+                                  (cdr dir-wildcard)
+                                (file-name-nondirectory file))))
+		;; NB since switches is passed to the shell, be
+		;; careful of malicious values, eg "-l;reboot".
+		;; See eg dired-safe-switches-p.
+		(call-process
+		 shell-file-name nil (list t errfile) nil
+		 shell-command-switch
+		 (concat (if (memq system-type '(ms-dos windows-nt))
+			     ""
+			   "\\") ; Disregard Unix shell aliases!
+			 insert-directory-program
+			 " -d "
+			 ;; Quote switches that require quoting
+			 ;; such as "--block-size=3D'1".  But don't
+			 ;; quote switches that use patterns
+			 ;; such as "--ignore=3DPATTERN" (bug#71935).
+			 (mapconcat #'shell-quote-wildcard-pattern
+				    (if (stringp switches)
+					(split-string-and-unquote switches)
+				      switches)
+				    " ")
+			 " -- "
+			 ;; Quote some characters that have
+			 ;; special meanings in shells; but
+			 ;; don't quote the wildcards--we want
+			 ;; them to be special.  We also
+			 ;; currently don't quote the quoting
+			 ;; characters in case people want to
+			 ;; use them explicitly to quote
+			 ;; wildcard characters.
+			 (shell-quote-wildcard-pattern pattern))))
+	    ;; SunOS 4.1.3, SVr4 and others need the "." to list the
+	    ;; directory if FILE is a symbolic link.
+	    (unless full-directory-p
+	      (setq switches
+		    (cond
+                     ((stringp switches) (concat switches " -d"))
+                     ((member "-d" switches) switches)
+                     (t (append switches '("-d"))))))
+	    (if (string-match "\\`~" file)
+		(setq file (expand-file-name file)))
+	    (apply #'call-process
+		   insert-directory-program nil (list t errfile) nil
+		   (append
+		    (if (listp switches) switches
+		      (unless (equal switches "")
+			;; Split the switches at any spaces so we can
+			;; pass separate options as separate args.
+			(split-string-and-unquote switches)))
+		    ;; Avoid lossage if FILE starts with `-'.
+		    '("--")
+		    (list file)))))
+
+        ;; FIXME: Should displaying the ls error buffer be conditional on=
 a
+        ;; user option?
+        ;; If ls emits any error messages, pop up a buffer displaying the=
m.
+        (when (> (file-attribute-size (file-attributes errfile)) 0)
+          (let ((errbuf (get-buffer-create "*ls error*")))
+            (with-current-buffer errbuf
+              (erase-buffer)
+              (insert-file-contents errfile))
+            (let ((errwin (display-buffer errbuf)))
+              (fit-window-to-buffer errwin))))
+
         (insert-directory-clean beg switches)
 	;; Now decode what read if necessary.
 	(let ((coding (or coding-system-for-read
@@ -8590,18 +8519,6 @@ insert-directory
 			(put-text-property pos (point)
 					   'dired-filename t))))))))))))
=20
-(defun insert-directory-adj-pos (pos error-lines)
-  "Convert `ls --dired' file name position value POS to a buffer position=
.
-File name position values returned in ls --dired output
-count only stdout; they don't count the error messages sent to stderr.
-So this function converts to them to real buffer positions.
-ERROR-LINES is a list of buffer positions of error message lines,
-of the form (START END)."
-  (while (and error-lines (< (caar error-lines) pos))
-    (setq pos (+ pos (- (nth 1 (car error-lines)) (nth 0 (car error-lines=
)))))
-    (pop error-lines))
-  pos)
-
 (defun insert-directory-safely (file switches
 				     &optional wildcard full-directory-p)
   "Insert directory listing for FILE, formatted according to SWITCHES.
diff --git "a/test/lisp/dired-resources/filename-with-newline/filename\nwi=
th newline" "b/test/lisp/dired-resources/filename-with-newline/filename\nw=
ith newline"
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 7d0ea1692ff..c529127a605 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -658,5 +658,63 @@ dired-test-hide-absolute-location-disabled
       (let ((default-directory test-dir-other))
         (files-tests--insert-directory-shows-given-free test-dir)))))
=20
+(ert-deftest dired-test-filename-with-newline-1 ()
+  "FIXME"
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (let ((dired-auto-toggle-b-switch nil)
+        (buf (dired (ert-resource-file "filename-with-newline")))
+        (warnbuf (get-buffer "*Warnings*")))
+    (with-current-buffer buf
+      (let ((beg (point))               ; beginning of file name
+            (end (dired-move-to-end-of-filename)))
+        (should (search-backward "\n" beg)))) ; literal newline in file n=
ame
+    (if noninteractive
+        (with-current-buffer "*Messages*"
+          (goto-char (point-min))
+          (should (search-forward
+                   "Warning (dired): Literal newline in file name.")))
+      (should (get-buffer-window warnbuf))
+      (with-current-buffer warnbuf
+        (goto-char (point-min))
+        (should (string-match
+                 (regexp-quote "Warning (dired): Literal newline in file =
name.")
+                 (buffer-substring (pos-bol) (pos-eol))))))
+    (kill-buffer buf)
+    (kill-buffer warnbuf)))
+
+(ert-deftest dired-test-filename-with-newline-2 ()
+  "FIXME"
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (setopt dired-auto-toggle-b-switch t)
+  (dired (ert-resource-file "filename-with-newline"))
+  (dired--toggle-b-switch)
+  (if noninteractive
+      (with-current-buffer "*Messages*"
+        (goto-char (point-min))
+        (should-error (search-forward
+                       "Warning (dired): Literal newline in file name."))=
)
+    (should-not (get-buffer "*Warnings*")))
+  (let ((beg (point))               ; beginning of file name
+        (end (dired-move-to-end-of-filename)))
+      (should (search-backward "\\n" beg))) ; result of ls -b switch
+  (kill-buffer "filename-with-newline"))
+
+(ert-deftest dired-test-ls-error-message ()
+  "FIXME"
+  (let* ((fil (ert-resource-file "bla"))
+         (buf (dired fil)))
+    (let ((errbuf (get-buffer "*ls error*")))
+      (should (get-buffer-window errbuf))
+      (with-current-buffer errbuf
+        (should (equal (buffer-string)
+                       (concat "ls: cannot access '" (buffer-name buf)
+                               "': No such file or directory\n"))))
+      (kill-buffer errbuf))
+    (kill-buffer buf)))
+
 (provide 'dired-tests)
 ;;; dired-tests.el ends here
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 14cfff99c59..f1ba93382c9 100644
=2D-- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -1027,7 +1027,17 @@ files-tests-file-name-non-special-insert-directory
                      (buffer-string)))))
   (files-tests--with-temp-non-special-and-file-name-handler
       (tmpdir nospecial-dir t)
-    (should-error (with-temp-buffer (insert-directory nospecial-dir "")))=
))
+    (with-temp-buffer (insert-directory nospecial-dir ""))
+    (let ((errbuf (get-buffer "*ls error*"))
+          ;; By the time `ls' is called in `insert-directory', the
+          ;; handler prefix has been removed.
+          (nospecial-dir (string-remove-prefix "/:" nospecial-dir)))
+      (should (get-buffer-window errbuf))
+      (with-current-buffer errbuf
+        (should (equal (buffer-string)
+                       (concat "ls: cannot access '" nospecial-dir
+                               "': No such file or directory\n"))))
+      (kill-buffer errbuf))))
=20
 (ert-deftest files-tests-file-name-non-special-insert-file-contents ()
   (files-tests--with-temp-non-special (tmpfile nospecial)

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 8 Mar 2026 17:28:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 08 13:28:14 2026
Received: from localhost ([127.0.0.1]:33015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vzHvJ-0000ci-SK
	for submit <at> debbugs.gnu.org; Sun, 08 Mar 2026 13:28:14 -0400
Received: from mout.gmx.net ([212.227.17.22]:56431)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vzHvG-0000cB-Tc
 for 80499 <at> debbugs.gnu.org; Sun, 08 Mar 2026 13:28:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1772990878; x=1773595678; i=stephen.berman@HIDDEN;
 bh=VhYqx9a/lUkyB0UbSt897FtClczMNnR8AV/3cMhvW94=;
 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=oGlS4sFga4eV1wtF1AWBv5kZp9u20FzLKRbupw0URbxJjGvMXdw+MBJ/ihMSflag
 Ho0pZnC5iJxuLavvI/C83Hv28m9CIJpLulSoXFCPAKUAEs8Q6pvCThyDsJtTC2bK/
 CZrMv/HEse+c6NRtNW1R+sn8VdsJ+NK1ExYiIQtfd0DbVngpRl4BPfaHMD1twot40
 Nt9FdEHj4xwrvCkJMiefYjwcfTWCqaCxEwBybWoGcBttOZ8oU2WjMPWg1Qwj6n6Pr
 K38Re/Z522Wa/PzewFF7MuGN+uES8MArwEDkEO8QHzvqKs7tCbepbifsEyOrTZU7k
 cR9mOUtqi5UxOs7/HA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N7iCg-1vdilb3wfq-00tUzM; Sun, 08
 Mar 2026 18:27:58 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86a4wkt1g4.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
 <86a4wkt1g4.fsf@HIDDEN>
Date: Sun, 08 Mar 2026 18:27:56 +0100
Message-ID: <87bjgyb59f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:Fp1N5VAfE634p7aNMbUX+zU30UgyIsr7AnZV7YOP4pDlmIanET3
 GCOZsm+dxojSGynfBBW7T/IgSloFqu+nVZtxUjSzE9GE9CsSdYn44F/j0IKvgt4AsGj01yL
 hb8+1IECX5WcgUFtR11ZLeIB/tVITehiyz6EBtakMp7O2ZJChtDU9/InVOPxwqXMMV5+B3M
 7j7hammOilSnkeEGucwdA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:YnpPAjzC/vE=;SJDx0rvAq8ILgB2GiNou0IurMRS
 tYAkrC7ssvbcL8CFgQ2aAGfTjYAdpR5xATOzbOb0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GLMl6qCfbC1vC5a3S3CXl1jC9wbWkqtw0Cxd6r2Uu8tIYB+X1CphJOBf
 GIQFalIyqUfzCrb0i7D1
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Sat, 07 Mar 2026 11:48:27 +0200 Eli Zaretskii wrote: >>
 From: Stephen Berman >> Cc: fgunbin@HIDDEN, 80499 <at> debbugs.gnu.org >>
 Date: Fri, 06 Mar 2026 12:46:36 +0100 >> >> Does this persuade you to accept
 the patch augmented with the removal of >> t [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.9 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in sa-trusted.bondedsender.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.22 listed in list.dnswl.org]
 0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.22 listed in wl.mailspike.net]
 0.8 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.22 listed in bl.score.senderscore.com]
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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: 0.0 (/)

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

On Sat, 07 Mar 2026 11:48:27 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Fri, 06 Mar 2026 12:46:36 +0100
>>=20
>> Does this persuade you to accept the patch augmented with the removal o=
f
>> the code that treats Dired lines beginning at column 0 as error message=
s
>> and accordingly adjusts the offsets produced by --dired for the file
>> names (thereby breaking the handling of file names containing newlines)=
?
>
> I tested this patch both when 'ls' report errors to stderr and when it
> doesn't, and it seems to work well in both cases.  So yes, please show
> a patch that includes this and removes the code which treats lines
> beginning at column zero as errors, and let's test that on all the
> cases where there are files with embedded newlines in their names.

Patch attached.  In addition to the changes in files.el I added three
new tests to dired-tests.el (because the user-facing changes in behavior
appear in Dired buffers on invoking dired and related commands).  Two of
these test the effect of setting `dired-auto-toggle-b-switch' to nil and
non-nil, respectively, on displaying in Dired a directory with a file
whose name contains a newline.  These tests consider just one case of a
file name with an embedded newline, but I think that's sufficient, since
with the patch, the file name offsets are not adjusted and the offsets
already take embedded newlines into account (as evidenced by the ls -b
switch); so with the patch handling a file name with an newline in Dired
is completely deterministic, not hit-or-miss or "sheer luck", as it is
without the patch.

The third new test is for popping up a buffer displaying an ls error
message, using the missing file error, since that's the only ls error I
know how to reliably reproduce.

With the patch all tests in dired-tests.el and in files-tests.el pass.
(However, for the new test for displaying the Dired buffer using the ls
-b switch, it was not sufficient to setopt `dired-auto-toggle-b-switch'
to t: I had to also explicitly call `dired--toggle-b-switch' to get the
changed display in the test environment.  In normal Emacs usage this
function is called from post-command-hook, but I don't know how to
emulate that in the test environment.)

In several places in the patch I added FIXME comments where it seems to
me that further code simplification/elimination may be possible.  I
tried removing all the code in question but got one failing test in
dired-tests.el that I was able to fix by restoring one line of the
removed code, but also a failing test in files-tests.el that I haven't
yet found a way to fix without restoring all the code in question.  If I
do find a way I'll post a followup patch.

Steve Berman


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: patch for bug#80499
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/files.el b/lisp/files.el
index d42154cf8a2..50668be4f18 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8316,30 +8316,19 @@ insert-directory-clean
       (forward-line -1))
     (if (let ((case-fold-search nil)) (looking-at "//DIRED//"))
 	(let ((end (line-end-position))
-	      (linebeg (point))
-	      error-lines)
-	  ;; Find all the lines that are error messages,
-	  ;; and record the bounds of each one.
-	  (goto-char beg)
-	  (while (< (point) linebeg)
-	    (or (eql (following-char) ?\s)
-		(push (list (point) (line-end-position)) error-lines))
-	    (forward-line 1))
-	  (setq error-lines (nreverse error-lines))
-	  ;; Now read the numeric positions of file names.
+	      (linebeg (point)))
+	  ;; Read the numeric positions of file names.
 	  (goto-char linebeg)
 	  (forward-word-strictly 1)
 	  (forward-char 3)
 	  (while (< (point) end)
-	    (let ((start (insert-directory-adj-pos
-			  (+ beg (read (current-buffer)))
-			  error-lines))
-		  (end (insert-directory-adj-pos
-			(+ beg (read (current-buffer)))
-			error-lines)))
+	    (let ((start (+ beg (read (current-buffer))))
+		  (end (+ beg (read (current-buffer)))))
 	      (if (memq (char-after end) '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|))
 		  ;; End is followed by \n or by output of -F.
 		  (put-text-property start end 'dired-filename t)
+                ;; FIXME: Can this still happen now that ls error
+                ;; messages are no longer inserted into Dired buffers?
 		;; It seems that we can't trust ls's output as to
 		;; byte positions of filenames.
 		(put-text-property beg (point) 'dired-filename nil)
@@ -8354,6 +8343,8 @@ insert-directory-clean
     (if (let ((case-fold-search nil)) (looking-at "//DIRED-OPTIONS//"))
 	(delete-region (point) (progn (forward-line 1) (point))))))
=20
+;; FIXME: Adjust this specification now that ls error messages are no
+;; longer inserted into Dired buffers.
 ;; insert-directory
 ;; - must insert _exactly_one_line_ describing FILE if WILDCARD and
 ;;   FULL-DIRECTORY-P is nil.
@@ -8406,7 +8397,9 @@ insert-directory
       (declare-function ls-lisp--insert-directory "ls-lisp")
       (ls-lisp--insert-directory file switches wildcard full-directory-p)=
)
      (t
-      (let (result (beg (point)))
+      (let ((beg (point))
+            (errfile (make-temp-file "lserr"))
+            result)
=20
 	;; Read the actual directory using `insert-directory-program'.
 	;; RESULT gets the status code.
@@ -8426,19 +8419,23 @@ insert-directory
                     ;; component as argument.  Otherwise, run ls in the l=
ongest
                     ;; subdirectory of the directory part free of wildcar=
ds; use
                     ;; the remaining of the file pattern as argument.
-		    (let* ((dir-wildcard (insert-directory-wildcard-in-dir-p file))
+		    (let* ((dir-wildcard
+                            (insert-directory-wildcard-in-dir-p file))
                            (default-directory
                             (cond (dir-wildcard (car dir-wildcard))
                                   (t
 			           (if (file-name-absolute-p file)
 				       (file-name-directory file)
-				     (file-name-directory (expand-file-name file))))))
-			   (pattern (if dir-wildcard (cdr dir-wildcard) (file-name-nondirector=
y file))))
+				     (file-name-directory
+                                      (expand-file-name file))))))
+			   (pattern (if dir-wildcard
+                                        (cdr dir-wildcard)
+                                      (file-name-nondirectory file))))
 		      ;; NB since switches is passed to the shell, be
 		      ;; careful of malicious values, eg "-l;reboot".
 		      ;; See eg dired-safe-switches-p.
 		      (call-process
-		       shell-file-name nil t nil
+		       shell-file-name nil (list t errfile) nil
 		       shell-command-switch
 		       (concat (if (memq system-type '(ms-dos windows-nt))
 				   ""
@@ -8475,7 +8472,7 @@ insert-directory
 		  (if (string-match "\\`~" file)
 		      (setq file (expand-file-name file)))
 		  (apply #'call-process
-			 insert-directory-program nil t nil
+			 insert-directory-program nil (list t errfile) nil
 			 (append
 			  (if (listp switches) switches
 			    (unless (equal switches "")
@@ -8486,6 +8483,19 @@ insert-directory
 			  '("--")
 			  (list file))))))
=20
+        ;; FIXME: Should displaying the ls error buffer be conditional on=
 a
+        ;; user option?
+        ;; If ls emits any error messages, pop up a buffer displaying the=
m.
+        (when (> (file-attribute-size (file-attributes errfile)) 0)
+          (let ((errbuf (get-buffer-create "*ls error*")))
+            (with-current-buffer errbuf
+              (erase-buffer)
+              (insert-file-contents errfile))
+            (let ((errwin (display-buffer errbuf)))
+              (fit-window-to-buffer errwin))))
+
+        ;; FIXME: Is this still needed now that ls error messages are no
+        ;; longer inserted into Dired buffers
 	;; If we got "//DIRED//" in the output, it means we got a real
 	;; directory listing, even if `ls' returned nonzero.
 	;; So ignore any errors.
@@ -8534,10 +8544,15 @@ insert-directory
 			(or comparison #'=3D))
 		    nil))))
=20
+        ;; FIXME: Is this still needed now that ls error messages are no
+        ;; longer inserted into Dired buffers
 	;; For GNU ls versions 5.2.2 and up, ignore minor errors.
 	(when (and (eq 1 result) (eq insert-directory-ls-version #'>))
 	  (setq result 0))
=20
+        ;; FIXME: Is this still needed now that ls error messages are no
+        ;; longer inserted into Dired buffers but displayed in a separate
+        ;; buffer?
 	;; If `insert-directory-program' failed, signal an error.
 	(unless (eq 0 result)
 	  ;; Delete the error message it may have output.
@@ -8590,18 +8605,6 @@ insert-directory
 			(put-text-property pos (point)
 					   'dired-filename t))))))))))))
=20
-(defun insert-directory-adj-pos (pos error-lines)
-  "Convert `ls --dired' file name position value POS to a buffer position=
.
-File name position values returned in ls --dired output
-count only stdout; they don't count the error messages sent to stderr.
-So this function converts to them to real buffer positions.
-ERROR-LINES is a list of buffer positions of error message lines,
-of the form (START END)."
-  (while (and error-lines (< (caar error-lines) pos))
-    (setq pos (+ pos (- (nth 1 (car error-lines)) (nth 0 (car error-lines=
)))))
-    (pop error-lines))
-  pos)
-
 (defun insert-directory-safely (file switches
 				     &optional wildcard full-directory-p)
   "Insert directory listing for FILE, formatted according to SWITCHES.
diff --git "a/test/lisp/dired-resources/filename-with-newline/filename\nwi=
th newline" "b/test/lisp/dired-resources/filename-with-newline/filename\nw=
ith newline"
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 7d0ea1692ff..6c18af0cc6f 100644
=2D-- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -658,5 +658,60 @@ dired-test-hide-absolute-location-disabled
       (let ((default-directory test-dir-other))
         (files-tests--insert-directory-shows-given-free test-dir)))))
=20
+(ert-deftest dired-test-filename-with-newline-1 ()
+  "FIXME"
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (let ((dired-auto-toggle-b-switch nil)
+        (buf (dired (ert-resource-file "filename-with-newline")))
+        (warnbuf (get-buffer "*Warnings*")))
+    (with-current-buffer buf
+      (let ((beg (point))               ; beginning of file name
+            (end (dired-move-to-end-of-filename)))
+        (should (search-backward "\n" beg)))) ; literal newline in file n=
ame
+    (if noninteractive
+        (with-current-buffer "*Messages*"
+          (goto-char (point-min))
+          (should (search-forward
+                   "Warning (dired): Literal newline in file name.")))
+      (should (get-buffer-window warnbuf))
+      (with-current-buffer warnbuf
+        (goto-char (point-min))
+        (should (string-match
+                 (regexp-quote "Warning (dired): Literal newline in file =
name.")
+                 (buffer-substring (pos-bol) (pos-eol))))))
+    (kill-buffer buf)
+    (kill-buffer warnbuf)))
+
+(ert-deftest dired-test-filename-with-newline-2 ()
+  "FIXME"
+  (with-current-buffer "*Messages*"
+    (let ((inhibit-read-only t))
+      (erase-buffer)))
+  (setopt dired-auto-toggle-b-switch t)
+  (dired (ert-resource-file "filename-with-newline"))
+  (dired--toggle-b-switch)
+  (if noninteractive
+      (with-current-buffer "*Messages*"
+        (goto-char (point-min))
+        (should-error (search-forward
+                       "Warning (dired): Literal newline in file name."))=
)
+    (should-not (get-buffer "*Warnings*")))
+  (let ((beg (point))               ; beginning of file name
+        (end (dired-move-to-end-of-filename)))
+      (should (search-backward "\\n" beg))) ; result of ls -b switch
+  (kill-buffer "filename-with-newline"))
+
+(ert-deftest dired-test-ls-error-message ()
+  "FIXME"
+  (should-error (dired (ert-resource-file "bla")))
+  (let ((errbuf (get-buffer "*ls error*")))
+    (should (get-buffer-window errbuf))
+    (with-current-buffer errbuf
+      (should (equal (buffer-string)
+                     "ls: cannot access 'bla': No such file or directory\=
n")))
+    (kill-buffer errbuf)))
+
 (provide 'dired-tests)
 ;;; dired-tests.el ends here

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 7 Mar 2026 09:48:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 07 04:48:41 2026
Received: from localhost ([127.0.0.1]:44040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vyoH1-0000xL-Vn
	for submit <at> debbugs.gnu.org; Sat, 07 Mar 2026 04:48:41 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45898)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vyoGz-0000wI-Lb
 for 80499 <at> debbugs.gnu.org; Sat, 07 Mar 2026 04:48:38 -0500
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 1vyoGs-0007Bz-7R; Sat, 07 Mar 2026 04:48:30 -0500
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=Hv8Gh8rMIaamx67XT6kwdlU6LdeT8s+nDqLh69/U+wo=; b=aCfl5T9RvbvC
 dz+Arws7sBKSgh6z6zEmViiBHsC3B2wCpiJq19QRCug0ICfVMU3ZG/S3WdXJjCAfCc4wEmleBTX5F
 DiE3odhVxsY5/bAiucl+K0J9fKrVNGvrnSEWHmyNRdiKjcva9AHb606RIURvDtFMMM6nSCX3DAyd7
 zdFmk/O4EV4ZxV6PIXX/iZkpF1hFqMdwZDWl9YE/7OxSqZ3VLjRE07MAua6VtPvS0TjBmBzwUSGww
 FNSBPiDoPwxMT4wcwp8dfR10tFjUlraRe/i13jap+m5DaobX1ui9j3d/hFYU/IPeyDcmsupeGabwZ
 HBSUHhNmJkDpa6zFs+KHGA==;
Date: Sat, 07 Mar 2026 11:48:27 +0200
Message-Id: <86a4wkt1g4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87sead18pv.fsf@HIDDEN> (message from Stephen Berman on Fri, 06
 Mar 2026 12:46:36 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN> <87sead18pv.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Fri, 06 Mar 2026 12:46:36 +0100
> 
> Does this persuade you to accept the patch augmented with the removal of
> the code that treats Dired lines beginning at column 0 as error messages
> and accordingly adjusts the offsets produced by --dired for the file
> names (thereby breaking the handling of file names containing newlines)?

I tested this patch both when 'ls' report errors to stderr and when it
doesn't, and it seems to work well in both cases.  So yes, please show
a patch that includes this and removes the code which treats lines
beginning at column zero as errors, and let's test that on all the
cases where there are files with embedded newlines in their names.

Thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 6 Mar 2026 11:46:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 06:46:54 2026
Received: from localhost ([127.0.0.1]:57733 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vyTdt-00089X-6S
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2026 06:46:53 -0500
Received: from mout.gmx.net ([212.227.15.18]:49589)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vyTdq-000896-Ho
 for 80499 <at> debbugs.gnu.org; Fri, 06 Mar 2026 06:46:51 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1772797597; x=1773402397; i=stephen.berman@HIDDEN;
 bh=MEfPdj5FnZnBW64RTyiNFYA1YizcdAz0zX/SrmSnH4U=;
 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=h8IvP65XWIGnW6wSol+uedzjbPOOdgm/SZox2er55Cpry5tnjjYfG0y0Dgn8egMz
 TXDcc6ZE2ic9xZdC/Gs9fiFwNPTmHYXu4hXyj62yaAKiiwvvBUSUirku+93C7tTyZ
 XO7qOAY7gjTOPFNt5ERWC0v94Za9gbEPr7eCNO043qIM/t0B5+E4Kall1zd2Cm4s7
 moTWfEc3IY0G1UDJutKll68pbJ0EaPyPECX9txNaCHkmMVXREaP35fgYtTYUObHll
 nI+AGyE4kcA5h+FA147qqQ87oUZsy4HzzGvI7vrTzQ1qbuLLBIItlDi+QdRxzmySk
 tDH6/CDfQPaaZ2VKoA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M9o1v-1w4EOW3LK1-00FckF; Fri, 06
 Mar 2026 12:46:37 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <87h5qyl55z.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
 <87h5qyl55z.fsf@HIDDEN>
Date: Fri, 06 Mar 2026 12:46:36 +0100
Message-ID: <87sead18pv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:AOqmLld4qq61t9/+4rZE6lCYlZ8WJ6hknO3dVIQuTm58gFdhl3p
 4UTlPSMpWSFc7/YrdvgckXbEDfH8skZtGNJU25vcfi4ckinnP2IROrxU1gNHYz0zXRp/y/m
 R/mYuw1uD+Dj7bRDs4EUq0UqM1cwK7W2VHMYO4dQkF6IAm707EVlfR8HfR4to6ssKQeLIMM
 sYbq+K0KCdFEwAr4d12QQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:VZt/aAzrGWI=;L8BU/032AJAKjbqulzGrwxv8ayW
 fOcckL985JJCmFHV+hVHxsvOrGS+jnNanHKnyGxk07f8sXXe7MRcp1oZTlEi26Hk/rde9sfbk
 zySYMOUA1VoX2MmTzrj1vOZRjRlaAnRxutrA1s9VBIz87NMBAwcnNs9hpcy6K9Lm9FhVO2I0E
 Zik/Y+uZeh49dCRIT2vkMDv6Rw5j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wuHvP6v6MJAMeu6CW
 lx+wVnPd1euelJLAuFN+ds45D76MMM/Yl6Y/wQtfP7rS3BZ9S8RMi8WnM1kct7rtz3wkROsbA
 Zri8Q/KNwswG+LzqxyLnpIBAHp803ngvmQR/1TKzcH0u7hC3hmx/hob8L9qxzK3P5WwpHysvx
 FgNwjjfAaBHSOuWGorx+JY0n5bysbcRb192uS5+HTSAAw9puM+KHup4TYbTiRYlnaCvSqd4Wn
 MR54hHLVSrWXu+2OLWiqXKsNrx+wbABf6rvO4LQ5u5Mevu+CPc/CL1SOxhc0TpEfkjB7M99bn
 bRO9YreWyjn0Osl5Dwfz6zd7vE5eoq5SaimJ9C5NTxd8CartbgD84oBu+YiwdkssIgzEFJ9+c
 U2ib97Nplg2xnWt99WpwRkg1M6LzA8019yErxQG050LWuN2vc045wsj9BxjqCr+uAkQ8dtUnd
 cLLCz0lOSRN7a4H+Y5l5nySjBEWBeNFLLITdieYDgV5c9ux66Lka++cmbRx0tvcfAhLMCK6kB
 flElzdaBfGR0ZKhCBaYqEDOcoZzh+P4gGxy0NjYiue6Ie1i+sl6Uicts76ROPp2b9TWkuScfB
 X5CyQOa8SGvw9RSfhQsMuRrymUQOzbSQGP1LpT6eansq27Cx7QUX1dxSqd20kvNE7OZbQsT1c
 1mDUDqc5rnTQTipsERjgEArX6yQ/QgmNbHUMoGuHbRDaVVGt1TvrrVSYDH9ThdBCa+FCimiWD
 EnR4HWID7RDC2dHRz95c8Usaco44TLvMQti81vbIjJOHz3JzFt/69c0NNBFM8C44XSIocc8Jp
 iJp6lJXyZ7q9NnTurXxNxem0eqqc/VtHboCxsYE0ZybTYNAqgt7/rNZcohQ+EQb9DQn5q9slp
 GlHA4ew+/NmFQDKDqNsUm8X0HF1pvqwcKvrMc3vBT+8L3nGxI9FQyCmt839GNlfanqae5B3oo
 Rj5CJmmPwB6VYAxRBuTW
X-Spam-Score: 1.8 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Mon, 02 Mar 2026 14:41:44 +0100 Stephen Berman wrote: >
 On Mon, 02 Mar 2026 15:17:58 +0200 Eli Zaretskii wrote: > >>> From: Stephen
 Berman >>> Cc: fgunbin@HIDDEN, 80499 <at> debbugs.gnu.org >>> Date: Mon,
 02 Mar 2026 10:46:55 +0100 >>> >>> > We can o [...] 
 Content analysis details:   (1.8 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 RCVD_IN_MSPIKE_H4      RBL: Very Good reputation (+4)
 [212.227.15.18 listed in wl.mailspike.net]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.15.18 listed in list.dnswl.org]
 0.6 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in sa-trusted.bondedsender.org]
 0.9 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.18 listed in bl.score.senderscore.com]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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: -0.2 (/)

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

On Mon, 02 Mar 2026 14:41:44 +0100 Stephen Berman <stephen.berman@HIDDEN>=
 wrote:

> On Mon, 02 Mar 2026 15:17:58 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:
>
>>> From: Stephen Berman <stephen.berman@HIDDEN>
>>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>>> Date: Mon, 02 Mar 2026 10:46:55 +0100
>>>=20
>>> > We can only remove it if we redirect stderr to another buffer (we
>>> > could then show error messages, if any, in a popup buffer).
>>>=20
>>> The attached patch attempts to do this; does it look ok to you?  To te=
st
>>> it, it is necessary to reproducibly make `ls' emit an error message, o=
r
>>> at least to simulate that.  I don't know how to do that; do you?
>>
>> I do, but what to do to test that in this case?  (I only know how to
>> make that happen on a system where file names with embedded newlines
>> are not allowed.)
>
> I want to make sure that with the patch, when ls emits an error message
> after invoking Dired, the error message is displayed in a buffer that
> pops up and not in the Dired buffer that displays the non-erroneous ls
> output; for such a test, it's not necessary for the directory to have a
> file whose name contains a newline.  But I do think the patch must also
> be tested on GNU/Linux, and I welcome any suggestions to that end.

My patch had an error (a missing paren in the let-bound `errfile' form)
and also overlooked a call to `ls'.  The attached patch corrects these
mistakes.  In addition, my assertion of not knowing how to reproducibly
make `ls' emit an error message overlooked an easily reproducible error:
a missing directory.  Here is a test case:

0. Start emacs -Q (without the attached patch).
1. Instrument `insert-directory' for Edebug.
2. Invoke `M-x d /tmp/bla' (ensure there is no directory /tmp/bla).
3. When execution stops, set a breakpoint at the first use of
   `call-process' in `insert-directory' (line 8440 of files.el in=20
   current master), type `g f' to go to the breakpoint and step over the
   function call, and then switch to buffer "bla".

Here is the content of that buffer (which is in Dired mode) at this
point in the execution:

ls: cannot access 'bla': No such file or directory
//DIRED-OPTIONS// --quoting-style=3Dliteral

So the error message is in the Dired buffer.

Now apply the attached patch, and repeat the above steps.  After step 3,
buffer "bla" now contains just the //DIRED-OPTIONS// line but no error
message.  Now in Edebug type `c' again to continue execution: the buffer
*ls-error* pops up and it contains the `ls' error message.  (The
execution also stops again at the `access-file' invocation on line 8567,
which also raises a missing file error.)  So for this case the patch
works as intended, and this suggests it will also work for other `ls'
errors that don't prevent listing directory contents.

Does this persuade you to accept the patch augmented with the removal of
the code that treats Dired lines beginning at column 0 as error messages
and accordingly adjusts the offsets produced by --dired for the file
names (thereby breaking the handling of file names containing newlines)?

Steve Berman


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: insert-directory patch
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/files.el b/lisp/files.el
index d42154cf8a2..9919c555ea2 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8406,7 +8406,9 @@ insert-directory
       (declare-function ls-lisp--insert-directory "ls-lisp")
       (ls-lisp--insert-directory file switches wildcard full-directory-p)=
)
      (t
-      (let (result (beg (point)))
+      (let ((beg (point))
+            (errfile (make-temp-file "lserr"))
+            result)
=20
 	;; Read the actual directory using `insert-directory-program'.
 	;; RESULT gets the status code.
@@ -8438,7 +8440,7 @@ insert-directory
 		      ;; careful of malicious values, eg "-l;reboot".
 		      ;; See eg dired-safe-switches-p.
 		      (call-process
-		       shell-file-name nil t nil
+		       shell-file-name nil (list t errfile) nil
 		       shell-command-switch
 		       (concat (if (memq system-type '(ms-dos windows-nt))
 				   ""
@@ -8475,7 +8477,7 @@ insert-directory
 		  (if (string-match "\\`~" file)
 		      (setq file (expand-file-name file)))
 		  (apply #'call-process
-			 insert-directory-program nil t nil
+			 insert-directory-program nil (list t errfile) nil
 			 (append
 			  (if (listp switches) switches
 			    (unless (equal switches "")
@@ -8486,6 +8488,14 @@ insert-directory
 			  '("--")
 			  (list file))))))
=20
+        (when (> (file-attribute-size (file-attributes errfile)) 0)
+          (let ((errbuf (get-buffer-create "*ls error*")))
+            (with-current-buffer errbuf
+              (erase-buffer)
+              (insert-file-contents errfile))
+            (let ((errwin (display-buffer errbuf)))
+              (fit-window-to-buffer errwin))))
+
 	;; If we got "//DIRED//" in the output, it means we got a real
 	;; directory listing, even if `ls' returned nonzero.
 	;; So ignore any errors.

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 2 Mar 2026 13:42:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 02 08:42:03 2026
Received: from localhost ([127.0.0.1]:34388 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vx3X8-0008CQ-WA
	for submit <at> debbugs.gnu.org; Mon, 02 Mar 2026 08:42:03 -0500
Received: from mout.gmx.net ([212.227.17.21]:32979)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vx3X5-0008Bg-N3
 for 80499 <at> debbugs.gnu.org; Mon, 02 Mar 2026 08:42:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1772458905; x=1773063705; i=stephen.berman@HIDDEN;
 bh=OrHTid3sl/8LOV4FO8XKXqealeSb+D+8Qv4BRD0TvwE=;
 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=QYsyjo/hbuo9H9aIB9fR+nJ7b9W1sYQHpfkVLhNzLNW964aQj0Qi15yhNh2j95s5
 xBWahZeID9BVbal4f6fgQabUDLfcqQij7+gxzMEitkS5KHaeFLDbXWXSMklwT+Qko
 uOPpDJGfBWUw9a3S2JGD/Mokq1rtAvcJa7GsEu3zRNcmWrwB5gr5P9FvFgC22+i3M
 ohiQ6WJMm/eAgrMOUnsKLkSBePaRX07ayGx/xy3kBO2I0VMbOOPMsgQlVY+XN/zBB
 oZ5pPyTIvOMYYBGy2rruEk9gWEBgm3kA3zk7ddL/PTt2Cbw5bYdaFOlrlSREIqz7T
 mQ34RUtojyv86iTIFA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFKGP-1vubce0P3R-000a1n; Mon, 02
 Mar 2026 14:41:45 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86zf4qxtdl.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
 <87ldgalg1c.fsf@HIDDEN> <86zf4qxtdl.fsf@HIDDEN>
Date: Mon, 02 Mar 2026 14:41:44 +0100
Message-ID: <87h5qyl55z.fsf@HIDDEN>
User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CdfpfCHLGExblc+XFr/1LP2xmGurM30+QexQju97XcXUZge
 vERrviZ8u0YyKvkTyUUbym+smuPodXvyrWvdULREUa/sk0QncONO1+nauuHzWRcpTJIlTuyRx
 aN5EOVOdZnNBOWWweISrF6dE8CstBJXPrxxuiIp2p7K+Lhy5w18jD8+OFihn/fVzebeeWP1du
 YBXbc74ZANzkNML0pkJGb71CWguUgx2hjTAajEDntqLRgIlbadKPY/opO4+utGwksOnt6kwJB
 4YOrQ/rlMVzpKzk5f5xIeC7ZnPq+E/gLkOZ7sxBhJbZKZpEvj9gC50D1igyxvk68FuXEoao+X
 wRC7QbT1vcF2tO8AclJlaqEf48MjwDMCf8oPhE+n/4Gw1iEBJFNYbhiMUsmg==
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.5 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Mon, 02 Mar 2026 15:17:58 +0200 Eli Zaretskii wrote: >>
 From: Stephen Berman >> Cc: fgunbin@HIDDEN, 80499 <at> debbugs.gnu.org >>
 Date: Mon, 02 Mar 2026 10:46:55 +0100 >> >> > We can only remove it if we
 redirect stderr to another buffer (we >> > coul [...] 
 Content analysis details:   (1.5 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.21 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.21 listed in wl.mailspike.net]
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in sa-accredit.habeas.com]
 1.2 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in bl.score.senderscore.com]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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: -0.5 (/)

On Mon, 02 Mar 2026 15:17:58 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Mon, 02 Mar 2026 10:46:55 +0100
>>=20
>> > We can only remove it if we redirect stderr to another buffer (we
>> > could then show error messages, if any, in a popup buffer).
>>=20
>> The attached patch attempts to do this; does it look ok to you?  To tes=
t
>> it, it is necessary to reproducibly make `ls' emit an error message, or
>> at least to simulate that.  I don't know how to do that; do you?
>
> I do, but what to do to test that in this case?  (I only know how to
> make that happen on a system where file names with embedded newlines
> are not allowed.)

I want to make sure that with the patch, when ls emits an error message
after invoking Dired, the error message is displayed in a buffer that
pops up and not in the Dired buffer that displays the non-erroneous ls
output; for such a test, it's not necessary for the directory to have a
file whose name contains a newline.  But I do think the patch must also
be tested on GNU/Linux, and I welcome any suggestions to that end.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 2 Mar 2026 13:18:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 02 08:18:14 2026
Received: from localhost ([127.0.0.1]:34297 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vx3A6-0006Tk-A0
	for submit <at> debbugs.gnu.org; Mon, 02 Mar 2026 08:18:14 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:33914)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vx3A4-0006TL-7f
 for 80499 <at> debbugs.gnu.org; Mon, 02 Mar 2026 08:18:13 -0500
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 1vx39y-0004tJ-Qc; Mon, 02 Mar 2026 08:18:06 -0500
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=IPVNn36tAmNuqE4CbO7IeWbnTdwC4GPQWLhwQejnNGo=; b=WXqz6DfOOruq
 SyGGtEnDWh031bFrcPu6mWzdF8GDdSQWH1dsjW4L2nLsELuFRU+QixzagZb0VSCDmN5MJz/gVKZZY
 GBK49pjydi4cw1pEezjJGFlIzwxDndvs1T5/LeBb1G/BLrjvBBL2hW1jyExBEYyGF3v83+C7lBXmc
 3xgeM6AmGF1fEd77Al4i4Fo8lSJq2uanHXZ8d3pR4JEVp3Am2yufiMDdH3Rdv31JKb0ebtbqnCl9u
 xl7UCSksl9uCq1ECnyPWVsy1Ob1fTOPGRlScQNL3AtNV5IqAcjbC9vpME+3qJoHnaw2lenv1Q7DLB
 unapwQRynKJSfDzWL81wAA==;
Date: Mon, 02 Mar 2026 15:17:58 +0200
Message-Id: <86zf4qxtdl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87ldgalg1c.fsf@HIDDEN> (message from Stephen Berman on Mon, 02
 Mar 2026 10:46:55 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN> <87ldgalg1c.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Mon, 02 Mar 2026 10:46:55 +0100
> 
> > We can only remove it if we redirect stderr to another buffer (we
> > could then show error messages, if any, in a popup buffer).
> 
> The attached patch attempts to do this; does it look ok to you?  To test
> it, it is necessary to reproducibly make `ls' emit an error message, or
> at least to simulate that.  I don't know how to do that; do you?

I do, but what to do to test that in this case?  (I only know how to
make that happen on a system where file names with embedded newlines
are not allowed.)




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

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


Received: (at 80499) by debbugs.gnu.org; 2 Mar 2026 09:47:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 02 04:47:06 2026
Received: from localhost ([127.0.0.1]:32798 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vwzrm-00039W-D3
	for submit <at> debbugs.gnu.org; Mon, 02 Mar 2026 04:47:06 -0500
Received: from mout.gmx.net ([212.227.17.21]:49829)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vwzrj-00038a-8g
 for 80499 <at> debbugs.gnu.org; Mon, 02 Mar 2026 04:47:04 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1772444816; x=1773049616; i=stephen.berman@HIDDEN;
 bh=RqS4zSdw28SPIQBQoK89CBmQAXdIx1bkY4nohZ8o6lg=;
 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=PjtWxXPvbXWc7VE99wI1YPrts96r7X1FI8QB+RME+nLooenyF8e30r/N6+Bj1jUb
 e9eAiCd4nvJjQTeC5Kcd/MU7Mfu3e5KYeySOgSnT9xAq0yZ7QoIsr1i0UCBHY5/1y
 +dHPwXgXMMFrrIYDsGdCrLID3AAi0BcCyHlPy2k3xhDPO5ICFOKx/LXQl+Ea1Y7uq
 JF7REdGERMh1M3a6LKlqlwPxp+OS4mRLqoNs2DRHm2cblg+jPX6rCXeouvGX7Pfgf
 EQYScr4hdDaQ+RjwmG6eu26vSi41AYsGEveHzjguNPZcDb6aQhvdBUiAvUV/QqrOp
 nCcZ/49o4Z1LIheo8A==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfpOT-1vUEgb1nmz-00ikTj; Mon, 02
 Mar 2026 10:46:56 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86tsuzznfw.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
 <87pl5nwww2.fsf@HIDDEN> <86tsuzznfw.fsf@HIDDEN>
Date: Mon, 02 Mar 2026 10:46:55 +0100
Message-ID: <87ldgalg1c.fsf@HIDD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b
 drbSbqgGZVIA7HJJ8bWsQb98Q5KMzITj6XKq8I+A46sXtnT2hb6/5wAYFvZtBliDL1LyB5qJs
 /iL8GLhgYliBvCpirsyfm4q1pLlPszhj1n19nw2aTfpD4zME/AVIZTMC/Q8Rexzsrhpbks2Ln
 UlxA5HcEsgt3ihIgSg0wsm0DFpsStVgBYdJ3V/Uf64+0ysLLVwGlxPRZrnSDuQdP5Ewa1Q6+h
 UfsjP+8vfvSym0EAORTBre+WGRJxkT+ObljvaE/B3mW2pjjVwQihUZhWAZnrwhMqrHIyYl88L
 a+hK8MVugaL8J22t1j5dBr953xVTq112wUog7t6yAXkREU6h3kHKZG8WvGe/0DwQOhF8b4lv+
 h2hR4PwyMAEH7WoTCm8wg316S2bEaY+sipOBfCTgDjIf6rIgYOLYGitHPKQkxxaBxvCK5LDki
 HYi1PpO5GUTMqZsM3HxyMW5R3yCAWkfF04CwYk5hV5tB18Y6NAMoS0Sbc7SCSrVnrzbzh6BCV
 1oLuzwdmJWAsA09FHiXj
X-Spam-Score: 1.5 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Sun, 01 Mar 2026 15:30:59 +0200 Eli Zaretskii wrote: >>
 From: Stephen Berman >> Cc: fgunbin@HIDDEN, 80499 <at> debbugs.gnu.org >>
 Date: Sun, 01 Mar 2026 13:35:09 +0100 >> >> On Sat, 28 Feb 2026 19:36:56
 +0200 Eli Zaretskii wrote: [...] >> > I think [...] 
 Content analysis details:   (1.5 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.2 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in bl.score.senderscore.com]
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in sa-trusted.bondedsender.org]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.21 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.21 listed in wl.mailspike.net]
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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: -0.5 (/)

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

On Sun, 01 Mar 2026 15:30:59 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Sun, 01 Mar 2026 13:35:09 +0100
>>=20
>> On Sat, 28 Feb 2026 19:36:56 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:
[...]
>> > I think the fundamental problem here is that the code treats the part
>> > after the newline as "error message".
[...]
>> >                                        I can think of two possible
>> > ideas of fixing this fundamental problem:
>> >
>> >   . test the offsets provided by --dired _before_ correcting them by
>> >     the last "error message", and only consider it an error message i=
f
>> >     the character after the uncorrected END offset is not one of
>> >     '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|)
>> >   . if that doesn't work reliably, separate stdout and stderr when
>> >     running 'ls' (I actually don't understand why we need the error
>> >     messages in the Dired buffer -- are they useful?); then this
>> >     dilemma of whether something that starts at the line beginning is
>> >     an error message or continuation of file name will not happen
[...]
>> If we can answer your question with "No!", then the simplest and most
>> reliable solution (which I mentioned upthread) is available: refrain
>> from adjusting the offsets.
[...]
>> But no reason for this is given and I couldn't find a discussion of the
>> issue in the Emacs bug and devel list archives.  The doc string of
>> `insert-directory-adj-pos' says this: "File name position values
>> returned in ls --dired output count only stdout; they don't count the
>> error messages sent to stderr.  So this function converts to [sic] them
>> to real buffer positions."  But the heuristic for identifying error
>> messages (they begin at column 0) often fails in the case of filenames
>> with newlines.  I would expect that if `ls' raises an error that Emacs
>> should handle, there are better ways of displaying it.  So how about
>> removing this code?
>
> We can only remove it if we redirect stderr to another buffer (we
> could then show error messages, if any, in a popup buffer).

The attached patch attempts to do this; does it look ok to you?  To test
it, it is necessary to reproducibly make `ls' emit an error message, or
at least to simulate that.  I don't know how to do that; do you?

Steve Berman


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Description: insert-directory patch
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/files.el b/lisp/files.el
index d42154cf8a2..802819506cd 100644
=2D-- a/lisp/files.el
+++ b/lisp/files.el
@@ -8418,7 +8418,8 @@ insert-directory
 	       (coding-system-for-write
 		(and enable-multibyte-characters
 		     (or file-name-coding-system
-			 default-file-name-coding-system))))
+			 default-file-name-coding-system)))
+               (errfile (make-temp-file "lserr"))
 	  (setq result
 		(if wildcard
 		    ;; If the wildcard is just in the file part, then run ls in
@@ -8475,7 +8476,7 @@ insert-directory
 		  (if (string-match "\\`~" file)
 		      (setq file (expand-file-name file)))
 		  (apply #'call-process
-			 insert-directory-program nil t nil
+			 insert-directory-program nil (list t errfile) nil
 			 (append
 			  (if (listp switches) switches
 			    (unless (equal switches "")
@@ -8484,7 +8485,14 @@ insert-directory
 			      (split-string-and-unquote switches)))
 			  ;; Avoid lossage if FILE starts with `-'.
 			  '("--")
-			  (list file))))))
+			  (list file)))
+                  (when (> (file-attribute-size (file-attributes errfile)=
 0))
+                    (let ((errbuf (get-buffer-create "*ls error*")))
+                      (with-current-buffer errbuf
+                        (erase-buffer)
+                        (insert-file-contents errfile))
+                      (let ((errwin (display-buffer errbuf)))
+                        (fit-window-to-buffer errwin))))))))
=20
 	;; If we got "//DIRED//" in the output, it means we got a real
 	;; directory listing, even if `ls' returned nonzero.

--=-=-=--




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

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


Received: (at 80499) by debbugs.gnu.org; 1 Mar 2026 13:31:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 01 08:31:13 2026
Received: from localhost ([127.0.0.1]:49276 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vwgt5-0007JE-8o
	for submit <at> debbugs.gnu.org; Sun, 01 Mar 2026 08:31:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44900)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vwgt1-0007IT-V0
 for 80499 <at> debbugs.gnu.org; Sun, 01 Mar 2026 08:31:08 -0500
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 1vwgsv-000292-QK; Sun, 01 Mar 2026 08:31:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=EUlSagCCrcqbWTw/yv6JI8xZE6pO8djfWl1ESaP5X9k=; b=mGqVaF8Si9Cxeut2mQk5
 XudM8mh2qHdxij1ES1jbXIyOvnw9R+pIprUsjWY8rlK0dfaR+tOkvWu0FMEt7hFInKCGfIMzlOlUT
 VqHZYD8nzfweq2qVPVbgqT59kKpWO2YjzJGOQo+utm4EgFs+a9baezwPvTbBqRLmWHMJ2R/81YH1t
 kO5lT11zHo8YU+POds53NOoZazX0sIL2oXZfxpSJQO1Bw5A+K6elKC783Ac3DPyrfq8ce1e/EyBYf
 EdYRGfrHusuAv1e4s021qu0OjugZjvH5xIdjMxps3oPsAgNE17YGlBwuOXVk11MEYWcUU98u3HqT/
 FntzGV9eZgBQJg==;
Date: Sun, 01 Mar 2026 15:30:59 +0200
Message-Id: <86tsuzznfw.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87pl5nwww2.fsf@HIDDEN> (message from Stephen Berman on Sun, 01
 Mar 2026 13:35:09 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN> <87pl5nwww2.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Sun, 01 Mar 2026 13:35:09 +0100
> 
> On Sat, 28 Feb 2026 19:36:56 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:
> 
> > I think what you are basically saying is that the code works or fails
> > to work by sheer luck.
> 
> No.  At least for directories with a single filename containing a
> newline, the display appears to be determined by the algorithm I
> described (“In short, as long as the character after the adjusted `end'
> offset is either a newline, a space, or one of the characters added to
> the directory entry display when `ls' is called with -F (e.g. "/"), then
> a filename containg a newline gets correctly propertized for Dired and
> if `dired-auto-toggle-b-switch' is non-nil, the newline is displayed as
> "\n".”).  If there's more than one such filename in a directory, I
> expect the same algorithm to apply, but the result seems to depend on
> the order of the entries (I'm not sure), making it appear like "sheer
> luck".

So it's "No, but yes", right?

When I said "by sheer luck", I didn't mean "randomly", I meant that
whether it will or won't work depends on many details that are largely
irrelevant to the problem.

The basic problem is the assumption that any non-whitespace text that
begins immediately after a newline is an error message.  It becomes
false when some file names include newlines.  And when that happens,
there's no reliable way of distinguishing error messages from such
file names.

> >                         I indeed found several situations where a file
> > name a\nb.txt is not recognized and several others where it is.
> 
> I guess these are directories with more than one filename containing a
> newline; if not (and even if so), then I think the only way to further
> investigate this is for you to step through the loop that adjusts the
> start and end offsets and see when and how they differ.
> 
> > I think the fundamental problem here is that the code treats the part
> > after the newline as "error message".
> 
> Only if the part after the newline does not begin with whitespace.

Yes, and that is a false assumption if a file name includes newlines
but not other whitespace.

> >                                        I can think of two possible
> > ideas of fixing this fundamental problem:
> >
> >   . test the offsets provided by --dired _before_ correcting them by
> >     the last "error message", and only consider it an error message if
> >     the character after the uncorrected END offset is not one of
> >     '(?\n ?\s ?/ ?* ?@ ?% ?= ?|)
> >   . if that doesn't work reliably, separate stdout and stderr when
> >     running 'ls' (I actually don't understand why we need the error
> >     messages in the Dired buffer -- are they useful?); then this
> >     dilemma of whether something that starts at the line beginning is
> >     an error message or continuation of file name will not happen
> >
> > (We could also detect real error messages by verifying that they start
> > with "ls: ", but this has complications, since we don't really know
> > what to expect before the colon, and then a file name like "a\nls: foo" 
> > is a legitimate file name, but looks like an error message.)
> 
> If we can answer your question with "No!", then the simplest and most
> reliable solution (which I mentioned upthread) is available: refrain
> from adjusting the offsets.

What will this do when there are error messages in the buffer?

> I also don't know why error messages from
> `ls' should appear in the Dired buffer (and as I also mentioned
> upthread, AFAIR I've never seen any such error display).

I did.  But it isn't important, as long as you believe that ls can
emit error messages to its stderr.

> But no reason for this is given and I couldn't find a discussion of the
> issue in the Emacs bug and devel list archives.  The doc string of
> `insert-directory-adj-pos' says this: "File name position values
> returned in ls --dired output count only stdout; they don't count the
> error messages sent to stderr.  So this function converts to [sic] them
> to real buffer positions."  But the heuristic for identifying error
> messages (they begin at column 0) often fails in the case of filenames
> with newlines.  I would expect that if `ls' raises an error that Emacs
> should handle, there are better ways of displaying it.  So how about
> removing this code?

We can only remove it if we redirect stderr to another buffer (we
could then show error messages, if any, in a popup buffer).




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

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


Received: (at 80499) by debbugs.gnu.org; 1 Mar 2026 12:35:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 01 07:35:27 2026
Received: from localhost ([127.0.0.1]:48774 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vwg18-00024L-57
	for submit <at> debbugs.gnu.org; Sun, 01 Mar 2026 07:35:27 -0500
Received: from mout.gmx.net ([212.227.17.21]:42431)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vwg14-00021t-SP
 for 80499 <at> debbugs.gnu.org; Sun, 01 Mar 2026 07:35:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1772368510; x=1772973310; i=stephen.berman@HIDDEN;
 bh=KSVLGZz/jlDksi5uqTrNudG99o97MGOG/TGucUO4VDk=;
 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=LfFrfp3lbDG443xKiZddYA66vPnqzGVmIqe0BUwDPu6A6pAqChSr90Np1CNCF4X0
 NIOFicTN7ROb+ANpPAWf0G24Ia80k66kfUK7wa9sTMeEIEkj3HLBgwYUSXX3Ifvd6
 hAOMEyN2I6EqoPUqNYQyzzqvNMkuXkgGKKOzzGMWG4n1kO+Srhgkj413mRxeRJzFJ
 GyRhQnleeVi/na4QpIkLEHo5vf0gZR9RTUNictwDRkaS8nO0EqanLFeQ3wKZU4G40
 jZDOgLydIEGzStuYhWe1NwvP8p9uvTFArEEgrvLIlYi5RdYex96meTxbDHXra9HRC
 0q5q/Ait3FSxMyIldQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOiHf-1wKfAn0cql-00TVFp; Sun, 01
 Mar 2026 13:35:10 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86tsv022iv.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
 <87o6l9vuci.fsf@HIDDEN> <86tsv022iv.fsf@HIDDEN>
Date: Sun, 01 Mar 2026 13:35:09 +0100
Message-ID: <87pl5nwww2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:a3xsgSKPM7GwBp1Ofuw5kaUX4R/X36bkaiN7NybOt6SOeDf90Iq
 uTk2Amr44L29BovNyOfAxTS4jMn4AZo+XL3QmcIGWzuoAn3tqwDalZJX9nvoQMwnBlXwqF/
 IHQBJBhSnEwGzfqGf5Kvxmke7mpLRy6LLJrzUs0Ipg4BCG87/4LieUs+gtNCa0CBMJSk6ci
 TUU7iPQudO0vJcY+2T0RA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:FVml/lVAGnU=;E0pFUVj8Pe99kffLAqJUr6JstRS
 SIF++fQk03vV8nXpFMAgb0yiCv2rgJK/Qm1q4PSPMZtq7Xl0UJEr2xOJS27X7e2bFwZw/KF2O
 CDapbiD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1IzibtrlNt
 QZ2NK/Uwt8rJVLSVXwp8
X-Spam-Score: 1.7 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On Sat, 28 Feb 2026 19:36:56 +0200 Eli Zaretskii wrote: >>
 From: Stephen Berman >> Cc: fgunbin@HIDDEN, 80499 <at> debbugs.gnu.org >>
 Date: Sat, 28 Feb 2026 15:03:09 +0100 [...] >> Now step through the iteration
 over the entry for "a\nb.txt". The >> `star [...] 
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stephen.berman[at]gmx.net)
 1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in bl.score.senderscore.com]
 0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.17.21 listed in wl.mailspike.net]
 0.4 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.17.21 listed in sa-accredit.habeas.com]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.17.21 listed in list.dnswl.org]
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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: -0.3 (/)

On Sat, 28 Feb 2026 19:36:56 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
>> Date: Sat, 28 Feb 2026 15:03:09 +0100
[...]
>> Now step through the iteration over the entry for "a\nb.txt".  The
>> `start' offset is again incremented by 1 (151), but the `end' offset is
>> adjusted for the intervening "error message" (the "b.txt" part of the
>> filename) and has the value 163.  Now the character after `end' is ?R,
>> which is in the offsets line at position 163 in the buffer "bug#80499",
>> and the if-condition fails, and consequently the `dired-filename'
>> property is set to nil for all positions in the buffer from point-min to
>> the current (in this case last) `end' offset in the offsets line.  The
>> result after completing the Edebug run is this display of buffer
>> "bug#80499" (i.e., the filename is displayed with a literal newline and
>> the part after the newline begins at column 0):
>>=20
>>   /tmp/bug#80499:
>>   drwxrwxr-x  2 steve steve  60 Feb 28 12:00 .
>>   drwxrwxrwt 14 root  root  340 Feb 28 12:23 ..
>>   -rw-rw-r--  1 steve steve   0 Feb 28 12:00 a
>> b.txt
>
> I think what you are basically saying is that the code works or fails
> to work by sheer luck.

No.  At least for directories with a single filename containing a
newline, the display appears to be determined by the algorithm I
described (=E2=80=9CIn short, as long as the character after the adjusted `=
end'
offset is either a newline, a space, or one of the characters added to
the directory entry display when `ls' is called with -F (e.g. "/"), then
a filename containg a newline gets correctly propertized for Dired and
if `dired-auto-toggle-b-switch' is non-nil, the newline is displayed as
"\n".=E2=80=9D).  If there's more than one such filename in a directory, I
expect the same algorithm to apply, but the result seems to depend on
the order of the entries (I'm not sure), making it appear like "sheer
luck".

>                         I indeed found several situations where a file
> name a\nb.txt is not recognized and several others where it is.

I guess these are directories with more than one filename containing a
newline; if not (and even if so), then I think the only way to further
investigate this is for you to step through the loop that adjusts the
start and end offsets and see when and how they differ.

> I think the fundamental problem here is that the code treats the part
> after the newline as "error message".

Only if the part after the newline does not begin with whitespace.

>                                        I can think of two possible
> ideas of fixing this fundamental problem:
>
>   . test the offsets provided by --dired _before_ correcting them by
>     the last "error message", and only consider it an error message if
>     the character after the uncorrected END offset is not one of
>     '(?\n ?\s ?/ ?* ?@ ?% ?=3D ?|)
>   . if that doesn't work reliably, separate stdout and stderr when
>     running 'ls' (I actually don't understand why we need the error
>     messages in the Dired buffer -- are they useful?); then this
>     dilemma of whether something that starts at the line beginning is
>     an error message or continuation of file name will not happen
>
> (We could also detect real error messages by verifying that they start
> with "ls: ", but this has complications, since we don't really know
> what to expect before the colon, and then a file name like "a\nls: foo"=20
> is a legitimate file name, but looks like an error message.)

If we can answer your question with "No!", then the simplest and most
reliable solution (which I mentioned upthread) is available: refrain
from adjusting the offsets.  I also don't know why error messages from
`ls' should appear in the Dired buffer (and as I also mentioned
upthread, AFAIR I've never seen any such error display).  The code for
doing this was added by this commit:

commit a1b0c2a764aef31f347e87091ac3552d9b6e2fdb
Author:     Richard M. Stallman <rms@HIDDEN>
Commit:     Richard M. Stallman <rms@HIDDEN>
CommitDate: Mon Dec 27 17:18:28 2004 +0000

    [...]
    (insert-directory): When ls returns an error, test the version
    number to decide what the return code means.
    With --dired output format, detect and distinguish lines
    that are really error messages.
    (insert-directory-adj-pos): New function.

But no reason for this is given and I couldn't find a discussion of the
issue in the Emacs bug and devel list archives.  The doc string of
`insert-directory-adj-pos' says this: "File name position values
returned in ls --dired output count only stdout; they don't count the
error messages sent to stderr.  So this function converts to [sic] them
to real buffer positions."  But the heuristic for identifying error
messages (they begin at column 0) often fails in the case of filenames
with newlines.  I would expect that if `ls' raises an error that Emacs
should handle, there are better ways of displaying it.  So how about
removing this code?

>> > If -b is already present in ls options used by find-name-dired, then
>> > TRT is simply disable the reverting, no?  IOW, the
>> > dired-auto-toggle-b-switch option should have no effect on the Dired
>> > listing produced by these commands, and that should solve the problem.
>> > Or what am I missing?
>>=20
>> In fact, I was mistaken: when `dired--toggle-b-switch' is executed in
>> the Dired buffer created by `find-name-dired', it does not call
>> `dired-revert', because it sees that the -b switch is already being
>> used.  Somehow the fact that this function is called from
>> `post-command-hook' triggers `dired-revert' (or at least `dired-readin',
>> which erases the buffer but cannot read it back in because it's not in
>> the filesystem).  But I don't see what the trigger is.
>
> You should be able to figure that out by using debug-on-entry, I
> think.

Thanks, I'll try doing that.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 28 Feb 2026 17:37:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 28 12:37:10 2026
Received: from localhost ([127.0.0.1]:38727 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vwOFZ-0006BZ-Py
	for submit <at> debbugs.gnu.org; Sat, 28 Feb 2026 12:37:10 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:41024)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vwOFX-0006Ay-7d
 for 80499 <at> debbugs.gnu.org; Sat, 28 Feb 2026 12:37:08 -0500
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 1vwOFR-0003fP-Qa; Sat, 28 Feb 2026 12:37:01 -0500
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=lKqOyO/1TVSvKO3BDWKNGVVfTv0h+50hFw/1I+EKf60=; b=fjJArZ20u6wZ
 DKWu50YRciKcSTp/di4ZRsckAArl/tyT9W4ge4UpTpNgjZ+cdKhgM88JBC0SdK1oGCt4D+GgegYs1
 FcWPfKM+AFNOnqYQpOuGFKU/GUSuuYHu7bxb54QcH3FT+Of4FcT0ObAtPcedYuiNnJPB0fKOnTZzy
 55pMtVtOVvV/qh2FKUda4JRrdnBrhnfubA3ln/JTVWKhBkmrO0J5FbSrfwVAaRv65y+ahRKU/x1aG
 vFF8/tmeLDLC3sACbeRVQyQwEsNLJU93secBJtK1TtjgwIafZ+bqsMBfcvIOMSsjZ8py+NbPQ7t92
 59Jm5tekGyh04QwnHmpW0w==;
Date: Sat, 28 Feb 2026 19:36:56 +0200
Message-Id: <86tsv022iv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87o6l9vuci.fsf@HIDDEN> (message from Stephen Berman on Sat, 28
 Feb 2026 15:03:09 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN> <87o6l9vuci.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: fgunbin@HIDDEN,  80499 <at> debbugs.gnu.org
> Date: Sat, 28 Feb 2026 15:03:09 +0100
> 
> M-! touch "aC-qC-jb.txt"
> M-! ls -al --dired
> 
> Here is the `ls' output in *Messages*:
> 
>   total 0
>   drwxrwxr-x  2 steve steve  60 Feb 28 12:00 .
>   drwxrwxrwt 14 root  root  340 Feb 28 12:02 ..
>   -rw-rw-r--  1 steve steve   0 Feb 28 12:00 a
> b.txt
> //DIRED// 55 56 102 104 150 157
> //DIRED-OPTIONS// --quoting-style=literal
> 
> Now visit files.el and instrument `insert-directory-clean' for Edebug,
> then return to *scratch* and type `C-x d RET' to start debugging.  Note
> that now there is the buffer "bug#80499" containing the current Dired
> display of this directory, which is exactly the same as the above `ls'
> output.  Put a breakpoint on the following sexp (line 8333 in files.el
> of current master):
> 
> (while (< (point) end)
> 
> and type `b g'.  Then type `e' and in the minibuffer type `error-lines
> RET'; the value ((153 158)) should be displayed.
> 
> Now start stepping through the while loop.  On the first two iterations
> (over the Dired entries `.' and `..'), the `start' and `end' offsets are
> respectively incremented by 1 (the value of `beg', point-min of the
> Dired buffer): 56 57 and 103 105, and the character after `end' is in
> each case ?\C-j (i.e. ?\n), satisfying the if-condition for setting the
> `dired-filename' text property on the filename to t.
> 
> Now step through the iteration over the entry for "a\nb.txt".  The
> `start' offset is again incremented by 1 (151), but the `end' offset is
> adjusted for the intervening "error message" (the "b.txt" part of the
> filename) and has the value 163.  Now the character after `end' is ?R,
> which is in the offsets line at position 163 in the buffer "bug#80499",
> and the if-condition fails, and consequently the `dired-filename'
> property is set to nil for all positions in the buffer from point-min to
> the current (in this case last) `end' offset in the offsets line.  The
> result after completing the Edebug run is this display of buffer
> "bug#80499" (i.e., the filename is displayed with a literal newline and
> the part after the newline begins at column 0):
> 
>   /tmp/bug#80499:
>   drwxrwxr-x  2 steve steve  60 Feb 28 12:00 .
>   drwxrwxrwt 14 root  root  340 Feb 28 12:23 ..
>   -rw-rw-r--  1 steve steve   0 Feb 28 12:00 a
> b.txt

I think what you are basically saying is that the code works or fails
to work by sheer luck.  I indeed found several situations where a file
name a\nb.txt is not recognized and several others where it is.

I think the fundamental problem here is that the code treats the part
after the newline as "error message".  I can think of two possible
ideas of fixing this fundamental problem:

  . test the offsets provided by --dired _before_ correcting them by
    the last "error message", and only consider it an error message if
    the character after the uncorrected END offset is not one of
    '(?\n ?\s ?/ ?* ?@ ?% ?= ?|)
  . if that doesn't work reliably, separate stdout and stderr when
    running 'ls' (I actually don't understand why we need the error
    messages in the Dired buffer -- are they useful?); then this
    dilemma of whether something that starts at the line beginning is
    an error message or continuation of file name will not happen

(We could also detect real error messages by verifying that they start
with "ls: ", but this has complications, since we don't really know
what to expect before the colon, and then a file name like "a\nls: foo" 
is a legitimate file name, but looks like an error message.)

> > If -b is already present in ls options used by find-name-dired, then
> > TRT is simply disable the reverting, no?  IOW, the
> > dired-auto-toggle-b-switch option should have no effect on the Dired
> > listing produced by these commands, and that should solve the problem.
> > Or what am I missing?
> 
> In fact, I was mistaken: when `dired--toggle-b-switch' is executed in
> the Dired buffer created by `find-name-dired', it does not call
> `dired-revert', because it sees that the -b switch is already being
> used.  Somehow the fact that this function is called from
> `post-command-hook' triggers `dired-revert' (or at least `dired-readin',
> which erases the buffer but cannot read it back in because it's not in
> the filesystem).  But I don't see what the trigger is.

You should be able to figure that out by using debug-on-entry, I
think.

Thanks.




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

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


Received: (at 80499) by debbugs.gnu.org; 28 Feb 2026 14:03:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 28 09:03:34 2026
Received: from localhost ([127.0.0.1]:35752 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vwKur-0008PB-Nj
	for submit <at> debbugs.gnu.org; Sat, 28 Feb 2026 09:03:34 -0500
Received: from mout.gmx.net ([212.227.17.22]:57227)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vwKuo-0008Od-U0
 for 80499 <at> debbugs.gnu.org; Sat, 28 Feb 2026 09:03:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1772287390; x=1772892190; i=stephen.berman@HIDDEN;
 bh=VCcTGh9BPQmKbbZ4z2vaoHumozsLiA8Mb9GYTtkXGog=;
 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=Qjw/q4p0ryyQiSbiCvdWtxtTuxXkjjbmK323J20PIV2OU90li+DBkpXsH/U2EGrj
 +LL33fZvHJE7tRCDtRVsYvdeZj/zEosXM4Ys0IMd80mXb0suNeKFIjo8+2o9/GYmc
 LF9C4THDyfVDVJeaiA0As3FNdOYf8xD9QhwCDL8gw9HcxdDM2ZM0Z2JbrBrBDzxzY
 jJmhqSm/5GCCjc5x9fCH0tGBMSi9EVogp2HuSYRb6KKBJ2QxCJQzLZfMjp2MmMdtj
 v0bnwAv9N33wlpW6UatfrwPKUx1G4x8OB0jQXBJqt76Ws095ZTL3NApqEqE22yzXa
 yP/ZJnw6n92Ic1q5VQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOzOm-1wLYME2Xj2-00SffP; Sat, 28
 Feb 2026 15:03:10 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86wlzx4347.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN> <86wlzx4347.fsf@HIDDEN>
Date: Sat, 28 Feb 2026 15:03:09 +0100
Message-ID: <87o6l9vuci.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:BkveLq5hq9aJlXH2+4mG6qI9sRI7hbQOC8NP5NlgRsZLPX89kU3
 MERz2V2AWr/v5PaIPjWQnzDfkrHxOtx2JCYHmm8bvuxZEm45irZ0of8QoJRGBYfdrJU17Bp
 4dLaKLa6w9DGFFTAp4B9ZXVO2C3/MFLoZa2Yfg0+LJfMfntHnC9IN6jNHsoRTUszYQ6F9YN
 FuFMlzWu1/G7QRXWdkquA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:wDMC+oVdrnI=;XjyuHrJesBPDBRvHCwXWrUUCnZO
 ZFfC/cnJpsxEKogoA/5ngWj+1QdyG1D/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1uEPG6vMLYactwnix//LBeGONBkICqCYreh+0n7CHMTjXzgH+1CoK4waX
 hWnDphviTZ8JfVaJLRav3uUgSelhspRR7uiNv/a3xxrFV1wcdWzyiV5TL2AnODHsDFmN/NV0=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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: -0.3 (/)

On Sat, 28 Feb 2026 11:41:12 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Stephen Berman <stephen.berman@HIDDEN>
>> Cc: Filipp Gunbin <fgunbin@HIDDEN>,  80499 <at> debbugs.gnu.org
>> Date: Sat, 28 Feb 2026 01:18:09 +0100
>>=20
>> But adjusting the offsets does not always break
>> `dired-move-to-end-of-filename'.  The line in the Dired listing
>> containing the offsets (provided by the `ls' --dired option) begins at
>> column 0 with the string "//DIRED// ", and the first two characters are
>> one of those provided by the `ls' -F option.  Hence, filenames
>> containing newlines cause no problem for non-nil
>> `dired-auto-toggle-b-switch' as long as there are at most two character=
s
>> after the newline.  And indeed, all my testing leading up to commit
>> 9a56cf9194 involved filenames like "a\nb" (but with a real newline as
>> input), so they worked (i.e., the newline gets converted to "\n"), but
>> Filipp's example "a\nb.txt" is too long and doesn't work (though
>> e.g. "a\nb." does).  If Eli really did get the display "a\nb.txt", I
>> cannot explain it, unless in his version of Coreutils the format of the
>> offsets line is different.
>
> Yes, I tried this exact file name (and also others, like
> "line3\nbreak").  I just tried again, with yesterday's master, and I
> still don't see the problem.  It would be good to understand why I
> don't see the problem on my system before we discuss solutions.

I fully agree.

>> As for how to prevent this problem, I've thought of two alternatives.
>
> I'd like first understand the problem better, and try to see how to
> reproduce it on my system.  Would you mind describing the problems
> above in more detail, and step by step, so I could follow them in the
> output of "ls -al --dired"?  I'm afraid I got lost in the offsets you
> are talking about.  I also don't quite understand what does -F have to
> do with this: "emacs -Q" doesn't add -F to ls switches.

Ok.  First, in the shell do:

mkdir /tmp/bug#80499; cd /tmp/bug#80499
emacs -Q --eval "(setopt dired-auto-toggle-b-switch t)"

Next, in Emacs do:

M-! touch "aC-qC-jb.txt"
M-! ls -al --dired

Here is the `ls' output in *Messages*:

  total 0
  drwxrwxr-x  2 steve steve  60 Feb 28 12:00 .
  drwxrwxrwt 14 root  root  340 Feb 28 12:02 ..
  -rw-rw-r--  1 steve steve   0 Feb 28 12:00 a
b.txt
//DIRED// 55 56 102 104 150 157
//DIRED-OPTIONS// --quoting-style=3Dliteral

Now visit files.el and instrument `insert-directory-clean' for Edebug,
then return to *scratch* and type `C-x d RET' to start debugging.  Note
that now there is the buffer "bug#80499" containing the current Dired
display of this directory, which is exactly the same as the above `ls'
output.  Put a breakpoint on the following sexp (line 8333 in files.el
of current master):

(while (< (point) end)

and type `b g'.  Then type `e' and in the minibuffer type `error-lines
RET'; the value ((153 158)) should be displayed.

Now start stepping through the while loop.  On the first two iterations
(over the Dired entries `.' and `..'), the `start' and `end' offsets are
respectively incremented by 1 (the value of `beg', point-min of the
Dired buffer): 56 57 and 103 105, and the character after `end' is in
each case ?\C-j (i.e. ?\n), satisfying the if-condition for setting the
`dired-filename' text property on the filename to t.

Now step through the iteration over the entry for "a\nb.txt".  The
`start' offset is again incremented by 1 (151), but the `end' offset is
adjusted for the intervening "error message" (the "b.txt" part of the
filename) and has the value 163.  Now the character after `end' is ?R,
which is in the offsets line at position 163 in the buffer "bug#80499",
and the if-condition fails, and consequently the `dired-filename'
property is set to nil for all positions in the buffer from point-min to
the current (in this case last) `end' offset in the offsets line.  The
result after completing the Edebug run is this display of buffer
"bug#80499" (i.e., the filename is displayed with a literal newline and
the part after the newline begins at column 0):

  /tmp/bug#80499:
  drwxrwxr-x  2 steve steve  60 Feb 28 12:00 .
  drwxrwxrwt 14 root  root  340 Feb 28 12:23 ..
  -rw-rw-r--  1 steve steve   0 Feb 28 12:00 a
b.txt

Now delete this file, e.g. with `M-! rm /tmp/bug#80499/*', create the
following file in the directory: M-! touch "aC-qC-jb." and get its `ls
-la --dired' output:

  total 0
  drwxrwxr-x  2 steve steve  60 Feb 28 13:24 .
  drwxrwxrwt 14 root  root  340 Feb 28 13:24 ..
  -rw-rw-r--  1 steve steve   0 Feb 28 13:24 a
b.
//DIRED// 55 56 102 104 150 154
//DIRED-OPTIONS// --quoting-style=3Dliteral

Now as above step through the while loop in `insert-directory-clean'.
First, note that the value of `error-lines' is now ((153 158)).  The
first two iterations produce the same start and end offsets as before:
56 57 and 103 105, and on the third iteration `start' is also the same
as before (151) but now `end' is 157.  Position 157 in the buffer
"bug#80499" is the location of the second character ?/ in the offsets
line (i.e. the second "/" in "//DIRED//"), and since this character
satisfies the if-condition, the `dired-filename' property gets set to t.
Consequently, after completing the Edebug run, the buffer is displayed
like this:

  /tmp/bug#80499:
  drwxrwxr-x  2 steve steve  60 Feb 28 13:24 .
  drwxrwxrwt 14 root  root  340 Feb 28 13:56 ..
  -rw-rw-r--  1 steve steve   0 Feb 28 13:24 a\nb.

In short, as long as the character after the adjusted `end' offset is
either a newline, a space, or one of the characters added to the
directory entry display when `ls' is called with -F (e.g. "/"), then a
filename containg a newline gets correctly propertized for Dired and if
`dired-auto-toggle-b-switch' is non-nil, the newline is displayed as
"\n".  Note that my previous assertion this happens "as long as there
are at most two characters after the newline" was wrong: longer names
that satisfy the if-condition are fine.  But at least for me and Filipp
"a\nb.txt" does not satisfy it; so why does it satisfy it for you?

>> However, when using the find-*-dired commands, there is really no need
>> to set `dired-auto-toggle-b-switch' to non-nil, because `find-ls-option=
'
>> by default includes the -b ls flag, so the result of calling
>> `find-name-dired' etc. on a directory that contains (perhaps in
>> subdirectories) filenames with embedded newlines displays such filename=
s
>> with `\n' and not a literal newline.  Maybe it's sufficient to document
>> this (perhaps in PROBLEMS if it's considered a bug instead of a
>> limitation of the current implementation) and recommend setting (or
>> binding) `dired-auto-toggle-b-switch' to nil when using such commands.
>
> If -b is already present in ls options used by find-name-dired, then
> TRT is simply disable the reverting, no?  IOW, the
> dired-auto-toggle-b-switch option should have no effect on the Dired
> listing produced by these commands, and that should solve the problem.
> Or what am I missing?

In fact, I was mistaken: when `dired--toggle-b-switch' is executed in
the Dired buffer created by `find-name-dired', it does not call
`dired-revert', because it sees that the -b switch is already being
used.  Somehow the fact that this function is called from
`post-command-hook' triggers `dired-revert' (or at least `dired-readin',
which erases the buffer but cannot read it back in because it's not in
the filesystem).  But I don't see what the trigger is.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 28 Feb 2026 09:41:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 28 04:41:26 2026
Received: from localhost ([127.0.0.1]:34140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vwGpB-0008Rf-SR
	for submit <at> debbugs.gnu.org; Sat, 28 Feb 2026 04:41:26 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42490)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vwGp8-0008R8-Tf
 for 80499 <at> debbugs.gnu.org; Sat, 28 Feb 2026 04:41:23 -0500
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 1vwGp3-0001k4-JY; Sat, 28 Feb 2026 04:41:17 -0500
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=dfwT1mTUELg5Y1nd3xiqzSGBxVlLmQEP8P4NTZpO6+M=; b=n0DMk1GWHjtj
 gChpQk/DtKQMK+x4jU9gxlq58tNKaKlsPayYHNQq1UV9dQPh5AAHXbEFO6M0FuY9pWL+CA12sLbtG
 /Lf5CPxw0nMDdOczRum5vUJFOcjXgaiNRxHAez06/SZgb/kr7iMsqQTC8m4Sy1SG5Q1phUcn1uQEU
 L8h+gufK7pF66EjGVzTGlmaaBvVaH1G0Lhyn6tof74lKj4sSaaL2uSrpIdwN4s0WQcph4Ov1R+a+2
 C+EUz/hqAe2h+h/+BVo1s2RxfGx3xqM57za7b4EEu1+i3yUIzGmW6lmGc/NPqv1sM8F6h+IFkbKwP
 NHaHxi0HqRaQivx4Td/sfA==;
Date: Sat, 28 Feb 2026 11:41:12 +0200
Message-Id: <86wlzx4347.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <87342ld8la.fsf@HIDDEN> (message from Stephen Berman on Sat, 28
 Feb 2026 01:18:09 +0100)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <87342ld8la.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, fgunbin@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 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Cc: Filipp Gunbin <fgunbin@HIDDEN>,  80499 <at> debbugs.gnu.org
> Date: Sat, 28 Feb 2026 01:18:09 +0100
> 
> But adjusting the offsets does not always break
> `dired-move-to-end-of-filename'.  The line in the Dired listing
> containing the offsets (provided by the `ls' --dired option) begins at
> column 0 with the string "//DIRED// ", and the first two characters are
> one of those provided by the `ls' -F option.  Hence, filenames
> containing newlines cause no problem for non-nil
> `dired-auto-toggle-b-switch' as long as there are at most two characters
> after the newline.  And indeed, all my testing leading up to commit
> 9a56cf9194 involved filenames like "a\nb" (but with a real newline as
> input), so they worked (i.e., the newline gets converted to "\n"), but
> Filipp's example "a\nb.txt" is too long and doesn't work (though
> e.g. "a\nb." does).  If Eli really did get the display "a\nb.txt", I
> cannot explain it, unless in his version of Coreutils the format of the
> offsets line is different.

Yes, I tried this exact file name (and also others, like
"line3\nbreak").  I just tried again, with yesterday's master, and I
still don't see the problem.  It would be good to understand why I
don't see the problem on my system before we discuss solutions.

> As for how to prevent this problem, I've thought of two alternatives.

I'd like first understand the problem better, and try to see how to
reproduce it on my system.  Would you mind describing the problems
above in more detail, and step by step, so I could follow them in the
output of "ls -al --dired"?  I'm afraid I got lost in the offsets you
are talking about.  I also don't quite understand what does -F have to
do with this: "emacs -Q" doesn't add -F to ls switches.

> However, when using the find-*-dired commands, there is really no need
> to set `dired-auto-toggle-b-switch' to non-nil, because `find-ls-option'
> by default includes the -b ls flag, so the result of calling
> `find-name-dired' etc. on a directory that contains (perhaps in
> subdirectories) filenames with embedded newlines displays such filenames
> with `\n' and not a literal newline.  Maybe it's sufficient to document
> this (perhaps in PROBLEMS if it's considered a bug instead of a
> limitation of the current implementation) and recommend setting (or
> binding) `dired-auto-toggle-b-switch' to nil when using such commands.

If -b is already present in ls options used by find-name-dired, then
TRT is simply disable the reverting, no?  IOW, the
dired-auto-toggle-b-switch option should have no effect on the Dired
listing produced by these commands, and that should solve the problem.
Or what am I missing?




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

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


Received: (at 80499) by debbugs.gnu.org; 28 Feb 2026 00:18:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 27 19:18:28 2026
Received: from localhost ([127.0.0.1]:56902 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vw82N-0001vl-JM
	for submit <at> debbugs.gnu.org; Fri, 27 Feb 2026 19:18:28 -0500
Received: from mout.gmx.net ([212.227.17.20]:45625)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <stephen.berman@HIDDEN>)
 id 1vw82K-0001vE-HB
 for 80499 <at> debbugs.gnu.org; Fri, 27 Feb 2026 19:18:26 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net;
 s=s31663417; t=1772237890; x=1772842690; i=stephen.berman@HIDDEN;
 bh=HskZBrNrgj3emxpDGz6TNJRaE8J+XYGmFQyZ4m3Tf6s=;
 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=KPI7USmeBkgYzwaYGy7JndZZn7mWZVNU2wojJKFYuvASUk7SfXxV9Ldi+/vG8u58
 SCjiPAPtr/D0OfJK5xRXf4gH7w94PUF5allKJqIEUYmaBfa8bRR4zV2as8ZNCLTpG
 jrwBEh1UFAhnjZKGAfaD9wspmhpJPvyYp6RcK7Qh3A33y3R0QpyZUajrcJblPSds1
 43Ljr2Zykqchx6DmeJl5SEcdmWk+dfmBMsIThIUQeyx8h70Jnu+gj6AEn7jSpAQBs
 /5la5n+FMO56HoG6eZ+nnO4ITQxvXYdn9l8XAzMfWoooa9alMc16oSib+BwjFGG0a
 NuMn6nE7duWiW0Re0A==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N6KYb-1vclmV0Vxp-00ucnO; Sat, 28
 Feb 2026 01:18:10 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86tsv262oq.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
Date: Sat, 28 Feb 2026 01:18:09 +0100
Message-ID: <87342ld8la.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03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y4OVZ4+GajF
 TcUdjwQXdT+DSK//2bfjlviwVGKTd/yWiIJj9zVXz5XZ/J2Vh+3rFsH+zLdGc8Zp/kqNXK19I
 bJd/oFc4YJ7c0WWo5o1s9u1iVbhhmY9B3tGXE7bWpvE/ILB80yXUjjkQUB7k8cvhggKXCQuQ2
 t/DpCB8gLPJWzxVeLphz/9OPzHffHyUOjsSFcnt0lp1bmJpizYjZHgsgDyl2JHiER2oK3wXLc
 uh3Cd9tNGcM2B4CZwvaOPhMijf6jXnmOUiJiFbvpJn21EflMliojuskEYlJhlIu5d5Win4obw
 gbW0dYXaUPaQrPKRJ0CudtT9t/BqYxWs89bHmyIyWph2WarbcLg==
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Filipp Gunbin <fgunbin@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: -0.3 (/)

On Fri, 27 Feb 2026 14:55:19 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Filipp Gunbin <fgunbin@HIDDEN>
>> Cc: Stephen Berman <stephen.berman@HIDDEN>,  80499 <at> debbugs.gnu.org
>> Date: Fri, 27 Feb 2026 15:25:30 +0300
>>=20
>> On 27/02/2026 09:55 +0200, Eli Zaretskii wrote:
>>=20
>> >> Cc: stephen.berman@HIDDEN
>> >> From: Filipp Gunbin <fgunbin@HIDDEN>
>> >> Date: Fri, 27 Feb 2026 01:27:57 +0300
>> >>=20
>> >>=20
>> >> This is related to bug#79528.
>> >>=20
>> >> - src/emacs -Q --eval "(setopt dired-auto-toggle-b-switch t)"
>> >>=20
>> >> - Create a file with newline in name: M-! touch "a
>> >> b.txt"
>> >>=20
>> >> - Open dired, observe that -b switch is not added
>> >
>> > How do you see that?  Which variable did you examine?
>>=20
>> Visually, as I expect escapes like "a\nb.txt" instead of real newlines.
>
> Works here, with GNU ls of the version I reported.

Are you certain you tested with "b.txt" after the newline in the
filename?  If so, that would surprise and mystify me, for the reasons I
explain below.

>> >> >From what I can see, there's the following call chain:
>> >>=20
>> >> dired--toggle-b-switch -> dired--filename-with-newline-p ->
>> >> dired-move-to-end-of-filename which has:
>> >>=20
>> >> (goto-char (or (next-single-property-change (point) 'dired-filename)
>> >>=20
>> >> But dired-filename property is set only on "a" filename part, not on
>> >> "b.txt" part on the next line, so it has no chances.
>> >
>> > If that's what happens to you, I suspect you are not using GNU ls, or
>> > maybe there's a bug in GNU ls.  Because that's not what I see here
>> > with
>> >
>> >  $ ls --version
>> >  ls (GNU coreutils) 8.32
>> >  Copyright (C) 2020 Free Software Foundation, Inc.
>>=20
>> No, it's GNU ls (I've checked in edebug just to be sure):
>>=20
>> ls (GNU coreutils) 9.5
>> Copyright (C) 2024 Free Software Foundation, Inc.
>
> Then I'm afraid you or someone else will need to run the code under
> Edebug and see what's going on there.  I suggest beginning with runnin
> "ls -al --dired" and see how it markes the file names with embeddedg
> newlines.

I can reproduce Filipp's observations, both on current master under
GNU/Linux with Coreutils 9.8 and also with Coreutils 9.6 and a build
from master whose HEAD is commit 9a56cf9194, which introduced
`dired-auto-toggle-b-switch'.  At first I was perplexed by Filipp's
report, because it appeared to contradict the behavior I reliably
observed with commit 9a56cf9194.  But it turns out (as so often), that
my testing of the code in that commit was inadequate, and now I think
I've found out why the problem occurs, but I'm not sure how to fix it.

The problem arises in `insert-directory-clean', a subroutine of
`insert-directory' (which is called by `dired-insert-directory', which
is several links deep in every call chain starting from `dired' and
related commands).  In this function the `dired-filename' text property
gets added to each filename in the current directory, using the offsets
supplied by passing (via `dired-insert-directory') the `--dired -N'
options to the `ls' invocation in `insert-directory'.  In Dired, each
file entry in the listing begins with a space, and lines that do not
begin with a space are treated as error messages (supposed to have been
sent by `ls' to stderr).  The offsets accurately delimit "normal"
filenames, but if a filename contains a newline, the offsets are altered
if the part of the filename after the newline does not begin with a
space, and this leads to the reported problem: after adjusting the
offsets, the `dired-filename' property is given the value t if the
character immediately after the end offset is either a newline, a space
or one of the characters added by the `ls' -F option; otherwise, for all
filenames in the listing up to the current entry, `dired-filename' gets
set to nil, with the result that `dired-move-to-end-of-filename' fails
to find the real end of those filenames.

But adjusting the offsets does not always break
`dired-move-to-end-of-filename'.  The line in the Dired listing
containing the offsets (provided by the `ls' --dired option) begins at
column 0 with the string "//DIRED// ", and the first two characters are
one of those provided by the `ls' -F option.  Hence, filenames
containing newlines cause no problem for non-nil
`dired-auto-toggle-b-switch' as long as there are at most two characters
after the newline.  And indeed, all my testing leading up to commit
9a56cf9194 involved filenames like "a\nb" (but with a real newline as
input), so they worked (i.e., the newline gets converted to "\n"), but
Filipp's example "a\nb.txt" is too long and doesn't work (though
e.g. "a\nb." does).  If Eli really did get the display "a\nb.txt", I
cannot explain it, unless in his version of Coreutils the format of the
offsets line is different.

As for how to prevent this problem, I've thought of two alternatives.
One is to somehow ensure that the offsets line does not prevent setting
the `dired-filename' property to t; however, simply adding a newline
before that line is insufficient according to my initial testing.  The
other alternative is to refrain from adjusting the offets; this works
well for all filenames with newlines I've tested so far, but it's a
backward incompatible change (though I have never encountered real error
output from `ls' in a Dired listing and I don't even know how that might
arise).  I'll do more testing and if either approach seems promising,
will post patches, but of course I welcome suggestions for better
alternatives.

On Fri, 27 Feb 2026 09:55:17 +0200 Eli Zaretskii <eliz@HIDDEN> wrote:

>> Cc: stephen.berman@HIDDEN
>> From: Filipp Gunbin <fgunbin@HIDDEN>
>> Date: Fri, 27 Feb 2026 01:27:57 +0300
[...]=20
>> The second problem I see (it might have the same cause) is when you do
>> M-x find-name-dired RET a* RET in the same directory and in resulting
>> *Find* buffer just type "n" - the found file(s) just disappear.
>
> I think it's a separate problem.  It happens here, and only when
> dired-auto-toggle-b-switch is turned on.

Yes, this is a separate problem: it happens because
`dired--toggle-b-switch' (which is added to `post-command-hook' when
`dired-auto-toggle-b-switch' is non-nil) calls `dired-revert', and that
makes the Dired listing vanish.  The same thing also happens by calling
`find-name-dired' (or more generally `find-dired') with
`dired-auto-toggle-b-switch' nil and then doing `M-x: (dired-revert)'.
I think this has been reported to the bugtracker and AFAIR no solution
has been found yet (the basic problem is that the Dired listing produced
by find-*-dired does not correspond to a directory entry in the
filesystem, so there's nothing to revert to).

However, when using the find-*-dired commands, there is really no need
to set `dired-auto-toggle-b-switch' to non-nil, because `find-ls-option'
by default includes the -b ls flag, so the result of calling
`find-name-dired' etc. on a directory that contains (perhaps in
subdirectories) filenames with embedded newlines displays such filenames
with `\n' and not a literal newline.  Maybe it's sufficient to document
this (perhaps in PROBLEMS if it's considered a bug instead of a
limitation of the current implementation) and recommend setting (or
binding) `dired-auto-toggle-b-switch' to nil when using such commands.

Steve Berman




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

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


Received: (at 80499) by debbugs.gnu.org; 27 Feb 2026 12:55:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 27 07:55:33 2026
Received: from localhost ([127.0.0.1]:48391 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vvxNV-0003Lw-4A
	for submit <at> debbugs.gnu.org; Fri, 27 Feb 2026 07:55:33 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:35746)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vvxNS-0003LO-EK
 for 80499 <at> debbugs.gnu.org; Fri, 27 Feb 2026 07:55:30 -0500
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 1vvxNJ-0002o9-BL; Fri, 27 Feb 2026 07:55:22 -0500
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=jhDczO7DcUE7AIOY1nU7qx010M87kp8DuZstXprXQ3c=; b=RBELWtcmik/9
 spT2pgUqZteYOi77fV9clH1TXH+22AI0Qbfc4VzV1S/K2gblbg1QFeObApxLpoMEywBOo+YKbmI+Z
 AOiRSHB1AVleyw1aVzKyphbWDaGVPxBJ+LMQd5jHdPqAkx5gogoHQsq4JIG1cLzveB3CfgIjUekhI
 SS53/+0s7dfyP1Kq+PxxDlj9n+qXGiFTjPMYKwCSpVFqEojSDTnnhBZsevDSeYMgseMDI9lYIHZoR
 9nQsZGvgFfyM+amhmeKMSmBOnlG5fBq/p+YWfAz/pIXr9i9M3PIXi+yM4ikabg7s4fPyw6bMx0XHp
 8+cgTSBwQfQDRjQCktRHmg==;
Date: Fri, 27 Feb 2026 14:55:19 +0200
Message-Id: <86fr6m5oso.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>
In-Reply-To: <m1ecm6pe4l.fsf@HIDDEN> (message from Filipp Gunbin on Fri, 
 27 Feb 2026 15:25:30 +0300)
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
 <m1ecm6pe4l.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, stephen.berman@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 (---)

> From: Filipp Gunbin <fgunbin@HIDDEN>
> Cc: Stephen Berman <stephen.berman@HIDDEN>,  80499 <at> debbugs.gnu.org
> Date: Fri, 27 Feb 2026 15:25:30 +0300
> 
> On 27/02/2026 09:55 +0200, Eli Zaretskii wrote:
> 
> >> Cc: stephen.berman@HIDDEN
> >> From: Filipp Gunbin <fgunbin@HIDDEN>
> >> Date: Fri, 27 Feb 2026 01:27:57 +0300
> >> 
> >> 
> >> This is related to bug#79528.
> >> 
> >> - src/emacs -Q --eval "(setopt dired-auto-toggle-b-switch t)"
> >> 
> >> - Create a file with newline in name: M-! touch "a
> >> b.txt"
> >> 
> >> - Open dired, observe that -b switch is not added
> >
> > How do you see that?  Which variable did you examine?
> 
> Visually, as I expect escapes like "a\nb.txt" instead of real newlines.

Works here, with GNU ls of the version I reported.

> >> >From what I can see, there's the following call chain:
> >> 
> >> dired--toggle-b-switch -> dired--filename-with-newline-p ->
> >> dired-move-to-end-of-filename which has:
> >> 
> >> (goto-char (or (next-single-property-change (point) 'dired-filename)
> >> 
> >> But dired-filename property is set only on "a" filename part, not on
> >> "b.txt" part on the next line, so it has no chances.
> >
> > If that's what happens to you, I suspect you are not using GNU ls, or
> > maybe there's a bug in GNU ls.  Because that's not what I see here
> > with
> >
> >  $ ls --version
> >  ls (GNU coreutils) 8.32
> >  Copyright (C) 2020 Free Software Foundation, Inc.
> 
> No, it's GNU ls (I've checked in edebug just to be sure):
> 
> ls (GNU coreutils) 9.5
> Copyright (C) 2024 Free Software Foundation, Inc.

Then I'm afraid you or someone else will need to run the code under
Edebug and see what's going on there.  I suggest beginning with runnin
"ls -al --dired" and see how it markes the file names with embeddedg
newlines.




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

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


Received: (at 80499) by debbugs.gnu.org; 27 Feb 2026 12:25:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 27 07:25:44 2026
Received: from localhost ([127.0.0.1]:48263 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vvwud-0006q1-Vj
	for submit <at> debbugs.gnu.org; Fri, 27 Feb 2026 07:25:44 -0500
Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]:35225)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <fgunbin@HIDDEN>)
 id 1vvwub-0006pY-NG
 for 80499 <at> debbugs.gnu.org; Fri, 27 Feb 2026 07:25:42 -0500
Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51])
 by mailfout.stl.internal (Postfix) with ESMTP id 4AB2B1D00229;
 Fri, 27 Feb 2026 07:25:35 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-11.internal (MEProxy); Fri, 27 Feb 2026 07:25:35 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h=
 cc:cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:subject
 :subject:to:to; s=fm1; t=1772195135; x=1772281535; bh=esO0kxbVGV
 rj9uS88+51pjfsKVPNomt39HVCGdbICqE=; b=YtNC80gq1+v442IAoYEJU7mhA7
 ndmY+ItXRJND7SBkhD7l3442IoLuu4zZ60xRyaS05wqWDDRqy4dq2M9V8RVNP+vs
 rfqhx+ciZMnwJXdUBJlezEwUVOeEVOLBM6JrR+7TEU+0HwI7h6c6JOBXVQsm6uX+
 LVWEPccrWUoa3VuV5dfuipVMFjA7mfCa9CXHBPdL3ajm0vdrS/DvhKqAysJGV1QU
 z9KgVPUHDxwMDXvvft7aoUaDH5Q82mz4JANCiBRljS8zmpzHzC/tjLfJ28/OXlvv
 XiCtdJ29mK0Wpn8nRgXZ4IL5CsQVhFXUCS0wj3ruiP1fSfmH6ah0WfsHS/Pw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1772195135; x=1772281535; bh=esO0kxbVGVrj9uS88+51pjfsKVPNomt39HV
 CGdbICqE=; b=ROrfRSl355x6Z6IPSyR7FtfwImy6IS9iEk+M1xH+YCYNmZbLLqC
 pZn4KzLWGClZZ7bcYKsj4nlIUq9pcmvEiRUmoM4HKRy6O6+0NgLjYQQ+s3lc+SF4
 IXJXSjUZ5DVdc6O5yDrB7cz3wRyJNvay6obJe/4RKu/dCMb9B0wu4HlKTqkTcL7y
 Pd0KkKcdK2GVOLNTX+UwQ3X5r6RFQPzM3+d2nvhex1VYlAe2MCXSGLupm/4CW2Z5
 cKUDrJSuTeIbpJGSbJm53a/6Q+0FUblqh83fJwcyW7uWi6pbsVYx5Edv9YmsRvKL
 IGNWZ8N+UumZaMYH/T4VmIe63KHWR1iAF8Q==
X-ME-Sender: <xms:Po2haY1Vt92Rv15r42nyCMhvmu-CmfGFvFYABI4dQAmgWIh4Xcb8YA>
 <xme:Po2haagSuvPIeZ2kBzs-BzxhX86ugvB4rlnOjqKD2v2YXAp3p9U9PalgOnLMDrsmM
 LGQwixTxmUmg1F_CX44hrz_V1z0RznctPGKZ9wcAxK1Qu1aBwdd>
X-ME-Received: <xmr:Po2haeTpWgpqI4GmcjewI3L1ZVJLOstYkEDd4q5mKmETw6zR4qepOuJ-VKsrWg0y-TlLAQw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvgeekleelucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf
 gurhephffvvefujghffgffkfggtgesthdtredttdertdenucfhrhhomhephfhilhhiphhp
 ucfiuhhnsghinhcuoehfghhunhgsihhnsehfrghsthhmrghilhdrfhhmqeenucggtffrrg
 htthgvrhhnpeffhfejveeiieeiudetgfehffelieevfeeffedtkeelheeludefueeuudeh
 veeiffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe
 hfghhunhgsihhnsehfrghsthhmrghilhdrfhhmpdhnsggprhgtphhtthhopeefpdhmohgu
 vgepshhmthhpohhuthdprhgtphhtthhopeektdegleelseguvggssghughhsrdhgnhhurd
 horhhgpdhrtghpthhtohepshhtvghphhgvnhdrsggvrhhmrghnsehgmhigrdhnvghtpdhr
 tghpthhtohepvghlihiisehgnhhurdhorhhg
X-ME-Proxy: <xmx:Po2habjx0lVKcIzrPjK9cij7T6sERbAm_uKYgiFmUO1uMwcqx3gxzw>
 <xmx:Po2hae62_d-vWyBglC3ThgC-Psuk73zvJQFMukmZogcz3R5A_QRMvQ>
 <xmx:Po2haYA4WmOwS25l96i5ri2gm0eB8aU1BPlZCAiI3e4922JiwwGhHA>
 <xmx:Po2haVYYAOAvmmK4ATLOUdn_Gffg07X5z9YEKBDtfeKONcQ6Zp2m9A>
 <xmx:P42hafRzsulawBIrPzwgSSl_ELIktjyJvpeXd7njIdd3OAwPhZetwouu>
Feedback-ID: id48c41f1:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 27 Feb 2026 07:25:33 -0500 (EST)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80499: 31.0.50; dired-auto-toggle-b-switch does not work as
 expected
In-Reply-To: <86tsv262oq.fsf@HIDDEN>
References: <m1ms0vkumq.fsf@HIDDEN> <86tsv262oq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Fri, 27 Feb 2026 15:25:30 +0300
Message-ID: <m1ecm6pe4l.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.8 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On 27/02/2026 09:55 +0200,
 Eli Zaretskii wrote: >> Cc: stephen.berman@HIDDEN
 >> From: Filipp Gunbin >> Date: Fri, 27 Feb 2026 01:27:57 +0300 >> >> >>
 This is related to bug#79528. >> >> - src/emacs -Q --eval "(setopt
 dired-auto-toggle-b-switch t [...] 
 Content analysis details:   (1.8 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.2 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [202.12.124.144 listed in sa-accredit.habeas.com]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [202.12.124.144 listed in list.dnswl.org]
 0.3 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [202.12.124.144 listed in bl.score.senderscore.com]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (fgunbin[at]fastmail.fm)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 80499
Cc: 80499 <at> debbugs.gnu.org, Stephen Berman <stephen.berman@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: -0.2 (/)

On 27/02/2026 09:55 +0200, Eli Zaretskii wrote:

>> Cc: stephen.berman@HIDDEN
>> From: Filipp Gunbin <fgunbin@HIDDEN>
>> Date: Fri, 27 Feb 2026 01:27:57 +0300
>> 
>> 
>> This is related to bug#79528.
>> 
>> - src/emacs -Q --eval "(setopt dired-auto-toggle-b-switch t)"
>> 
>> - Create a file with newline in name: M-! touch "a
>> b.txt"
>> 
>> - Open dired, observe that -b switch is not added
>
> How do you see that?  Which variable did you examine?

Visually, as I expect escapes like "a\nb.txt" instead of real newlines.

>> >From what I can see, there's the following call chain:
>> 
>> dired--toggle-b-switch -> dired--filename-with-newline-p ->
>> dired-move-to-end-of-filename which has:
>> 
>> (goto-char (or (next-single-property-change (point) 'dired-filename)
>> 
>> But dired-filename property is set only on "a" filename part, not on
>> "b.txt" part on the next line, so it has no chances.
>
> If that's what happens to you, I suspect you are not using GNU ls, or
> maybe there's a bug in GNU ls.  Because that's not what I see here
> with
>
>  $ ls --version
>  ls (GNU coreutils) 8.32
>  Copyright (C) 2020 Free Software Foundation, Inc.

No, it's GNU ls (I've checked in edebug just to be sure):

ls (GNU coreutils) 9.5
Copyright (C) 2024 Free Software Foundation, Inc.

>> The second problem I see (it might have the same cause) is when you do
>> M-x find-name-dired RET a* RET in the same directory and in resulting
>> *Find* buffer just type "n" - the found file(s) just disappear.
>
> I think it's a separate problem.  It happens here, and only when
> dired-auto-toggle-b-switch is turned on.

Yes, only when it's turned on.




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

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


Received: (at 80499) by debbugs.gnu.org; 27 Feb 2026 07:55:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 27 02:55:28 2026
Received: from localhost ([127.0.0.1]:46938 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vvsh5-0004C7-Py
	for submit <at> debbugs.gnu.org; Fri, 27 Feb 2026 02:55:28 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51704)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vvsh3-00047d-7b
 for 80499 <at> debbugs.gnu.org; Fri, 27 Feb 2026 02:55:26 -0500
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 1vvsgx-000163-ND; Fri, 27 Feb 2026 02:55:19 -0500
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=OE1UL80YkISoMWcUKuPkp4og3raAUTXkjak2QSs7EN8=; b=g0thylGcsApx
 mrXiFpb4WmCHkF5AAXifS1+E9+vj1F+1dXGwuk+Rv1Lx3xf6TKh8EuaxGtXbwesFaPdFpIE0eZgky
 HH1Y0JLKbI8r9zYt2OFA7BPf07qix9jixJPF3Sv21QHpsSXjzC3lzGObV22PqrrpBPUxY+E6CkMMn
 irh07EIybX8yHpdAwO4XAb1VlWuzfp3d3e+JbdnBRrrHFk6NupaGg9kM2fF2A/ctDFVy1iQi8VxVS
 fpTnteKjIlPmU6/QD3ktsnJZKBpSjF2e5oxVMEz/CeIj1IzBxdXbntbnzko1J99Xpx4V7tIuhdqTg
 eNbGLziB8Yf3Xu8C7le5HQ==;
Date: Fri, 27 Feb 2026 09:55:17 +0200
Message-Id: <86tsv262oq.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>,
 Stephen Berman <stephen.berman@HIDDEN>
In-Reply-To: <m1ms0vkumq.fsf@HIDDEN> (message from Filipp Gunbin on Fri, 
 27 Feb 2026 01:27:57 +0300)
Subject: Re: bug#80499: 31.0.50;
 dired-auto-toggle-b-switch does not work as expected
References: <m1ms0vkumq.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80499
Cc: 80499 <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 (---)

> Cc: stephen.berman@HIDDEN
> From: Filipp Gunbin <fgunbin@HIDDEN>
> Date: Fri, 27 Feb 2026 01:27:57 +0300
> 
> 
> This is related to bug#79528.
> 
> - src/emacs -Q --eval "(setopt dired-auto-toggle-b-switch t)"
> 
> - Create a file with newline in name: M-! touch "a
> b.txt"
> 
> - Open dired, observe that -b switch is not added

How do you see that?  Which variable did you examine?

> >From what I can see, there's the following call chain:
> 
> dired--toggle-b-switch -> dired--filename-with-newline-p ->
> dired-move-to-end-of-filename which has:
> 
> (goto-char (or (next-single-property-change (point) 'dired-filename)
> 
> But dired-filename property is set only on "a" filename part, not on
> "b.txt" part on the next line, so it has no chances.

If that's what happens to you, I suspect you are not using GNU ls, or
maybe there's a bug in GNU ls.  Because that's not what I see here
with

 $ ls --version
 ls (GNU coreutils) 8.32
 Copyright (C) 2020 Free Software Foundation, Inc.

> The second problem I see (it might have the same cause) is when you do
> M-x find-name-dired RET a* RET in the same directory and in resulting
> *Find* buffer just type "n" - the found file(s) just disappear.

I think it's a separate problem.  It happens here, and only when
dired-auto-toggle-b-switch is turned on.

Stephen, could you please look into these issues?




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

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


Received: (at submit) by debbugs.gnu.org; 26 Feb 2026 22:28:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 26 17:28:11 2026
Received: from localhost ([127.0.0.1]:43977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vvjq7-00009R-6M
	for submit <at> debbugs.gnu.org; Thu, 26 Feb 2026 17:28:11 -0500
Received: from lists.gnu.org ([2001:470:142::17]:36716)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <fgunbin@HIDDEN>)
 id 1vvjq4-000093-CT
 for submit <at> debbugs.gnu.org; Thu, 26 Feb 2026 17:28:09 -0500
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 <fgunbin@HIDDEN>)
 id 1vvjpy-0000HB-Vr
 for bug-gnu-emacs@HIDDEN; Thu, 26 Feb 2026 17:28:03 -0500
Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <fgunbin@HIDDEN>)
 id 1vvjpx-0006aQ-BW
 for bug-gnu-emacs@HIDDEN; Thu, 26 Feb 2026 17:28:02 -0500
Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
 by mailfout.stl.internal (Postfix) with ESMTP id 3C9181D001BF
 for <bug-gnu-emacs@HIDDEN>; Thu, 26 Feb 2026 17:28:00 -0500 (EST)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-02.internal (MEProxy); Thu, 26 Feb 2026 17:28:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h=
 cc:content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1;
 t=1772144880; x=1772231280; bh=MuNXp7463d10meqemy76ioDNBivxPZhD
 Z6HyJ33x6nk=; b=OaGALZe7X1IpFyHLi3YHl9OlJtYjyRDU3SHmPCmL82N7ZkLG
 CLDuldg3sf00lt6k9lQ+Cen9tgTe7adRf9oahpch71Xnvj+Z+ntbz7VlicsGKIl7
 QcSrkIWKGHZ2BiYzOwqxWxsxWCqPfyB33jkAK7JnB1C6m4ikOcIXd5giOpoTJ1Ft
 nk6Ryumcbso2rbPNkvkqd9rH/qFylLmDtbbptrgejNLa9LAgUpa3fR20fyGZXwlW
 kbmb2GgMB4pkLfds1VgGLw7N7U7HEnkyXBBPoEOv5pkIBfvyqokslt/j/XZV06Xi
 u//OgzWTOdX7q6CjQQ3BlS0eneZICPGo65COtA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1772144880; x=
 1772231280; bh=MuNXp7463d10meqemy76ioDNBivxPZhDZ6HyJ33x6nk=; b=h
 uS9gsP/rHdgp0lbGrXrCoU5e4Z/yWkeM0e1cQNbiM7DpX11xs+0824UYRgQjDtob
 y9kVuRG49Fp3a7Vt4QPyIbG6Vy5UR2eWWaD/zUH3twHQLjboPK8PGV4QSXs3JzQk
 OKtRrG3BIYekgIlN9FiB0rD6OkebnXlDjjJeInWyB4TzmdX0Z378Pjwa55Fsi+VZ
 UD8t9toEUKgk0oi8XbKpihooMO7jjbRQZ3Cl+59IrG4HBv1vUn8v68iZct0jCHd9
 rNu+ikSpHeFok1b1FgttxzVFUqz74G49c5nJJeXMF8SV5BN9DoFfKDjEQPNPinEn
 DYQsv5PNEtuz7UUtqEM0Q==
X-ME-Sender: <xms:8MigaWUpk5eoEYrWYMqByvqViwyGl4ZSJUlZTmJ0B9KMORWfc-B2Ew>
 <xme:8MigaYfvkvIwmCj07ioAbBY0lp78-VVM5tr6vVm9RWJmMSK79FdiBPtHJhaan34KQ
 vEz3T81dTIz_5gyZ_UTnEzFvP2Ac1PIn0dbw83qdTFeDPnRO-jOTA>
X-ME-Received: <xmr:8MigaVcT6DZtug-9yT8kWSqaqoylG8GkXtlCGcdiRxq-ARRFKfpOPtheeFz-D4O5HWCAM8CQ0pULkmzPEecKLWEH5k2zrMy97IbtSOVZHQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvgeejvdekucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucenucfjughrpefhvffufgffkfggtgesthdtredttdertd
 enucfhrhhomhephfhilhhiphhpucfiuhhnsghinhcuoehfghhunhgsihhnsehfrghsthhm
 rghilhdrfhhmqeenucggtffrrghtthgvrhhnpeetkefggfejudejkeevheduteffudffje
 eutdevveefueevgfeiieeuueelkeduudenucevlhhushhtvghrufhiiigvpedtnecurfgr
 rhgrmhepmhgrihhlfhhrohhmpehfghhunhgsihhnsehfrghsthhmrghilhdrfhhmpdhnsg
 gprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqdhg
 nhhuqdgvmhgrtghssehgnhhurdhorhhg
X-ME-Proxy: <xmx:8MigaaJ6BM9asRvoWgyXZsg2fRtISGUM71Wm9HJ5GPiHpaPFGM9XEA>
 <xmx:8MigaUIukDCcAOiFYDkpWYevW7v341sxlJThqUgoXgdoo2Mcd67pew>
 <xmx:8MigaUF_QIDRj1K2nePclCbHLNEa_A635il_SI2bQJCynhpuhnF3Lg>
 <xmx:8MigaRmK29zCtpFQwdAdwp7NjLKZjPEBC9ntASM_GraccCS_hNM3cw>
 <xmx:8MigaaXfBY0GJ6nNgR0vOPCmbVV_Z6d-p_dREYERFhavwm3nMlk9vsle>
Feedback-ID: id48c41f1:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Thu, 26 Feb 2026 17:27:59 -0500 (EST)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; dired-auto-toggle-b-switch does not work as expected
User-Agent: Gnus/5.13 (Gnus v5.13)
X-Debbugs-Cc: stephen.berman@HIDDEN
Mail-Followup-To: bug-gnu-emacs@HIDDEN
Date: Fri, 27 Feb 2026 01:27:57 +0300
Message-ID: <m1ms0vkumq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=202.12.124.144; envelope-from=fgunbin@HIDDEN;
 helo=fout-b1-smtp.messagingengine.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.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_VALIDITY_RPBL_BLOCKED=0.306,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.668, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 3.0 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: This is related to bug#79528. - src/emacs -Q --eval "(setopt
 dired-auto-toggle-b-switch t)" - Create a file with newline in name: M-!
 touch "a b.txt" 
 Content analysis details:   (3.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (fgunbin[at]fastmail.fm)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 2.0 SPOOFED_FREEMAIL       No description available.
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: -0.0 (/)


This is related to bug#79528.

- src/emacs -Q --eval "(setopt dired-auto-toggle-b-switch t)"

- Create a file with newline in name: M-! touch "a
b.txt"

- Open dired, observe that -b switch is not added

From what I can see, there's the following call chain:

dired--toggle-b-switch -> dired--filename-with-newline-p ->
dired-move-to-end-of-filename which has:

(goto-char (or (next-single-property-change (point) 'dired-filename)

But dired-filename property is set only on "a" filename part, not on
"b.txt" part on the next line, so it has no chances.

The second problem I see (it might have the same cause) is when you do
M-x find-name-dired RET a* RET in the same directory and in resulting
*Find* buffer just type "n" - the found file(s) just disappear.

And as a reminder to myself - I found this when trying to delete a file
with spaces in the name from *Find* buffer, check this when this bug is
resolved.

Thanks.


In GNU Emacs 31.0.50 (build 34, aarch64-apple-darwin25.3.0, NS
 appkit-2685.40 Version 26.3 (Build 25D125)) of 2026-02-25 built on
 mac2598okko.local
Repository revision: 5b7593598c3a794cfbe78d37fd1c8262e2a1c04a
Repository branch: master
System Description:  macOS 26.3

Configured using:
 'configure --enable-check-lisp-object-type --with-file-notification=no
 --with-native-compilation=no'

Configured features:
ACL GLIB GNUTLS LCMS2 LIBXML2 MODULES NS PDUMPER PNG RSVG SQLITE3
THREADS TOOLKIT_SCROLL_BARS WEBP XIM ZLIB

Important settings:
  value of $LC_COLLATE: ru_RU.UTF-8
  value of $LC_CTYPE: ru_RU.UTF-8
  value of $LANG: ru_RU.UTF-8
  locale-coding-system: utf-8-unix




Acknowledgement sent to Filipp Gunbin <fgunbin@HIDDEN>:
New bug report received and forwarded. Copy sent to stephen.berman@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to stephen.berman@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#80499; 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: Fri, 26 Jun 2026 11:30:05 UTC

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