From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: mask files and run command on them? Date: Thu, 19 Apr 2012 09:38:59 -0700 Message-ID: <2BD5464A407C4B56A269A1536192F44E@us.oracle.com> References: <87wr5c9ldt.fsf@beesknees.cern.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334853572 28541 80.91.229.3 (19 Apr 2012 16:39:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 16:39:32 +0000 (UTC) To: "'David Belohrad'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 18:39:27 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKuOF-0002ES-JR for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 18:39:27 +0200 Original-Received: from localhost ([::1]:35548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuOE-0007Sp-Tc for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 12:39:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuO4-0007SF-7D for help-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:39:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKuNw-00032W-Kw for help-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:39:15 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:17782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuNw-00031i-F6 for help-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:39:08 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q3JGd2Ea025558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Apr 2012 16:39:02 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q3JGd1bd027453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Apr 2012 16:39:01 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q3JGd0hR005339; Thu, 19 Apr 2012 11:39:00 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 19 Apr 2012 09:39:00 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 In-Reply-To: <87wr5c9ldt.fsf@beesknees.cern.ch> Thread-Index: Ac0eRY/vCyitu0WJQqKIsUvSKUaaQQABAsdg X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4F903FA7.0091,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84514 Archived-At: > could someone give me a piece of advice? I have lots of > directories. I'd like to mark them and then operate a > command on each marked directory separately. > > Typical usage: > dired > mark dirs using 'm' > -do- svn rm command on each of the selected directories > > how I could handle this? See the code in dired.el and dired-aux.el defining commands that do this. See function `dired-get-marked-files' and perhaps macros `dired-map-over-marks' and `dired-map-over-marks-check'. See how they are used to define such commands. See command `dired-do-delete' as an example. You can also see lots of examples defining such commands in dired+.el: http://www.emacswiki.org/emacs/download/dired%2b.el