all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Filipp Gunbin <fgunbin@fastmail.fm>
Cc: 20195@debbugs.gnu.org, Juri Linkov <juri@linkov.net>
Subject: bug#20195: 25.0.50; Let Dired commands such as `dired-do-search' (`A') use prefix arg
Date: Tue, 31 Mar 2015 17:36:16 -0700 (PDT)	[thread overview]
Message-ID: <849043fc-73d9-45cc-ad33-30ccf7f7b077@default> (raw)
In-Reply-To: <m2pp7ozvc6.fsf@fastmail.fm>

> >   If ARG is a cons with element 16, 64, or 256, corresponding to
> >    `C-u C-u', `C-u C-u C-u', or `C-u C-u C-u C-u', then use all files
> >    in the Dired buffer, where:
> >      16 includes NO directories (including `.' and `..')
> >      64 includes directories EXCEPT `.' and `..'
> >     256 includes ALL directories (including `.' and `..')
> 
> Isn't it simpler to mark all files in a subdir (`* s') or just toggle
> everything with `t' and then invoke the command?

That's already available.  Nothing new about that.  Useful, of course.

The point is that you might currently have markings that you want to
keep for a while, and you want to perform an on-the-fly operation on
all files, without fiddling with any existing markings.

IOW, this is an additional possibility.  It takes nothing away from
what you can already do.  In particular, it does not change the behavior
of a single `C-u' (that still acts on the next 4 files, just like `C-4').

> A movement command

I don't think there has been any mention of any movement commands.
What did you have in mind?

> is ok to take argument specifying a number of files,
> because that number is related to that command's main purpose.  But here
> files are collected according to marks set in the buffer, so it's kind
> of duplication to provide the same functionality via prefix argument.

See above.  There are *many* ways to do the same thing in Dired (and
elsewhere in Emacs).  In and of itself, eliminating such "duplication"
is a silly goal (IMHO).

And it is already the case that a numeric prefix arg acts on the next
(or previous) N files, ignoring any existing marks.

To be clear:

1. I don't really care whether Emacs adds that feature (multiple `C-u'
acts on all, ignoring markings).  And that feature is not what this
enhancement request is about.

2. As one user, I use that feature quite often (with Dired+).  If
you don't find it useful, and you prefer to always mark and unmark,
that's fine by me. ;-)





  reply	other threads:[~2015-04-01  0:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-25  3:56 bug#20195: 25.0.50; Let Dired commands such as `dired-do-search' (`A') use prefix arg Drew Adams
2015-03-25 21:50 ` Juri Linkov
2015-03-25 23:08   ` Drew Adams
2015-03-31 20:33     ` Juri Linkov
2015-03-31 21:22       ` Drew Adams
2015-03-31 21:54         ` Filipp Gunbin
2015-04-01  0:36           ` Drew Adams [this message]
2015-04-02 13:32             ` Filipp Gunbin
2015-04-02 14:01               ` Drew Adams
2022-02-03 21:19       ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=849043fc-73d9-45cc-ad33-30ccf7f7b077@default \
    --to=drew.adams@oracle.com \
    --cc=20195@debbugs.gnu.org \
    --cc=fgunbin@fastmail.fm \
    --cc=juri@linkov.net \
    /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 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.