[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Extend Dired to Call a Function on a File?
From: |
Drew Adams |
Subject: |
RE: Extend Dired to Call a Function on a File? |
Date: |
Wed, 12 Oct 2016 17:34:04 -0700 (PDT) |
> > 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'.