[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-command-on-region but with command line arguments
From: |
Luca Ferrari |
Subject: |
Re: shell-command-on-region but with command line arguments |
Date: |
Wed, 9 Nov 2022 08:21:34 +0100 |
On Mon, Nov 7, 2022 at 8:15 PM Bruno Barbier <brubar.cs@gmail.com> wrote:
>
>
> Luca Ferrari <fluca1978@gmail.com> writes:
>
> > I was wondering if there's a way to prompt me for optional command
> > line arguments, so that the command should run against the
> > buffer/region followed by a list of arguments.
> > Any idea?
>
> The section "Defining Commands" of the elisp
> manual
>
> (info "(elisp)Defining Commands")
Thanks, now I know that I need to specify a format in (interactive) to
get my arguments.
The problem is that I'm using (shell-command-on-region) that does not
allow me to insert arguments to the command, and I don't know how the
command is effectively invoked (e.g., piping the region to standard
input, using a temporary file) so I'm not able to "append" my
arguments.
I need a little more help.
Thanks,
Luca