From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: shell-command-on-region but with command line arguments Date: Wed, 9 Nov 2022 08:21:34 +0100 Message-ID: References: <63695966.5d0a0220.15a40.29d3@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24775"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Bruno Barbier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 08:23:03 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1osfQL-0006FO-Ic for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 08:23:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osfPs-0001t3-TQ; Wed, 09 Nov 2022 02:22:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osfPg-0001sQ-FT for help-gnu-emacs@gnu.org; Wed, 09 Nov 2022 02:22:27 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osfPc-0004Mu-Uj for help-gnu-emacs@gnu.org; Wed, 09 Nov 2022 02:22:19 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id w14so24362419wru.8 for ; Tue, 08 Nov 2022 23:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IxND/I0NJvzfpM4ttKSs5zp3E/77ETi/u0kKVapGABs=; b=bWHX+EpTaMwZ/tyW/BJA39xzdtQSbtKj5CQPOpUX49bMSEzmLwDdf+yoajEdIGfvY6 PjKjLHzQ/Nh65iumTbnTyyI3ATlccoFJI7wiBNLp9D7HK40cLdTRFz9fTb02z3mEgI1k 9GVAJZxAPjPmmKU0Nti1hMBd7VsqL6Yiciv0+RxR+Htpimuv+sYyPNQI2G24RWuW4kLk 999dGJe0ocKMISj8KFmdSneZsEfK/J9nOkdUhjUaCKR/velPbyI0On9BC+aDEalO5EfG p1cRY95e83WAUIJby/DWofG9AY1EcFP2OWy16WQD27j29RppHMyX0fcwIbsr4aoKgy7n +Whw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IxND/I0NJvzfpM4ttKSs5zp3E/77ETi/u0kKVapGABs=; b=vpkDIaP0tYcUZO9JG5gD38QcTFHZ9wwjsZcf5fz+Q3sx85qxn8NRbEeeGdQ6du8pJw iplIa4FegdxM5MIztuIC0aqth6drMwpuitgD+TowEfFIn6FVMULcnC+OAPgrIkiNajc3 MV50Kv3JCNxnM8bkAsBds1mLXWzPH3NqMQZFbRxb52cD0lsQq/p755AS9I63kAIf8FRl CL1SKYrLZiDzxhbGvF8a1ACtFrt3xwk1IgciM+Rsstz8QnIsVKCISs4iTbBzxO1EPSc3 dD2RpNPUycf5flBHg7rt13kyLTL/SgUUVAwoYg6CW7Vw/JenlnMrPHmsyaThg6NvLhJ+ Z75Q== X-Gm-Message-State: ACrzQf3GARevEzCtrZJg+Z3EwJNisBo9Z5VtnbnuQvj5E5qulXm6CoDY mQoVPfTEaYP3ZW0abM1qg7xBLNR/2HB3EWXqk+I= X-Google-Smtp-Source: AMsMyM53dIJNyiprJbIIsoX+naqrvUfMf7ko6S2v/4/mzLMmjefcfuLyXVAHUD3VmO8KVNhf+evIGzTe9d1ZXuRBdUA= X-Received: by 2002:a5d:62cd:0:b0:236:6ea0:a609 with SMTP id o13-20020a5d62cd000000b002366ea0a609mr35925518wrv.508.1667978530813; Tue, 08 Nov 2022 23:22:10 -0800 (PST) In-Reply-To: <63695966.5d0a0220.15a40.29d3@mx.google.com> Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=fluca1978@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140857 Archived-At: On Mon, Nov 7, 2022 at 8:15 PM Bruno Barbier wrote: > > > Luca Ferrari 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