GNU bug report logs - #41097
28.0.50; (dired-toggle-marks) not working after copy

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Tue, 5 May 2020 15:35:01 UTC

Severity: minor

Found in version 28.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 41097 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Michael Heerdegen <michael_heerdegen <at> web.de>, Jean Louis <bugs <at> gnu.support>
Cc: 41097 <at> debbugs.gnu.org, Arthur Miller <arthur.miller <at> live.com>
Subject: RE: bug#41097: 28.0.50; (dired-toggle-marks) not working after copy
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.)




This bug report was last modified 5 years and 86 days ago.

Previous Next


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