From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: AW: replace a textblock in multiple files Date: Tue, 26 Sep 2006 17:44:18 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159288992 29794 80.91.229.2 (26 Sep 2006 16:43:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2006 16:43:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 26 18:43:03 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GSFzK-0007s7-KY for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Sep 2006 18:40:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSFzK-0006Xt-6L for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Sep 2006 12:40:54 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: individual.net AJoUWjJU4+hQbyx/JBGK/w/qzkgT+MTRStinujcq+ks7EnubsK User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:iiqEAXUX/9cAi1n+xYILEHlk8a4= Original-Xref: shelby.stanford.edu gnu.emacs.help:142027 Original-To: help-gnu-emacs@gnu.org 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:37648 Archived-At: writes: > 1) i want to work on several subdirectories, not only in one directory > 2) i want to replace blocks consisting of more than one line. In dired, navigate one folder "higher" than where you want to start your replacement. Then insert the directory you want to work with using C-u i and add an R to the arguments at the prompt. This will add all files recursively into the dired buffer and you can work with the files from there. The Q command should accept multi line blocks as long as you can find a regexp to do it. If not, maybe you want to write a small helper elisp function.