From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: dired question
Date: Mon, 18 Oct 2004 14:05:29 GMT [thread overview]
Message-ID: <jwvsm8cjfe2.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: gvyis999bj8.fsf@norge.freeshell.org
> I would like to run a command on files marked in a dired buffer in the
> order in which they were marked. Is there a built in way to do this?
Dired does not keep track of the order in which things were marked.
It just keeps a bit saying "marked/not-marked".
> If not, I was thinking of advising dired-mark and
> dired-get-marked-files to do this. Does this approach seem reasonable?
I'm not very familiar with dired's internals, so don't take my word for it,
but it does seem like a reasonable way. E.g. just maintain in dired-mark
a side list of the last N files marked (N being e.g. the number of lines in
the current buffer) and use it in dired-get-marked-files to sort the
marked files.
Stefan
next prev parent reply other threads:[~2004-10-18 14:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-17 23:20 dired question Stephen Dickey
2004-10-18 5:21 ` oliver
2004-10-18 5:39 ` Stephen Dickey
2004-10-18 14:05 ` Stefan Monnier [this message]
2004-10-18 18:05 ` Stephen Dickey
2004-10-18 18:58 ` Stefan Monnier
2004-10-18 21:05 ` Stephen Dickey
2004-10-18 21:34 ` Thien-Thi Nguyen
2004-10-18 22:49 ` Brad Collins
-- strict thread matches above, loose matches on Subject: below --
2008-05-18 21:07 Dired question harven
2008-05-18 22:20 ` Drew Adams
2008-05-19 13:23 ` Xah Lee
2008-05-19 14:05 ` Joel J. Adamson
2008-05-19 19:11 ` harven
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=jwvsm8cjfe2.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.