* bug#21746: 24.5; purpose of dired-keep-marker-copy?
@ 2015-10-23 19:44 Roland Winkler
2015-10-23 20:30 ` Drew Adams
0 siblings, 1 reply; 37+ messages in thread
From: Roland Winkler @ 2015-10-23 19:44 UTC (permalink / raw)
To: 21746
While I have used emacs for many years, I have never figured out a
reason why copying a file in dired gives the copied file a marker
`C'. So today I wanted to find out, but I failed: the docstring of
dired-do-copy does not explain it, dired-keep-marker-copy does not
explain it, and in the emacs info manual I could not find anything
useful either. What is the purpose of this feature? It appears to
me that it is a feature for experts which is at best distracting for
ordinary users. I suggest: either explain it somewhere that is not
too hard to find or give dired-keep-marker-copy a default value of
nil (and similar for dired-keep-marker-hardlink,
dired-keep-marker-symlink).
In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2015-05-27 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
System Description: Ubuntu 14.04.3 LTS
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-23 19:44 bug#21746: 24.5; purpose of dired-keep-marker-copy? Roland Winkler
@ 2015-10-23 20:30 ` Drew Adams
2015-10-23 20:54 ` Roland Winkler
2015-10-24 6:10 ` Eli Zaretskii
0 siblings, 2 replies; 37+ messages in thread
From: Drew Adams @ 2015-10-23 20:30 UTC (permalink / raw)
To: Roland Winkler, 21746
> I have never figured out a
> reason why copying a file in dired gives the copied file a marker
> `C'.
The reason (IMO) is that the marker indicates what the
operation was, so you can easily identify - *and then
operate on* the files that were copied (or whatever
the operation was).
What might be missing for you is this bit of info:
`* c' lets you change the char that is used for a given
mark. So you can, for example, change all `C' marks at
a given moment to, say, `*' marks, and then use any
action on the marked files (which acts on `*'-marked
files). Or change it to `D' and then delete the flagged
files.
Because mark `C' is used, there is no confusion with
files that might be marked with `*' or any other mark.
You can have any number of different marks at any time,
giving them any conceptual meaning you like. Change
any of them to `*' to convert their files and dirs to
a set that you then act on in some way.
Dunno how much of this is documented in the manual,
but once you look at `C-h m' and then its mention
of `* c', you can pretty much imagine how it can be
put to good use.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-23 20:30 ` Drew Adams
@ 2015-10-23 20:54 ` Roland Winkler
2015-10-23 21:57 ` Drew Adams
2015-10-24 6:10 ` Eli Zaretskii
1 sibling, 1 reply; 37+ messages in thread
From: Roland Winkler @ 2015-10-23 20:54 UTC (permalink / raw)
To: Drew Adams; +Cc: 21746
On Fri Oct 23 2015 Drew Adams wrote:
> What might be missing for you is this bit of info:
> `* c' lets you change the char that is used for a given
> mark. So you can, for example, change all `C' marks at
> a given moment to, say, `*' marks, and then use any
> action on the marked files (which acts on `*'-marked
> files). Or change it to `D' and then delete the flagged
> files.
Thank you, indeed I was missing this piece of info. I am just
wondering: how often are you using this? Is this a feature which
should be exposed to all emacs beginners? If yes, it needs to be
documented better.
> Dunno how much of this is documented in the manual, but once you
> look at `C-h m' and then its mention of `* c', you can pretty much
> imagine how it can be put to good use.
Yes, you are probably right. dired-change-marks bound to `* c'
seems to be the command that needs to be advertised better in order
to make these marks useful. (In my every-day usage of dired,
I still do not see actual benefits from this feature.)
Roland
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-23 20:54 ` Roland Winkler
@ 2015-10-23 21:57 ` Drew Adams
2015-10-24 1:20 ` Roland Winkler
2015-10-24 5:26 ` Eli Zaretskii
0 siblings, 2 replies; 37+ messages in thread
From: Drew Adams @ 2015-10-23 21:57 UTC (permalink / raw)
To: Roland Winkler; +Cc: 21746
> Thank you, indeed I was missing this piece of info. I am just
> wondering: how often are you using this? Is this a feature which
> should be exposed to all emacs beginners? If yes, it needs to be
> documented better.
There is a lot in Dired that I think should be exposed/documented
better/more. By default we don't even load dired-x.el or
dired-aux.el, and they provide lots of stuff useful even for
beginners, including lots of menus.
I would be in favor of our loading both of these Dired libraries
by default. There is lots in Dired that users can benefit from,
but they are typically unaware of it.
(Also, we provide only rudimentary font-lock highlighting.)
> > Dunno how much of this is documented in the manual, but once you
> > look at `C-h m' and then its mention of `* c', you can pretty much
> > imagine how it can be put to good use.
>
> Yes, you are probably right. dired-change-marks bound to `* c'
> seems to be the command that needs to be advertised better in order
> to make these marks useful. (In my every-day usage of dired,
> I still do not see actual benefits from this feature.)
Marking with `C' is still useful, even if you never do
anything with those marks. It provides a clear indication
of the copied files.
You can always remove just the `C' marks (using `M-DEL',
aka `<M-backspace>'), if they get in your way. Or remove
all marks (using `C-u M-DEL'). `M-DEL' is another key that
is not as well known as it should be, IMO.
All in all, we don't advertise much of what Dired has to offer.
(FWIW, Stefan made it clear that he never uses Dired.)
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-23 21:57 ` Drew Adams
@ 2015-10-24 1:20 ` Roland Winkler
2015-10-24 8:04 ` Drew Adams
2015-10-24 5:26 ` Eli Zaretskii
1 sibling, 1 reply; 37+ messages in thread
From: Roland Winkler @ 2015-10-24 1:20 UTC (permalink / raw)
To: Drew Adams; +Cc: 21746
On Fri Oct 23 2015 Drew Adams wrote:
> There is a lot in Dired that I think should be exposed/documented
> better/more. By default we don't even load dired-x.el or
> dired-aux.el, and they provide lots of stuff useful even for
> beginners, including lots of menus.
>
> I would be in favor of our loading both of these Dired libraries
> by default. There is lots in Dired that users can benefit from,
> but they are typically unaware of it.
There is a big difference between exposing and documenting more
features from dired. I immediately agree on better documentation of
dired features. But I am not sure it will make new emacs users
happy when they get overwhelmed by features they do not understand.
Advanced users, on the other hand, know how to read the manuals and
then get the customization they want.
> Marking with `C' is still useful, even if you never do anything
> with those marks. It provides a clear indication of the copied
> files.
That's exactly why these C's are irritating and inconsistent: the
properly documented marks `*' and `D' serve the purpose of
indicating that an action _will be_ performed on certain files. The
C's indicate that an action _has been_ performed and they get into
the way when you are using the other marks.
Say, before marking files for some new action I type `g'
(revert-buffer). If this gives me an unmodified buffer, there are
no left-over marks floating around that I have overlooked. The C's
are just in the way for how marks are used otherwise.
Roland
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 1:20 ` Roland Winkler
@ 2015-10-24 8:04 ` Drew Adams
2015-10-24 8:11 ` Eli Zaretskii
2015-10-24 9:35 ` Andreas Schwab
0 siblings, 2 replies; 37+ messages in thread
From: Drew Adams @ 2015-10-24 8:04 UTC (permalink / raw)
To: Roland Winkler; +Cc: 21746
> > There is a lot in Dired that I think should be exposed/documented
> > better/more. By default we don't even load dired-x.el or
> > dired-aux.el, and they provide lots of stuff useful even for
> > beginners, including lots of menus.
> >
> > I would be in favor of our loading both of these Dired libraries
> > by default. There is lots in Dired that users can benefit from,
> > but they are typically unaware of it.
>
> There is a big difference between exposing and documenting more
> features from dired.
We generally don't document stuff in the manual that is not
exposed by default. Loading dired-x.el and dired-aux.el
along with dired.el would help users, IMO. (We are not in
1985 anymore, when it might have made sense to reduce the
default footprint of Dired.)
> I immediately agree on better documentation of
> dired features. But I am not sure it will make new emacs users
> happy when they get overwhelmed by features they do not understand.
> Advanced users, on the other hand, know how to read the manuals and
> then get the customization they want.
There is no overwhelming by dired-x.el or dired-aux.el.
No one requires anyone to use or even be aware of a
particular command or key that is available.
The proof: `* c' has been available to you since Day One,
as part of dired.el, and you admit that you just learned
about it today. So clearly its presence did not overwhelm
you all these years. ;-)
> > Marking with `C' is still useful, even if you never do anything
> > with those marks. It provides a clear indication of the copied
> > files.
>
> That's exactly why these C's are irritating and inconsistent: the
> properly documented marks `*' and `D' serve the purpose of
> indicating that an action _will be_ performed on certain files.
No, they just mark files, in particular ways (different ways).
They indicate that actions _might_ be performed on the files.
> The C's indicate that an action _has been_ performed
And that actions might be performed on the files they mark.
Via `* c'.
There is nothing unique about `C' marks in that context.
Once you know about `* c' you know that any mark can serve to
both (a) mark files in a particular way, distinguishing them
and (b) allow you to act on them (via `* c'). You can, in
effect, temporarily tag sets of files in different ways
(using different marks), and then act on them.
> and they get into the way when you are using the other marks.
No, not in terms of actions that use those marks. An action
that acts on `*' marks or `D' marks does not act on `C' marks.
(I assume you meant only `*' and `D' by "the other marks",
though there can be any number of other marks.)
> Say, before marking files for some new action I type `g'
> (revert-buffer). If this gives me an unmodified buffer, there are
> no left-over marks floating around that I have overlooked. The C's
> are just in the way for how marks are used otherwise.
You could make a reasonable argument that all marks should
be removed by `g', but that is a separate question. I might
disagree with that argument, but it is a reasonable one.
(FWIW, if you want to remove all marks you can use `C-x C-v',
but that updates the listing, which `g' does not do.)
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 8:04 ` Drew Adams
@ 2015-10-24 8:11 ` Eli Zaretskii
2015-10-24 9:35 ` Andreas Schwab
1 sibling, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2015-10-24 8:11 UTC (permalink / raw)
To: Drew Adams; +Cc: winkler, 21746
> Date: Sat, 24 Oct 2015 01:04:06 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 21746@debbugs.gnu.org
>
> > There is a big difference between exposing and documenting more
> > features from dired.
>
> We generally don't document stuff in the manual that is not
> exposed by default.
That's not true, there are a lot of stuff documented in the manual
that isn't exposed by default. Rmail, for instance.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 8:04 ` Drew Adams
2015-10-24 8:11 ` Eli Zaretskii
@ 2015-10-24 9:35 ` Andreas Schwab
2015-10-24 16:05 ` Drew Adams
1 sibling, 1 reply; 37+ messages in thread
From: Andreas Schwab @ 2015-10-24 9:35 UTC (permalink / raw)
To: Drew Adams; +Cc: Roland Winkler, 21746
Drew Adams <drew.adams@oracle.com> writes:
> (FWIW, if you want to remove all marks you can use `C-x C-v',
M-DEL
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 9:35 ` Andreas Schwab
@ 2015-10-24 16:05 ` Drew Adams
2015-10-24 16:14 ` Drew Adams
` (2 more replies)
0 siblings, 3 replies; 37+ messages in thread
From: Drew Adams @ 2015-10-24 16:05 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Roland Winkler, 21746
> > (FWIW, if you want to remove all marks you can use `C-x C-v',
>
> M-DEL
Yes, I already mentioned that earlier. Specifically `C-u M-DEL',
if you want to remove all marks of any kind.
And that is exactly what I do, FWIW, if I no longer want to
see `C' marks or similar.
I mentioned `C-x C-v' in the context of mentioning `g' (and
I pointed out the differences).
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 16:05 ` Drew Adams
@ 2015-10-24 16:14 ` Drew Adams
2015-10-24 20:51 ` Roland Winkler
2015-10-29 0:14 ` Juri Linkov
2 siblings, 0 replies; 37+ messages in thread
From: Drew Adams @ 2015-10-24 16:14 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Roland Winkler, 21746
> > > (FWIW, if you want to remove all marks you can use `C-x C-v',
> >
> > M-DEL
>
> Yes, I already mentioned that earlier. Specifically `C-u M-DEL',
> if you want to remove all marks of any kind.
>
> And that is exactly what I do, FWIW, if I no longer want to
> see `C' marks or similar.
FWIW: In fact, I use this behavior so much, and I like it
and the rest of the Dired model of marking and acting on
files and dirs so much, that I added the same thing,
including the key bindings (e.g. `C-u M-DEL') to the
bookmark display list (`*Bookmark List*'), in Bookmark+.
A user familiar with either Dired or Bookmark+ is thus
familiar with the other from the outset (wrt marking and
acting on the listed entries).
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 16:05 ` Drew Adams
2015-10-24 16:14 ` Drew Adams
@ 2015-10-24 20:51 ` Roland Winkler
2015-10-24 21:09 ` Andreas Schwab
2015-10-24 21:30 ` Drew Adams
2015-10-29 0:14 ` Juri Linkov
2 siblings, 2 replies; 37+ messages in thread
From: Roland Winkler @ 2015-10-24 20:51 UTC (permalink / raw)
To: Drew Adams; +Cc: Andreas Schwab, 21746
On Sat Oct 24 2015 Drew Adams wrote:
> > > (FWIW, if you want to remove all marks you can use `C-x C-v',
> >
> > M-DEL
>
> Yes, I already mentioned that earlier. Specifically `C-u M-DEL',
> if you want to remove all marks of any kind.
This thread has moved in a different direction from why I originally
submitted this bug report. I know that there are various ways to
get rid of the C's when copying files in dired. But nobody showed
why they are useful in the first place in some common usage scenario
justifying the current default. Therefore I think that the default
of dired-keep-marker-copy should be changed to nil:
- The C's are irritating and inconsistent:
The marks `*' and `D' indicate that an action _will be_ performed
on certain files. The C's indicate that an action _has been_
performed.
- There is no future action associated with the C's (nor has anybody
shown that this would be desirable)
Roland
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 20:51 ` Roland Winkler
@ 2015-10-24 21:09 ` Andreas Schwab
2015-10-24 21:34 ` Drew Adams
2015-10-24 21:30 ` Drew Adams
1 sibling, 1 reply; 37+ messages in thread
From: Andreas Schwab @ 2015-10-24 21:09 UTC (permalink / raw)
To: Roland Winkler; +Cc: 21746
"Roland Winkler" <winkler@gnu.org> writes:
> - There is no future action associated with the C's (nor has anybody
> shown that this would be desirable)
You can move among them with M-{ and M-}.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 21:09 ` Andreas Schwab
@ 2015-10-24 21:34 ` Drew Adams
2015-10-24 22:00 ` Andreas Schwab
0 siblings, 1 reply; 37+ messages in thread
From: Drew Adams @ 2015-10-24 21:34 UTC (permalink / raw)
To: Andreas Schwab, Roland Winkler; +Cc: 21746
> > - There is no future action associated with the C's (nor has anybody
> > shown that this would be desirable)
>
> You can move among them with M-{ and M-}.
You can, but that action is not specific to `C' marks.
You can of course move among only the `C'-marked files using,
say, `C-M-s ^C'.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 21:34 ` Drew Adams
@ 2015-10-24 22:00 ` Andreas Schwab
0 siblings, 0 replies; 37+ messages in thread
From: Andreas Schwab @ 2015-10-24 22:00 UTC (permalink / raw)
To: Drew Adams; +Cc: Roland Winkler, 21746
Drew Adams <drew.adams@oracle.com> writes:
>> > - There is no future action associated with the C's (nor has anybody
>> > shown that this would be desirable)
>>
>> You can move among them with M-{ and M-}.
>
> You can, but that action is not specific to `C' marks.
Like a lot of other things you can do with them.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 20:51 ` Roland Winkler
2015-10-24 21:09 ` Andreas Schwab
@ 2015-10-24 21:30 ` Drew Adams
2015-10-25 0:15 ` Michael Heerdegen
2015-10-25 4:01 ` Roland Winkler
1 sibling, 2 replies; 37+ messages in thread
From: Drew Adams @ 2015-10-24 21:30 UTC (permalink / raw)
To: Roland Winkler; +Cc: Andreas Schwab, 21746
> I know that there are various ways to
> get rid of the C's when copying files in dired. But nobody showed
> why they are useful in the first place in some common usage scenario
> justifying the current default.
I did. But you apparently don't want to recognize this use as
being useful. I'll repeat it, just in case you didn't hear it:
To distinguish/identify the files that were copied. And to do
so in a way that they can be further acted on in Dired. IOW,
in a Dired-consistent way. Both parts of this are useful:
(1) easily see which were copied and (2) easily act on them
or on any subset of them. #2 requires #1, but #1 is useful
on its own.
How else could Dired distinguish the copied files? That is,
what are the alternatives? We can imagine a few:
1. Highlight their lines in some way. Reasonable. And with
similar behavior needs: users need a way to remove the
highlighting.
And some might find the higlighting annoying. But they
could of course customize its face to remove its effect.
2. Use `*' instead of `C'. Confusion with other, pre-existing
`*' marks - no distinction. Likewise, for `D'.
3. List the copied files only in a separate log buffer.
You can probably come up with some additional ways.
None of these give you the ability to do something with just
those files or a subset of them.
For any proposal you might make, you would need to include some
way to (a) get the list of copied files, (b) perhaps selectively
edit it, and then (c) act on the remaining files in that list. I.e.,
you need some way to let users act on any subset of those files.
> Therefore
"Therefore"? Because no one has shown how `C' marking is useful?
See above.
> I think that the default of dired-keep-marker-copy should be
> changed to nil:
>
> - The C's are irritating and inconsistent:
>
> The marks `*' and `D' indicate that an action _will be_ performed
> on certain files. The C's indicate that an action _has been_
> performed.
Again, `*' and `D' do _not at all_ indicate that any action
_will be_ performed on the marked files. They indicate that
you _can_ act on them. Nothing more than that.
And `C' indicates the same thing: you can, with one command/key,
change `C' to `*' or `D', putting all of those files in the
same situation as your beloved (even if untrue) "_will be_
performed" situation.
That's the point of `C' marking: to _indicate_ the copied files.
Not marking the copied files gives you NO way to choose them
for subsequent action. If they are not marked (or equivalent)
then you cannot distinguish them - they do not stand out from
the rest.
> - There is no future action associated with the C's (nor has anybody
> shown that this would be desirable)
On the contrary. There are a great many future actions that
you can perform on the files marked with `C' (by changing `C'
to `*' or `D').
But you certainly cannot do anything to that set of files (or
to a subset) if you cannot distinguish it. Not identifying
the copied files apparently irritates you less, but it does
not help anyone do anything with them.
It is _not_ that it would always be desirable to do something
additional with all of the files marked `C' (see your claim
that no one has shown that that is desirable). That's part
of the point: no such hard-coded behavior is appropriate.
What is appropriate is to _be able_ to perform _any_ Dired
action on _any_ of those files (and not only on all of them).
Prerequisites for this ability are (1) being able to
distinguish the copied files and (2) being able to choose
which of them, if any, to act on in some other way.
It sounds to me like you should just customize
`dired-keep-marker-copy' to nil for yourself. I see no good
argument for changing the default value. Your only reason to
use `nil' is a personal one: you are irritated by the marks.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 21:30 ` Drew Adams
@ 2015-10-25 0:15 ` Michael Heerdegen
2015-10-25 4:01 ` Roland Winkler
1 sibling, 0 replies; 37+ messages in thread
From: Michael Heerdegen @ 2015-10-25 0:15 UTC (permalink / raw)
To: Drew Adams; +Cc: Andreas Schwab, Roland Winkler, 21746
Drew Adams <drew.adams@oracle.com> writes:
> On the contrary. There are a great many future actions that you can
> perform on the files marked with `C' (by changing `C' to `*' or `D').
I totally agree that the marks are useful. OTOH, I think they confuse
nearly everyone when first using dired. The intention should be spoken
out in the docs if this isn't the case (didn't check), but I guess we
all agree about that anyway.
And AFAICT nil is not a valid value for `dired-keep-marker-copy', but a
space character should "work".
Michael.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 21:30 ` Drew Adams
2015-10-25 0:15 ` Michael Heerdegen
@ 2015-10-25 4:01 ` Roland Winkler
2015-10-25 5:12 ` Drew Adams
` (2 more replies)
1 sibling, 3 replies; 37+ messages in thread
From: Roland Winkler @ 2015-10-25 4:01 UTC (permalink / raw)
To: Drew Adams; +Cc: Andreas Schwab, 21746
On Sat Oct 24 2015 Drew Adams wrote:
> I did. But you apparently don't want to recognize this use as
> being useful. I'll repeat it, just in case you didn't hear it:
>
> To distinguish/identify the files that were copied. And to do
> so in a way that they can be further acted on in Dired. IOW,
> in a Dired-consistent way. Both parts of this are useful:
> (1) easily see which were copied and (2) easily act on them
> or on any subset of them. #2 requires #1, but #1 is useful
> on its own.
>
> How else could Dired distinguish the copied files?
It shouldn't. Marks are for new actions in the future, not for old
ones from the past.
If you nonetheless like inconsistent behavior, don't make it the
default.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-25 4:01 ` Roland Winkler
@ 2015-10-25 5:12 ` Drew Adams
2015-10-25 17:40 ` Richard Stallman
2015-10-25 12:55 ` Andreas Schwab
2015-10-25 18:40 ` Eli Zaretskii
2 siblings, 1 reply; 37+ messages in thread
From: Drew Adams @ 2015-10-25 5:12 UTC (permalink / raw)
To: Roland Winkler; +Cc: Andreas Schwab, 21746
> > To distinguish/identify the files that were copied. And to do
> > so in a way that they can be further acted on in Dired. IOW,
> > in a Dired-consistent way. Both parts of this are useful:
> > (1) easily see which were copied and (2) easily act on them
> > or on any subset of them. #2 requires #1, but #1 is useful
> > on its own.
> >
> > How else could Dired distinguish the copied files?
>
> It shouldn't. Marks are for new actions in the future, not
> for old ones from the past.
Apparently whoever designed Dired 30-40 years ago didn't
agree. But that's beside the point (your point, at least).
_You_ don't think marks should be used for this - fine.
Or rather, you don't think they should be used for this by
_default_. That's it, right?
You at least don't begrudge users the ability to choose for
themselves, do you? You wouldn't suggest we take away options
`dired-keep-marker-copy', `dired-keep-marker-hardlink',
`dired-keep-marker-relsymlink', `dired-keep-marker-rename',
and `dired-keep-marker-symlink', would you?
If you would, i.e., even if you don't want Emacs to ever use
marks for such confirmation/indication, surely you can imagine
that it can make sense to _somehow_ confirm which files were
successfully copied (or hardlinked or symlinked or relsymlinked
or renamed). What other way would you prefer to do that?
But if you wouldn't, and you just want to change the default
behavior, then I'd suggest that you come up with a good reason
for doing so. Something more than the fact that such marks
"irritate" you.
> If you nonetheless like inconsistent behavior, don't make it the
> default.
Blah. Just because _you_ never made use of such marks, that
does not mean they are not useful or their use is "inconsistent".
Far from it. They have been used consistently for decades,
throughout Dired - witness the 5 options I just mentioned.
This use of marks conflicts with your limited notion of what
Dired marks are for. OK. But you really have nothing useful
to say about _this_ particular use of marks, because you have
never taken advantage of it.
It's certainly your right to go on ignoring this feature, and
if you don't want to be "irritated" by such marks, customize
the relevant options to remove them. Easy. End of story.
Or else come up with a good reason why your personal
preference should be foisted on everyone as a new default
behavior, reversing longstanding practice.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-25 5:12 ` Drew Adams
@ 2015-10-25 17:40 ` Richard Stallman
0 siblings, 0 replies; 37+ messages in thread
From: Richard Stallman @ 2015-10-25 17:40 UTC (permalink / raw)
To: Drew Adams; +Cc: schwab, winkler, 21746
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
The reason I make Dired commands put marks on newly created file names
is so that you can use those marks to choose those files for another
operation.
Of course, people only occasionally want to do that. When you don't
want to do another operation on those files, you can simply ignore the
marks, or unmark the files.
It seems to be a useful benefit in a fraction of cases, and no loss
in the rest.
--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-25 4:01 ` Roland Winkler
2015-10-25 5:12 ` Drew Adams
@ 2015-10-25 12:55 ` Andreas Schwab
2015-10-25 18:40 ` Eli Zaretskii
2 siblings, 0 replies; 37+ messages in thread
From: Andreas Schwab @ 2015-10-25 12:55 UTC (permalink / raw)
To: Roland Winkler; +Cc: 21746
"Roland Winkler" <winkler@gnu.org> writes:
> Marks are for new actions in the future,
Exactly. That's why they are there.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-25 4:01 ` Roland Winkler
2015-10-25 5:12 ` Drew Adams
2015-10-25 12:55 ` Andreas Schwab
@ 2015-10-25 18:40 ` Eli Zaretskii
2022-04-28 11:50 ` Lars Ingebrigtsen
2 siblings, 1 reply; 37+ messages in thread
From: Eli Zaretskii @ 2015-10-25 18:40 UTC (permalink / raw)
To: Roland Winkler; +Cc: schwab, 21746
> Date: Sat, 24 Oct 2015 23:01:12 -0500
> From: "Roland Winkler" <winkler@gnu.org>
> Cc: Andreas Schwab <schwab@linux-m68k.org>, 21746@debbugs.gnu.org
>
> > How else could Dired distinguish the copied files?
>
> It shouldn't. Marks are for new actions in the future, not for old
> ones from the past.
>
> If you nonetheless like inconsistent behavior, don't make it the
> default.
We are arguing here about the default value of a defcustom. Moreover,
this value was introduced 23 years ago, never changed since then, and
I don't remember any complaints about that default (but if you find
any, please point to them).
So it doesn't sound wise to me to change that default based on the
fact that you, Roland, dislike it. You can always customize this
variable (and other similar dired-keep-marker-* options) to you
heart's content, right? OTOH, changing this long-standing default
would be an incompatible change, something that we only do when the
community as a whole requests. Which is not the case here, I think.
Thus, I think we should document this subtlety, both in the doc
strings of the corresponding dired-do-* commands and in the user
manual, and otherwise leave the existing default alone.
Patches for the documentation are welcome.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-25 18:40 ` Eli Zaretskii
@ 2022-04-28 11:50 ` Lars Ingebrigtsen
0 siblings, 0 replies; 37+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-28 11:50 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: schwab, Roland Winkler, 21746
Eli Zaretskii <eliz@gnu.org> writes:
> Thus, I think we should document this subtlety, both in the doc
> strings of the corresponding dired-do-* commands and in the user
> manual, and otherwise leave the existing default alone.
I've now done this in Emacs 29, and am closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-24 16:05 ` Drew Adams
2015-10-24 16:14 ` Drew Adams
2015-10-24 20:51 ` Roland Winkler
@ 2015-10-29 0:14 ` Juri Linkov
2015-10-29 0:37 ` Michael Heerdegen
2015-10-29 0:53 ` Drew Adams
2 siblings, 2 replies; 37+ messages in thread
From: Juri Linkov @ 2015-10-29 0:14 UTC (permalink / raw)
To: Drew Adams; +Cc: Andreas Schwab, Roland Winkler, 21746
> Yes, I already mentioned that earlier. Specifically `C-u M-DEL',
> if you want to remove all marks of any kind.
Have you really tried `C-u M-DEL'? I see this error:
dired-unmark-all-files: Symbol’s value as variable is void: query
A bug?
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-29 0:14 ` Juri Linkov
@ 2015-10-29 0:37 ` Michael Heerdegen
2015-10-29 0:53 ` Drew Adams
1 sibling, 0 replies; 37+ messages in thread
From: Michael Heerdegen @ 2015-10-29 0:37 UTC (permalink / raw)
To: Juri Linkov; +Cc: Andreas Schwab, Roland Winkler, 21746
Juri Linkov <juri@linkov.net> writes:
> dired-unmark-all-files: Symbol’s value as variable is void: query
Indeed. And in some cases, I don't even get a minibuffer prompt but
only
C-u M-DEL
key feedback in the echo area (though typing RET works in the sense that
I still get the above error).
Michael.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-29 0:14 ` Juri Linkov
2015-10-29 0:37 ` Michael Heerdegen
@ 2015-10-29 0:53 ` Drew Adams
1 sibling, 0 replies; 37+ messages in thread
From: Drew Adams @ 2015-10-29 0:53 UTC (permalink / raw)
To: Juri Linkov; +Cc: Andreas Schwab, Roland Winkler, 21746
> > Yes, I already mentioned that earlier. Specifically `C-u M-DEL',
> > if you want to remove all marks of any kind.
>
> Have you really tried `C-u M-DEL'?
I'm sorry. I meant `M-DEL RET'. It's automatic for my fingers,
but not for my brain.
> I see this error:
> dired-unmark-all-files: Symbol’s value as variable is void: query
> A bug?
Yes, I see the same as you. Indeed, it seems to be a bug.
As Michael indicated, I get no prompt to enter the mark character,
and when I nevertheless do so (e.g. I hit `*'), I get the error
you cited.
Please file a separate bug for that. It is unrelated to this
thread. Sorry I mistyped the key sequence for removing all
marks (which is `M-DEL RET'). But glad it led you your finding
this bug.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-23 21:57 ` Drew Adams
2015-10-24 1:20 ` Roland Winkler
@ 2015-10-24 5:26 ` Eli Zaretskii
1 sibling, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2015-10-24 5:26 UTC (permalink / raw)
To: Drew Adams; +Cc: winkler, 21746
> Date: Fri, 23 Oct 2015 14:57:35 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 21746@debbugs.gnu.org
>
> > Thank you, indeed I was missing this piece of info. I am just
> > wondering: how often are you using this? Is this a feature which
> > should be exposed to all emacs beginners? If yes, it needs to be
> > documented better.
>
> There is a lot in Dired that I think should be exposed/documented
> better/more. By default we don't even load dired-x.el or
> dired-aux.el, and they provide lots of stuff useful even for
> beginners, including lots of menus.
>
> I would be in favor of our loading both of these Dired libraries
> by default. There is lots in Dired that users can benefit from,
> but they are typically unaware of it.
Aren't the commands and options there autoloaded? If not, we could
autoload them, which would solve the visibility problem without
bloating the minimal memory footprint too much. Patches welcome.
^ permalink raw reply [flat|nested] 37+ messages in thread
* bug#21746: 24.5; purpose of dired-keep-marker-copy?
2015-10-23 20:30 ` Drew Adams
2015-10-23 20:54 ` Roland Winkler
@ 2015-10-24 6:10 ` Eli Zaretskii
1 sibling, 0 replies; 37+ messages in thread
From: Eli Zaretskii @ 2015-10-24 6:10 UTC (permalink / raw)
To: Drew Adams; +Cc: winkler, 21746
> Date: Fri, 23 Oct 2015 13:30:29 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
>
> > I have never figured out a
> > reason why copying a file in dired gives the copied file a marker
> > `C'.
>
> The reason (IMO) is that the marker indicates what the
> operation was, so you can easily identify - *and then
> operate on* the files that were copied (or whatever
> the operation was).
>
> What might be missing for you is this bit of info:
> `* c' lets you change the char that is used for a given
> mark. So you can, for example, change all `C' marks at
> a given moment to, say, `*' marks, and then use any
> action on the marked files (which acts on `*'-marked
> files). Or change it to `D' and then delete the flagged
> files.
>
> Because mark `C' is used, there is no confusion with
> files that might be marked with `*' or any other mark.
>
> You can have any number of different marks at any time,
> giving them any conceptual meaning you like. Change
> any of them to `*' to convert their files and dirs to
> a set that you then act on in some way.
>
> Dunno how much of this is documented in the manual,
> but once you look at `C-h m' and then its mention
> of `* c', you can pretty much imagine how it can be
> put to good use.
Patches to document this are welcome.
^ permalink raw reply [flat|nested] 37+ messages in thread
[parent not found: <<36360.86247.586145.22058@gargle.gargle.HOWL>]
[parent not found: <<b3efc431-90b5-4012-acbb-664f8b54e63b@default>]
[parent not found: <<875f037b-3321-42b7-9128-bb4dd2bd1f7f@default>]
end of thread, other threads:[~2022-04-28 11:50 UTC | newest]
Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 19:44 bug#21746: 24.5; purpose of dired-keep-marker-copy? Roland Winkler
2015-10-23 20:30 ` Drew Adams
2015-10-23 20:54 ` Roland Winkler
2015-10-23 21:57 ` Drew Adams
2015-10-24 1:20 ` Roland Winkler
2015-10-24 8:04 ` Drew Adams
2015-10-24 8:11 ` Eli Zaretskii
2015-10-24 9:35 ` Andreas Schwab
2015-10-24 16:05 ` Drew Adams
2015-10-24 16:14 ` Drew Adams
2015-10-24 20:51 ` Roland Winkler
2015-10-24 21:09 ` Andreas Schwab
2015-10-24 21:34 ` Drew Adams
2015-10-24 22:00 ` Andreas Schwab
2015-10-24 21:30 ` Drew Adams
2015-10-25 0:15 ` Michael Heerdegen
2015-10-25 4:01 ` Roland Winkler
2015-10-25 5:12 ` Drew Adams
2015-10-25 17:40 ` Richard Stallman
2015-10-25 12:55 ` Andreas Schwab
2015-10-25 18:40 ` Eli Zaretskii
2022-04-28 11:50 ` Lars Ingebrigtsen
2015-10-29 0:14 ` Juri Linkov
2015-10-29 0:37 ` Michael Heerdegen
2015-10-29 0:53 ` Drew Adams
2015-10-24 5:26 ` Eli Zaretskii
2015-10-24 6:10 ` Eli Zaretskii
[not found] <<36360.86247.586145.22058@gargle.gargle.HOWL>
[not found] ` <<69182d70-1f68-4105-9f24-7bbef43e7ecb@default>
[not found] ` <<40607.80402.459249.22058@gargle.gargle.HOWL>
[not found] ` <<987d58d9-30d3-4067-a0ae-7a7722a3f2fb@default>
[not found] ` <<83k2qcygzk.fsf@gnu.org>
2015-10-24 8:04 ` Drew Adams
2015-10-24 8:13 ` Eli Zaretskii
[not found] ` <<56535.83174.772198.22058@gargle.gargle.HOWL>
[not found] ` <<be0730e5-48a6-41c9-97dd-9eb676947d89@default>
[not found] ` <<837fmcy9ck.fsf@gnu.org>
2015-10-24 8:17 ` Drew Adams
2015-10-24 8:25 ` Eli Zaretskii
[not found] <<b3efc431-90b5-4012-acbb-664f8b54e63b@default>
[not found] ` <<83611wy995.fsf@gnu.org>
2015-10-24 8:21 ` Drew Adams
2015-10-24 8:28 ` Eli Zaretskii
[not found] ` <<cf6c5e6b-78d8-432a-8639-7c630e89c74c@default>
[not found] ` <<8337x0y8j8.fsf@gnu.org>
2015-10-24 8:34 ` Drew Adams
2015-10-24 8:50 ` Eli Zaretskii
[not found] ` <<eeff7ef4-08cd-49b6-bfb2-a4680b996a36@default>
[not found] ` <<831tcky7it.fsf@gnu.org>
2015-10-24 16:05 ` Drew Adams
[not found] <<875f037b-3321-42b7-9128-bb4dd2bd1f7f@default>
[not found] ` <<834mhgy8pv.fsf@gnu.org>
2015-10-24 8:30 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.