From: "Drew Adams" <drew.adams@oracle.com>
To: "Andreas Röhler" <andreas.roehler@online.de>, emacs-devel@gnu.org
Subject: RE: dired-mark
Date: Thu, 29 Nov 2007 09:07:19 -0800 [thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACMEGICFAA.drew.adams@oracle.com> (raw)
In-Reply-To: <200711291044.53362.andreas.roehler@online.de>
> > But what if you really intend to mark "." or ".."?
>
> That's precisely the question.
Yes.
> I can't imagine any case I would need it. However, as
> experience tells our imagination runs short occasionally...
It doesn't matter if you can't imagine a case where you would need it.
As long as users can operate on marked files and directories, someone will
want to, well, mark `.' or `..' and then operate on it.
Madame Lambda or Mister X might define a command that prints each marked
file and all files in each marked directory. Or search them. Or do whatever
to/with them. And s?he might use that command on `.' or `..' as well as on
other marked directories.
There is no reason that users shouldn't be able to use `dired-mark' to mark
`.' and `..'. If you don't want to mark them, then don't. If you have code
that does something to all marked files and dirs, but you don't want to
treat `.' and `..', then exclude those in your special-purpose code.
Wrt subdirs, it is only when point is on a subdir header line that
`dired-mark' does not mark the subdir's `.' or `..' - in that case, it marks
all files and directories _contained_ in the subdir. `dired-mark' always
marks `.' and `..' whenever they are targeted (e.g. cursor on that line).
That's TRT, IMO. Acting on a directory is not (necessarily) the same thing
as acting on everything in it. It is useful to be able to mark and act on
any directory, including `.' and `..'.
next prev parent reply other threads:[~2007-11-29 17:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 8:01 dired-mark Andreas Röhler
2007-11-29 8:34 ` dired-mark Tassilo Horn
2007-11-29 9:44 ` dired-mark Andreas Röhler
2007-11-29 17:07 ` Drew Adams [this message]
2007-11-29 20:15 ` dired-mark Andreas Röhler
2007-11-30 2:06 ` dired-mark Stefan Monnier
2007-11-30 9:30 ` dired-mark Andreas Schwab
2007-11-30 15:11 ` dired-mark Stefan Monnier
2007-11-30 16:42 ` dired-mark Andreas Röhler
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=BNELLINCGFJLDJIKDGACMEGICFAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=andreas.roehler@online.de \
--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).