GNU bug report logs -
#22894
25.1.50; dired-mark: Not remark a marked file
Previous Next
Reported by: Tino Calancha <f92capac <at> gmail.com>
Date: Thu, 3 Mar 2016 10:07:02 UTC
Severity: wishlist
Tags: patch, wontfix
Found in version 25.1.50
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22894 in the body.
You can then email your comments to 22894 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22894
; Package
emacs
.
(Thu, 03 Mar 2016 10:07:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tino Calancha <f92capac <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 03 Mar 2016 10:07:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* lisp/dired.el (dired-mark-files-in-region,dired-mark):
A marked file can be remarked just:
1) To mark for deletion.
2) To unmark it, that is, the mark changes to `?\\s'.
3) If its marked for deletion, a different mark can be assigned.
The purpose of this changes is to prevent changing accidentally
the mark of a file. Current code allow to change marks on files very
easily.
Marking many files using several markers may need some time, with
some regexp gimnastics. Its a pity if someone accidentaly change
one of the marks. For instance, using `dired-mark-files-in-region',
the last/first file in the region could be included unintentionally
changing the mark of one file.
I'm not sure if allow 1) or to ban it.
I'm not sure if someone find this thread useful either :-)
In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.29)
of 2016-03-03 built on calancha-pc
Repository revision: 887f6126c5ce9084f93083765ac026ca6b28175c
[dired_no_remark.patch (text/plain, attachment)]
Added tag(s) patch.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 03 Mar 2016 11:14:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22894
; Package
emacs
.
(Fri, 04 Mar 2016 15:35:05 GMT)
Full text and
rfc822 format available.
Message #10 received at 22894 <at> debbugs.gnu.org (full text, mbox):
Tino Calancha <f92capac <at> gmail.com> writes:
> Marking many files using several markers may need some time, with
> some regexp gimnastics. Its a pity if someone accidentaly change
> one of the marks. For instance, using `dired-mark-files-in-region',
> the last/first file in the region could be included unintentionally
> changing the mark of one file.
>
> I'm not sure if allow 1) or to ban it.
> I'm not sure if someone find this thread useful either :-)
You're right. :-) I think if the user tries to change the marks in a
region, then the marks in the region should be changed. So I'm not sure
I understand the use case at all...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22894
; Package
emacs
.
(Sat, 05 Mar 2016 13:39:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 22894 <at> debbugs.gnu.org (full text, mbox):
> You're right. :-) I think if the user tries to change the marks in a
> region, then the marks in the region should be changed. So I'm not sure
> I understand the use case at all...
User can change the marks with:
1) `dired-change-marks': this is, IMO, the recommended way: you control
what you want to change, let's say, the mark 'F' into the mark 'G'.
2) Calling `dired-mark-files-regexp': the patch does't prevent this
function changing mark 'F' into `dired-marker-char'.
3) Calling `dired-flag-file-deletion', that is, changing from mark 'F'
to 'D' (that is what i called before 1) in previous comunication).
4) In two steps: unmarking the file, and after that marking it.
What i am trying to prevent is related with `dired-mark' and
`dired-mark-files-in-region'. The former is bound to 'm'. I can imagine
someone, keeping push the 'm' button to mark a bunch of files, and
releasing such button one fraction of seocnd late, so one marked file with
'F' get remarked by `dired-marker-char'.
Similar thing could happen if using the second function setting the region
not very carefully (pick uping one additional file up/down in the region).
The patch just prevent in this two function, one marked file be remarked.
Those files still not marked are marked.
I am against to restrict users, and i understand this thread is
controversial, but i use a lot these features and i believe it could
prevent people (including me) doing unintentional changes.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22894
; Package
emacs
.
(Sat, 05 Mar 2016 14:04:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 22894 <at> debbugs.gnu.org (full text, mbox):
>i believe it could prevent people (including me) doing unintentional
>changes.
I miss a point: certainly we could use 'dired-undo' so i lost my main
argument.
I still don't like `dired-mark' remarking but now becames a matter of
taste, so i agree to keep the things as they are.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22894
; Package
emacs
.
(Sat, 05 Mar 2016 19:00:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 22894 <at> debbugs.gnu.org (full text, mbox):
Hi Tino,
> What i am trying to prevent is related with `dired-mark' and
> `dired-mark-files-in-region'. The former is bound to 'm'. I can
> imagine someone, keeping push the 'm' button to mark a bunch of files,
> and releasing such button one fraction of seocnd late, so one marked
> file with 'F' get remarked by `dired-marker-char'.
> Similar thing could happen if using the second function setting the
> region not very carefully (pick uping one additional file up/down
> in the region).
>
> The patch just prevent in this two function, one marked file be
> remarked. Those files still not marked are marked.
Doesn't sound like a great idea, to me. At most it should be
optional behavior: a user choice.
Novice users, whom one could think might benefit most from this
protection, will not benefit from it, because they are not likely
to have changed marks.
(In my experience, very few people are even aware of the ability
to change marks, and this is true even of people who have been
developing and maintaining Emacs.)
> I am against to restrict users, and i understand this thread is
> controversial, but i use a lot these features and i believe it
> could prevent people (including me) doing unintentional changes.
But also intentional changes. Users who know about and use the
ability to change marks should be able to mark over changed marks
with `*', including with `m' and using the region.
You say that you have been using this feature for a while and
appreciate it. That is the best argument for it, I guess.
If this behavior is optional then it is OK, but I don't see a
great use case for it. And you mention undo, which also argues
against this.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22894
; Package
emacs
.
(Fri, 01 Jul 2016 03:23:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 22894 <at> debbugs.gnu.org (full text, mbox):
tags 22894 wontfix
close 22894
quit
Tino Calancha <f92capac <at> gmail.com> writes:
>> i believe it could prevent people (including me) doing unintentional
>> changes.
> I miss a point: certainly we could use 'dired-undo' so i lost my main
> argument.
> I still don't like `dired-mark' remarking but now becames a matter of
> taste, so i agree to keep the things as they are.
Hence closing.
Added tag(s) wontfix.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 01 Jul 2016 03:23:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
22894 <at> debbugs.gnu.org and Tino Calancha <f92capac <at> gmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 01 Jul 2016 03:23:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 29 Jul 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.