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

From: Drew Adams <[email-masked]>
Date: Fri, 8 May 2020 18:50:04 -0700 (PDT)

>   "Files marked with other flags (such as ‘D’) are not affected."

Yes.  Files marked with `C' are not affected.

If you want the copies to be marked with `*'
(instead of `C') in the target directory then
set or bind `dired-keep-marker-copy' to `t'
for the copy operation.  Otherwise the mark
used is `C'.

> You must unmark the copied files (the C mark)
> for toggling to have an effect on them.

You can.  But you need not unmark files that
are marked with another mark, if you want them
marked normally (or in some other way).

You can instead use `* c' to change marks of
one kind (e.g. `C') to marks of another kind
(e.g. `*').

The prompts for this use `read-char', so it is
very quick (no need to hit `RET').

This is an important feature, usable for more
than one purpose.  You can use it, for example,
to save a set of marks and then restore them
later, or to merge (union) multiple sets of
marks.

To save and restore: change `*' marks to some
new (unused) char, e.g. `+', and later change
the `+' marks back to `*'.
___

Dired has lots of handy things like this, some
of which are not known too well.  Another
handy one is `M-DEL' (aka `M-<backspace>').
It unmarks a particular mark (for all files
listed in the buffer).  Just hit `RET' to
remove all marks, of any kind.

(`RET' is read by `read-char', just like any
other char.  In this case, the char is Control-M,
aka carriage return.)