unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: running a command that requires two parameters on a file
Date: Wed, 06 Aug 2014 11:20:37 -0400	[thread overview]
Message-ID: <barmar-913769.11203706082014@news.eternal-september.org> (raw)
In-Reply-To: 87fvh98xi3.fsf@bach.histomat.net

In article <87fvh98xi3.fsf@bach.histomat.net>,
 Haines Brown <haines@histomat.net> wrote:

> I am in the habit of bringing up ! in order to run a command such as
> xpdf on a selected file.

I assume you're talking about Dired.

> 
> The problem comes when I want to run the command wkhtmltopdf, for it
> calls for two parameters. That is, emacs won't let me do: ! wkhtmltopdf
> input.html output.pdf.
> 
> Is there a way I can do this withou raising a terminal to make the
> conversion with it?
> 
> Haines Brown

Write a script that takes one argument and fills in the other argument. 
Then run: ! scriptname

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  reply	other threads:[~2014-08-06 15:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-06 15:10 running a command that requires two parameters on a file Haines Brown
2014-08-06 15:20 ` Barry Margolin [this message]
2014-08-06 16:11 ` Pascal J. Bourguignon
2014-08-09 12:16   ` Haines Brown
2014-08-12  5:59 ` Kevin Rodgers
     [not found] ` <mailman.7002.1407823212.1147.help-gnu-emacs@gnu.org>
2014-08-12 14:42   ` Barry Margolin

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=barmar-913769.11203706082014@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --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).