Subject: bug#41097: 28.0.50; (dired-toggle-marks) not working after copy

From: Tomas Nordin <[email-masked]>
Date: Sun, 10 May 2020 11:25:26 +0200

Jean Louis <[email-masked]> writes:

> * Michael Heerdegen <[email-masked]> [2020-05-09 03:26]:
>> Jean Louis <[email-masked]> writes:
>> 
>> > emacs -Q
>> >
>> > C-x C-f to /tmp directory
>> > C-x 3 to make 2 windows vertical
>> > in other directory, make new directory like /tmp/new
>> > create file in /tmp or choose any file with m, marking it
>> > use C to copy to /tmp/new
>> > C-x o to other window where file is copied, it has C mark
>> > press t to toggle, it is not working
>> 
>> Note that (docstring):
>> 
>>   "Files marked with other flags (such as ‘D’) are not affected."
>> 
>> You must unmark the copied files (the C mark) for toggling to have an
>> effect on them.  Is that your problem?
>> 
>> Michael.
>
> Problem is explained, after copy of marked files in the neighboring
> window, the key `t' for `dired-toggle-marks' don't work, as `t' is not
> marking those files in the neighboring window.
>
> I have to kill the window and enter directory again to be able to mark
> the files with `t'

You could also try to hit `U' at this point instead of killing window
and enter directory again, to run dired-unmark-all-marks. After that the
toggling should do what you expect.

> Jean