all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: File System Traversal Map/Collect
Date: Sat, 31 May 2008 16:03:10 -0700 (PDT)	[thread overview]
Message-ID: <3f98cb6c-74c5-48de-b3cc-e944caf72b45@25g2000hsx.googlegroups.com> (raw)

I am trying to construct a general file system traversal function
which operates (map/collect) on each file using a function as
argument. Such a function could be query-replace-regexp() specializing
it to the functions found in findr.el. If have looked at findr.el but
I find its common-lisp-inner-loop difficult to understand; Clearly not
functional programming. I understand why some want to clean out the
common-lisp parts of GNU Emacs. Basically I am recursively calling
directory-files(). I would like the function to support both breadth-
and depth-first traversals.

Does such a logic already exist somewhere?

My own current main motivation is that I want to extend the
functionality of findr.el to skip certain directory- and file-
patterns.

I would also, if possible, generalize its use through TRAMP using
tramp-handle-directory-files() instead of directory-files().

Thanks in advance,
Nordlöw


             reply	other threads:[~2008-05-31 23:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-31 23:03 Nordlöw [this message]
2008-06-01 17:20 ` File System Traversal Map/Collect harven
2008-06-01 18:57   ` Drew Adams
2008-06-01 19:41   ` Drew Adams

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=3f98cb6c-74c5-48de-b3cc-e944caf72b45@25g2000hsx.googlegroups.com \
    --to=per.nordlow@gmail.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.