From: Xah Lee <xah@xahlee.org>
To: help-gnu-emacs@gnu.org
Subject: Re: traverse a directory
Date: Wed, 2 Jan 2008 20:30:13 -0800 (PST) [thread overview]
Message-ID: <e2a50ecb-2b80-47db-bf5d-f64ccb1e92d4@s19g2000prg.googlegroups.com> (raw)
In-Reply-To: mailman.5595.1199218943.18990.help-gnu-emacs@gnu.org
Xah Lee wrote:
「if i want to recurse into a directory, do i have to write my own?」
Eli Zaretskii <e...@gnu.org> wrote:
「Take a look at the package find-lisp.el, which is bundled with Emacs
22. It has infrastructure for what you want. In particular, there's
the `find-lisp-find-files-internal' function that recursively
traverses a directory.」
Thanks. That does it.
(require 'find-lisp)
(find-lisp-find-files "~/web/" "\\.html$")
Xah
xah@xahlee.org
\xAD\xF4 http://xahlee.org/
prev parent reply other threads:[~2008-01-03 4:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-01 16:51 traverse a directory Xah Lee
2008-01-01 20:22 ` Eli Zaretskii
2008-01-02 5:43 ` Mike Mattie
[not found] ` <mailman.5612.1199252679.18990.help-gnu-emacs@gnu.org>
2008-01-02 18:03 ` Joel J. Adamson
2008-01-02 19:04 ` Mike Mattie
[not found] ` <mailman.5637.1199300789.18990.help-gnu-emacs@gnu.org>
2008-01-02 19:25 ` Joel J. Adamson
2008-01-03 5:51 ` Xah Lee
2008-01-03 11:16 ` Alexey Pustyntsev
2008-01-03 16:25 ` Joel J. Adamson
[not found] ` <bf802645-6c07-46d6-b968-1067c1ff4c7f@d21g2000prf.googlegro ups.com>
2008-01-05 17:47 ` OT: " Johan Lindström
2008-01-05 0:46 ` Mike Mattie
[not found] ` <mailman.5595.1199218943.18990.help-gnu-emacs@gnu.org>
2008-01-03 4:30 ` Xah Lee [this message]
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=e2a50ecb-2b80-47db-bf5d-f64ccb1e92d4@s19g2000prg.googlegroups.com \
--to=xah@xahlee.org \
--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.
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).