From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Braennstroem Newsgroups: gmane.emacs.help Subject: Re: dired command on marked files Date: Wed, 18 Jun 2008 21:08:01 +0200 Organization: www.braennstroem.de Message-ID: References: Reply-To: f.braennstroem@gmx.de NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1213818048 29834 80.91.229.12 (18 Jun 2008 19:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 19:40:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 21:41:31 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 1K93X5-00087O-RG for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 21:41:28 +0200 Original-Received: from localhost ([127.0.0.1]:33770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K93WG-0006u5-Q8 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 15:40:36 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news-xfer.nntp.sonic.net!feeder.erje.net!news.germany.com!news-stu1.dfn.de!news-koe1.dfn.de!tamarack.fernuni-hagen.de!news.fernuni-hagen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: g227072248.adsl.alicedsl.de Original-X-Trace: tamarack.fernuni-hagen.de 1213816081 16279 92.227.72.248 (18 Jun 2008 19:08:01 GMT) Original-X-Complaints-To: newsadmin@fernuni-hagen.de Original-NNTP-Posting-Date: Wed, 18 Jun 2008 19:08:01 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: news.stanford.edu gnu.emacs.help:159603 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:54959 Archived-At: * Joel J. Adamson wrote: > Fabian Braennstroem writes: > >> Hi, >> >> I would like to use dired to create some plots using >> xmgrace/gracebat. My idea is to mark some files and plot >> them all into one diagram using something like: >> >> gracebat ... -pexec 'subtitle ""' -hardcopy -hdevice EPS -printfile "<name>" >> >> Generally, I would use 'call-process' , but I have no clue, how I can create a call with variable number of files (depending on the marks). >> In the end, emacs should ask for the 'title' and 'name'. > > Are you talking about a program, or interactively? Interactively, I > would use a shell for loop. This first part of my problem was easier than I thought: (defun grace() "Create Plot using grace" (interactive) (call-process-shell-command (concat (dired-shell-stuff-it "xterm -e 'xmgrace " (dired-get-marked-files) nil) " '&")) ) This would plot all marked files ... now I take a look at the <title> and <name>. Greetings! Fabian