From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: File System Traversal Map/Collect Date: Sun, 1 Jun 2008 10:20:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <3f98cb6c-74c5-48de-b3cc-e944caf72b45@25g2000hsx.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1212342064 9487 80.91.229.12 (1 Jun 2008 17:41:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2008 17:41:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 01 19:41:45 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K2rYo-0001nE-5I for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jun 2008 19:41:38 +0200 Original-Received: from localhost ([127.0.0.1]:51114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2rY2-0003AR-8e for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jun 2008 13:40:50 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!y21g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: posting.google.com 1212340840 19932 127.0.0.1 (1 Jun 2008 17:20:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 1 Jun 2008 17:20:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y21g2000hsf.googlegroups.com; posting-host=82.240.200.149; posting-account=hanW0AoAAADuR-PIr5jGeb298Y3jGR7p User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159048 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54411 Archived-At: On 1 juin, 01:03, Nordl=F6w wrote: > 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. M-x find-name-dired then the M and Q command in the resulting Dired buffer allows to make a query replacement on a bunch of files. The command find-name-dired makes use of the unix find command though, so it is perhaps not so useful with respect to what you want to achieve. There is also an extension called icicles which seems to be able to do what you want -- apply a function to a bunch of files, without relying on some unix find command. Have a look at the wiki.