From: Fabian Braennstroem <f.braennstroem@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: dired command on marked files
Date: Wed, 18 Jun 2008 21:08:01 +0200 [thread overview]
Message-ID: <g3bmeh$fsn$1@tamarack.fernuni-hagen.de> (raw)
In-Reply-To: mailman.13422.1213650548.18990.help-gnu-emacs@gnu.org
* Joel J. Adamson <adamsonj@email.unc.edu> wrote:
> Fabian Braennstroem <f.braennstroem@gmx.de> 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 <file1> <file2> ... <file n> -pexec 'subtitle "<title>"' -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
next prev parent reply other threads:[~2008-06-18 19:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-16 19:13 dired command on marked files Fabian Braennstroem
2008-06-16 21:04 ` Joel J. Adamson
[not found] ` <mailman.13422.1213650548.18990.help-gnu-emacs@gnu.org>
2008-06-18 19:08 ` Fabian Braennstroem [this message]
2008-06-18 21:10 ` Rupert Swarbrick
2008-06-20 19:54 ` Fabian Braennstroem
2008-06-19 3:27 ` Kevin Rodgers
[not found] ` <mailman.13550.1213846072.18990.help-gnu-emacs@gnu.org>
2008-06-20 19:56 ` Fabian Braennstroem
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='g3bmeh$fsn$1@tamarack.fernuni-hagen.de' \
--to=f.braennstroem@gmx.de \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).