From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Remote process execution Date: Thu, 24 Jun 2021 20:01:50 +0200 Message-ID: <87lf6zqgz5.fsf@gmx.de> References: <78bb834c-4338-6ee3-1df4-9f774a1410bc@fastmail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34995"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Aidan Gauland Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 24 20:03:43 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lwThX-0008nd-MQ for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Jun 2021 20:03:43 +0200 Original-Received: from localhost ([::1]:39650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwThW-0006Dm-MO for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Jun 2021 14:03:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwTfr-0004nY-Cs for emacs-devel@gnu.org; Thu, 24 Jun 2021 14:01:59 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:43333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwTfp-0008S7-8i for emacs-devel@gnu.org; Thu, 24 Jun 2021 14:01:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624557712; bh=Hpgnni440G/T1xcCyJZ31BWtHPEstx1zdgi8latEBXY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=gxymvFlpmjdTvyQ91KxQVerw/lEccROqrdF4kuqWcks50PLAULkWc6VX21Hkr4adC dMcb7jA7jtH9iL8IGL6k826hwCbbkyvc6VMKutnqHRSmRNaWvs0nJ47l2kv9eYc6Q+ iXT5TgjAIXuoSxoZPh2s9nHMALIPsleLQwV5D45A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.147.207]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M4Jqb-1lwkms3hxZ-000NPg; Thu, 24 Jun 2021 20:01:52 +0200 In-Reply-To: <78bb834c-4338-6ee3-1df4-9f774a1410bc@fastmail.net> (Aidan Gauland's message of "Wed, 23 Jun 2021 10:29:03 +1200") X-Provags-ID: V03:K1:PJR9VKpBYQ9AB2+ySqxTJhFLJgAUSjLyOz//PzxU9N8a//9sZSj C/h9ud9DWRTA5n9IrbYa11q1tpAr+3X1Ou1UrZJPjNQ2VI2wxY6h0xHdbV0Ww4+ag/BnQ5D QrA+1Los8ebjN+T2ICzOMveUpcBD0avYOa9meRN/G0YZ8p7NUbWWoJl/GEnsUUcMLhyg1iZ +jU0ZkvIVX2PfomLRrBcw== X-UI-Out-Filterresults: notjunk:1;V03:K0:rDfXM04jeM8=:U7ju/udkfd22A5n5Bl5lVX lqKahgBlliNGKysTig+0ebdbu4r8cC37eDBjtlgiT/nBK/FoPIkIm0VwgbW7ZgLljU91B07C3 iMbdUBJmSC1bS19Z77o/0Fnsm9dUZoywEW3RO8DUsr4+ZqPivSeNiNYMCqqjZj+MxF01jC25p g4q3DKP6u0K0UWY2NMLtzySrmyEhJReCF9kPkHVtXJ+oJzeKf8zeLe6kwhacBOPG9tWdsKB+H uKXc53QnxRqlSdDQw9X0Or3gSqa97KaoNIJ604hWlyW11HvYdSuWtoZhoC+3+yhlFaS++9vPR iRJvGoh21kejam2RzbW5pN++LNyhl1qMdZWEx3EOfsC984fefUY+10DHKkBs+K62X/k9hPFim +V2hoG3CEZaGg4lDdZ+zcpZDOnnpfagqBvOzSxJtAVNdeTbMPhRkaspxIg5VnQL20LmSFlRHG N2+Y7X+Sryt+Y7npqkXAvKFm5ztnCbzMh1s6/xzrzhtkC09AeLEsTS2tpliEzga4bXIb3Sztb n8R7mhqlGr5oFj6xSBBbm5IuD3tiIydlxP9+Kgjk7ZB33EvyeD8V9AV8VjAdzCBqtSUROTQjU 1MWr3Rux5odAV6N1I9fywP5PHb9xa0u8TXl72OU4Y/arkG9ogcYAjgNpgRfCLspNRVtuOyhCY OCfhb5aS7eCt8aYudJBZRkoLIc7wb00GMWSRPjoi57BEvjdfHM/FTizFx+SJYy0FBhk73yvMK POhQX5qWVTfOQ6uozjUj6RfoC05Gt3ra0P1Oe0pHKKVw0YMCw/s4HnjljIm7U8trL3v9T0CC Received-SPF: pass client-ip=212.227.17.21; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271008 Archived-At: Aidan Gauland writes: Hi Aidan, > I am trying to modify a third-party package to work over TRAMP, and I > am stuck on `call-process-region'.=C2=A0 I seem to be able to use > `process-file' as a drop-in replacement for `call-process', but there > does not appear to be any substitute for `call-process-region'.=C2=A0 I d= id > find `tramp-call-process-region' (and `tramp-call-process'), but these > functions seem to be redundant, since they just call the process on > the local host, which is what the non-tramp versions of these > functions do already. Like call-process, call-process-region does not support remote directories. As you say, there is process-file, which does this with the same arguments as call-process. tramp-call-process and tramp-call-process-region are internal functions. Their docstrings say clearly, that they are based on call-process and call-process-region, respectively. > Can anyone offer advice on modifying code that uses > `call-process-region' to handle remote-command-execution in TRAMP > buffers? What you are looking for is an implementation for process-file-region. That does not exist (yet?), AFAIK. > Regards, > Aidan Gauland Best regards, Michael.