bug#81522: 32.0.50; dired-auto-toggle-b-switch problem with subdirectory and custom switches

Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
On Sat, 15 Aug 2026 16:06:29 +0300 Eli Zaretskii <[email protected]> wrote:

> Ping!  Stephen, could you please chime in?

I don't have anything more to add to what I already wrote in bug#81295,
starting with message #20 linked below.  TL;DR: I posted a fix for the
problem described below, but Filipp didn't like it, and he sketched an
alternative that I did not understand well enough to implement myself
but he didn't have time to implement either.  I would have just pushed
my fix and left the bug open, but Filipp preferred that I only push my
other changes to handle file names with newlines in subdirs and close
bug#81295, which I agreed to after adding a warning display when the
unfixed bug is triggered, and Filipp opened this bug for that unfixed
bug.  So now the ball is in his court.

Steve Berman

>> Cc: [email protected]
>> Date: Sat, 01 Aug 2026 12:53:31 +0300
>> From: Eli Zaretskii <[email protected]>
>> 
>> > From: Filipp Gunbin <[email protected]>
>> > Date: Thu, 30 Jul 2026 18:19:38 +0300
>> > 
>> > This is a follow up to bug#81295, the relevant discussion is starting
>> > from this message:
>> > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81295#20.
>> > 
>> > In particular, here's some analysis and a possible way of fixing it:
>> > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81295#29.
>> > 
>> > 
>> > - 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 C-u i RET on directory '2' to open it in the same buffer.  In
>> >   bug#81295 the case of just "i" was fixed, this bug is about the case
>> >   with custom switches.
>> > 
>> > - Observe that the subdir is not inserted at all, and a warning is
>> >   displayed.  This happens only when 2 contains file with newlines.
>> > 
>> > Thanks.
>> 
>> Thanks, adding Stephen to the discussion.
>> 
>> > In GNU Emacs 32.0.50 (build 17, aarch64-apple-darwin25.5.0, NS
>> >  appkit-2685.60 Version 26.5.2 (Build 25F84)) of 2026-07-30 built on
>> >  mac2598
>> > Repository revision: fb6ad8aa780df52b01dc018a283b11db33ded906
>> > Repository branch: master
>> > System Description: macOS 26.5.2
>> > 
>> > 
>> > 
>> > 
>> 
>> 
>> 
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.