all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp <p.stephani2@gmail.com>
To: Aidan Gauland <aidalgol@fastmail.net>
Cc: emacs-devel@gnu.org
Subject: Re: Remote process execution
Date: Sat, 26 Jun 2021 20:37:53 +0200	[thread overview]
Message-ID: <75BD6873-7CE5-4768-A678-F2628F060D7C@gmail.com> (raw)
In-Reply-To: <78bb834c-4338-6ee3-1df4-9f774a1410bc@fastmail.net>



> 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'.


      parent reply	other threads:[~2021-06-26 18:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22 22:29 Remote process execution Aidan Gauland
2021-06-24 18:01 ` Michael Albinus
2021-06-24 20:24   ` Tomas Hlavaty
2021-06-26 18:37 ` Philipp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75BD6873-7CE5-4768-A678-F2628F060D7C@gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=aidalgol@fastmail.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.