From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: formatting buffer with external tool Date: Tue, 12 Apr 2022 14:53:18 +0300 Message-ID: <83y20a4ixd.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15763"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 13:53:43 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 1neF5b-0003zc-OD for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 13:53:43 +0200 Original-Received: from localhost ([::1]:33158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neF5a-0004Jk-OT for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 07:53:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neF59-0004JD-7v for help-gnu-emacs@gnu.org; Tue, 12 Apr 2022 07:53:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neF58-0005h0-SK for help-gnu-emacs@gnu.org; Tue, 12 Apr 2022 07:53:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UmASFHtwAeHo9dypmwj9LuIg62/EeZpNF74k9HUKfc8=; b=ChOogLlu7V8S V2K55xL/dwJmeaP1Z+8c0sJ8hjIqgELXiwDAcb22t1Hv0tmK3//g5DRDvRq0ki23RkjjEwjU5hGUd jJb05wpSc2gNaqsnxTuNuIemQ5vsYtnOLhiUCQeSnWLsDyn7Ac1PCg/NoA2HiKQaY43QhmDvCj3oH 4yAp6aMePQXLWPi+EBkGagn09lUSWgYpv1o8AFBPGzPBAHdEIzdjBY+obolHz0U9w1+pb5ppMM+sv 0XgA1NkSADt7/IIwswga9dPdmMvCuPxVRtkCH6Ag7l97s4uOhfBtlGSoCBwuwftrQzLN1i1na9OXw Tn602WF01pl8rcGN2WDDJQ==; Original-Received: from [87.69.77.57] (port=1541 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neF58-0001pv-AV for help-gnu-emacs@gnu.org; Tue, 12 Apr 2022 07:53:14 -0400 In-Reply-To: (message from Luca Ferrari on Tue, 12 Apr 2022 13:45:03 +0200) 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:136904 Archived-At: > 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.