unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Dmitry Gutov <dgutov@yandex.ru>, Eli Zaretskii <eliz@gnu.org>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: ARG and Dired commands, was: Re: [External] : Re: master 2ed2999: Improve documentation of new Xref options
Date: Tue, 7 Sep 2021 21:47:32 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488FC58C1BECA999C3F42C2F3D39@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <d7bf27cb-4f1f-d677-9203-1c3eff7571ee@yandex.ru>

I'll just give this additional argument in favor
of an optional ARG parameter for `dired-do-*'
commands:

It's handy to be able to act on one or a few
files without regard to which files are marked.
That lets you _keep a set of markings_ and yet
perform a one-off action on some other files.

This is built into the basic Dired UI.  Just
provide a numeric prefix arg N, to act on the
file of the current line and the next N-1 files.
E.g., `C-1 C' to copy the current line's file,
ignoring all marks.

That's really the point behind ARG, IMO.

Yes, it can be handy to act on the next ARG
files even when no files are marked, but where
ARG really shines is when there are markings
that you don't want to lose.

An alternative for that use case is to use
`* c' to temporarily change all `*' marks to
some other mark (e.g. `X'), then act on some
files as a one-off (having to mark them, if
more than one), then erase those temporary
`*' marks and change the other mark (e.g. `X')
back to the regular mark (`*').  You can see
why that's less handy, hopefully.

I hope you do consider adding an optional ARG
argument to your `dired-do-*' commands, and
give that ARG the usual behavior.  Unless you
have a good reason not to (do you?).

      reply	other threads:[~2021-09-07 21:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210905075953.20536.20920@vcs0.savannah.gnu.org>
     [not found] ` <20210905075955.0F6B720A0A@vcs0.savannah.gnu.org>
2021-09-05 19:38   ` master 2ed2999: Improve documentation of new Xref options Dmitry Gutov
2021-09-06  4:30     ` Eli Zaretskii
2021-09-06 11:24       ` Dmitry Gutov
2021-09-06 12:28         ` Eli Zaretskii
2021-09-06 12:47           ` Dmitry Gutov
2021-09-06 15:33             ` Eli Zaretskii
2021-09-06 15:43               ` Dmitry Gutov
2021-09-07 13:05                 ` Eli Zaretskii
2021-09-07 15:24                   ` Dmitry Gutov
2021-09-07 15:27                     ` Dmitry Gutov
2021-09-07 16:07                       ` Eli Zaretskii
2021-09-07 15:47                     ` Eli Zaretskii
2021-09-07 16:01                       ` Dmitry Gutov
2021-09-07 16:18                         ` Eli Zaretskii
2021-09-07 16:27                           ` Dmitry Gutov
2021-09-07 17:03                           ` [External] : " Drew Adams
2021-09-07 17:21                             ` Dmitry Gutov
2021-09-07 17:28                               ` Drew Adams
2021-09-07 17:40                                 ` Dmitry Gutov
2021-09-07 19:44                                   ` Drew Adams
2021-09-07 20:08                                     ` ARG and Dired commands, was: " Dmitry Gutov
2021-09-07 20:42                                       ` Drew Adams
2021-09-07 20:49                                         ` Dmitry Gutov
2021-09-07 21:47                                           ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB5488FC58C1BECA999C3F42C2F3D39@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).