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>; dated Thu, 26 Feb 2026 22:29:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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, 27 Feb 2026 12:30:03 UTC

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