all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Brendan Leber <brendan@brendanleber.com>
Cc: help-gnu-emacs@gnu.org
Subject: RE: Extend Dired to Call a Function on a File?
Date: Wed, 12 Oct 2016 17:34:04 -0700 (PDT)	[thread overview]
Message-ID: <84855d7f-160b-4886-bede-45d2dea066b1@default> (raw)
In-Reply-To: <CAC77Q0F6uLoKOnjxTmkcLYgZMj0vo=X5f=c9UVa3n9UEATh7zw@mail.gmail.com>

> > But I guess you are asking about mapping a Lisp function over files.
> 
> That is what I meant.
> 
> > If you are asking about Dired then presumably you are talking about
> > acting on the marked files (else, why Dired?).  If so, and if you
> > use Dired+, then you can use `@', which is bound to command
> > `diredp-do-apply-function', to apply a Lisp function to each of the
> > marked files.
> 
> I haven't used Dired+ but it sounds like the `@' key will do exactly
> what I want.  Thanks!

Also, if you don't care about using Dired, and you just want to act
on all of the files in a directory that match a regexp, you can just
map your function over the result of calling `directory-files'.



  reply	other threads:[~2016-10-13  0:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-12 17:46 Extend Dired to Call a Function on a File? Brendan Leber
2016-10-12 20:12 ` Drew Adams
2016-10-12 20:36   ` Brendan Leber
2016-10-13  0:34     ` Drew Adams [this message]
2016-10-13 16:59       ` Brendan Leber
2016-10-12 20:18 ` Stephen Berman
2016-10-12 21:12 ` John Mastro

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=84855d7f-160b-4886-bede-45d2dea066b1@default \
    --to=drew.adams@oracle.com \
    --cc=brendan@brendanleber.com \
    --cc=help-gnu-emacs@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 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.