From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: shell-command-on-region but with command line arguments Date: Mon, 07 Nov 2022 20:21:40 +0100 Message-ID: <63695966.5d0a0220.15a40.29d3@mx.google.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36836"; mail-complaints-to="usenet@ciao.gmane.io" To: Luca Ferrari , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 07 20:16:44 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 1os7bv-0009UQ-Vv for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Nov 2022 20:16:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os7bF-00005E-2j; Mon, 07 Nov 2022 14:16:01 -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 1os7b9-0008V4-7k for help-gnu-emacs@gnu.org; Mon, 07 Nov 2022 14:15:58 -0500 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1os7b7-0001vx-MR for help-gnu-emacs@gnu.org; Mon, 07 Nov 2022 14:15:54 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id bs21so17720574wrb.4 for ; Mon, 07 Nov 2022 11:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JLtxJQ9gYzGTDmxPuMQf3eY1aD3X1ttzv3LZPLO6JRg=; b=YMxbj9TQx1ZBOjHuIK5NLUXczG640OCuZ1fHccCwZg5I6INUAAmzKWH+wv3Y0htM2S lWWQcZ6+gcwrcMMVnUH3am3NbCHZVw0AOIC5XySSkzURjUClICSVcIi5s0xXSz6ddVMM n8fct21pn7P/zxSiJWM90WRgKi5EUpKIzY3rahYQNXs7Ley7tyFxSjMCyOkPaOpEk4O3 p4xT93qQhB8Z+x+fB84hKbFt3Jq7SuCK+ajmx6cZY2PZ59ktVK0fgaDm5s9CGzbVvJDU WaNTfjIIdAkU9IqB4k2o6DOVr1IRf85+5BUlsfPELdjXzjeOnXw0xSTjWMujMWaZ5xaj yIsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JLtxJQ9gYzGTDmxPuMQf3eY1aD3X1ttzv3LZPLO6JRg=; b=W4GlLykHoEV4mzpnyBP4+cvzhWWioX/dLeSaUG/7Hc7y5EEZMh8CrCMdXxzsnxcxDF 3FxZ75ycUXrdm0HyU/oiQbDHAY6ZIqRYFixoLLV6Zc1q00bBBCPZ4AE4lIE5EERcZ/p5 +aSzkb0QvVOpfgGF6MusnKZn5siSREWUKbYk72lGDV1BB+8dg2EUNCMHZXssyFMZihen G0wywv7tfMQbNdYi+LA1/HI8MQFQlcHmYUxQm7ey2jtJQUiUYYvkl1PmNPWeZy+wivMs renIrC8B3ImHXbGuhseOKNwlmD0jLV1AdddzPUGDw2w6rxQP+APEJnnh5v4+KgyfiDjr TjoQ== X-Gm-Message-State: ACrzQf1lcND6mgmKvyPLa4S1JNKS7EMmZrxelF0sikkKAgyGF+1hFu/C b26Jzc2/cb5y6xKFc8/23Dg= X-Google-Smtp-Source: AMsMyM5RHLjN6bwm5SDM6MVL1gLF9UlnUx6PMeUpmF7EUyPN24iApHO5UYJHz+8lofL8KOSjjaHCsw== X-Received: by 2002:a5d:4403:0:b0:236:ea40:47fc with SMTP id z3-20020a5d4403000000b00236ea4047fcmr21652364wrq.340.1667848551358; Mon, 07 Nov 2022 11:15:51 -0800 (PST) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id k28-20020a5d525c000000b0022e653f5abbsm7950766wrc.69.2022.11.07.11.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 11:15:50 -0800 (PST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Mon, 07 Nov 2022 20:21:41 +0100 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=brubar.cs@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, MSGID_FROM_MTA_HEADER=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:140798 Archived-At: 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") should allow you to prompt for additional arguments. Bruno > Thanks, > Luca