emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote process execution


From: Philipp
Subject: Re: Remote process execution
Date: Sat, 26 Jun 2021 20:37:53 +0200


> Am 23.06.2021 um 00:29 schrieb Aidan Gauland <aidalgol@fastmail.net>:
> 
> I am trying to modify a third-party package to work over TRAMP, and I am 
> stuck on `call-process-region'.  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'.  I did 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.
> 
> Can anyone offer advice on modifying code that uses `call-process-region' to 
> handle remote-command-execution in TRAMP buffers?

What I typically do is write the region into a temporary file (using 
`make-nearby-temp-file' and `write-region') and then call `process-file'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]