From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: formatting buffer with external tool Date: Tue, 12 Apr 2022 14:01:22 +0200 Message-ID: <87bkx6v7cd.fsf@rub.de> References: <83y20a4ixd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21716"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 14:02:46 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 1neFEL-0005Vr-2A for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 14:02:45 +0200 Original-Received: from localhost ([::1]:37412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neFEJ-0007lF-VS for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 08:02:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neFD6-0007l7-6i for help-gnu-emacs@gnu.org; Tue, 12 Apr 2022 08:01:28 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:34597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neFD4-0007Tg-Hj; Tue, 12 Apr 2022 08:01:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649764883; bh=MiZeV0liD6Lh/ZRtHECuhmrfWAq5qyL0tYbrha7YZW4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=YvTndwvxLze9+YUYVKxj/J9pXY90gj2GBmTiXMDs7ATX1KbCnb/AJ6IQAHnQwKDXE FwmaeZGU9gImb0aNRFHrfXvE4LAYOUnZIziLHUMeMCOpV05Em0Z4iVyr5du3uVdG9z uzK3TDKjBfjepBY6Q8+PXmY3nICzTXnr9vDH38ZA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.124]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mel3t-1oCD7H3mSL-00aitl; Tue, 12 Apr 2022 14:01:22 +0200 In-Reply-To: <83y20a4ixd.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 12 Apr 2022 14:53:18 +0300") X-Provags-ID: V03:K1:USZU+G1k9QlRzWOCo2gOWBp+rUe2h3Pr/NPf17c8PyQZeyJuXtS jrak+kBD5BAub83+Qef420KXAwIUdmr+ggOaD3ex53wMxxHRiaDL8an+gk7cAHWNXzZsu8j ct1Nu/82NT8HNVIK7kGmMUcqgojXVpMMnEw+8h+ax5LFv4M0POKnX3EkjD/B8ZW5ZSrG2QJ Op+KYsUcI/omf3Xy6k4mg== X-UI-Out-Filterresults: notjunk:1;V03:K0:FJrg6AHujyA=:hUa+/PCaf5ueFZLV85pAPB mf4CzA01cTV6fZsAipi1TLCWNWC77cUf+wn+m+QY4F8wdATvca63EaqPBZgs6SK3pOVbwVa3l WinlAhkIZZve0YmNrZYE1+klEWA1x+ETGyWkHMmIoIugYRMMVJ940K0iXh2qnwaaPn34RbWuE 8VVTaQXY5NN2nzrlDFbu8NOQypJQZNWw1T7EWM56sdjXyaJzDBO0YLjbNQ+kMMUI3kP3ALWWc c6UmOnzvf+LzB+tgh81OhmGFHgUgi7MmfnDsQaDe6mZIisHIbiq8C5nXG0yNe0TlpRBmN7eUN oiR5AOEyKO1OE+lLfh5NvxnutytqBHv1TSfDeh46DbUrKq1qnoc/dtIaZJgvGeCkNoDGnvCEm 1argPb1v/NRgnz0SFH/VzldY49gUylK6pymFjPMnjZ/j+9sI2aSW8fZf9lQBKLIMOOOv5CFFL hrKdV1Mh212FwlUPxkEmyTaGZr0xEPVgIterTAPmTENs6+TDc3Qdhlj1sWiuxr55Fdj6/63Tk gi0+4OhV9NFPmoqfqO00WD48bO4EpVHzo96gSQd7CFl9nnKqUeMVtU3ZGObBGdCyGSLh0g12I /aq88YKpnwN89gtGk3VuNp3Ym77QECTuDJm1SoZKE3Som8F3RtlyD9FclS3MGMBX+MV//jt9Q P1AqYZBV/uFgsbQFw3oDP8pluLvBDDUoa6wobcbFvQQPBUubC4y5ymKU52ZwrxXGhTjxhqfHH 02JvXUYT6KCqapfJo6LWEBmtYciEBlrVwNHkzUyj+U80kq5r407gO9b5NuuHsMzktjAEb4/L Received-SPF: pass client-ip=212.227.17.22; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.help:136905 Archived-At: On Tue, 12 Apr 2022 14:53:18 +0300 Eli Zaretskii wrote: >> From: Luca Ferrari >> Date: Tue, 12 Apr 2022 13:45:03 +0200 >> >> Hi all, >> how can I define a command so that instead of calling indent-region I >> pass the region content to an external program and get back the result >> into the region? > > Use shell-command-on-region with 4th arg not a buffer and not nil. Another possibility is replace-region-contents. Steve Berman