From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp
Newsgroups: gmane.emacs.devel
Subject: Re: Remote process execution
Date: Sat, 26 Jun 2021 20:37:53 +0200
Message-ID: <75BD6873-7CE5-4768-A678-F2628F060D7C@gmail.com>
References: <78bb834c-4338-6ee3-1df4-9f774a1410bc@fastmail.net>
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\))
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="36191"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: emacs-devel@gnu.org
To: Aidan Gauland
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 26 20:38:55 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 1lxDCh-0009Cl-9Y
for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Jun 2021 20:38:55 +0200
Original-Received: from localhost ([::1]:60548 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1lxDCg-0004uE-9U
for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Jun 2021 14:38:54 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39038)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1lxDBq-0003v1-3f
for emacs-devel@gnu.org; Sat, 26 Jun 2021 14:38:02 -0400
Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:55861)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1lxDBo-0006Cz-MK
for emacs-devel@gnu.org; Sat, 26 Jun 2021 14:38:01 -0400
Original-Received: by mail-wm1-x331.google.com with SMTP id g198so412446wme.5
for ; Sat, 26 Jun 2021 11:37:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=gGs/iiqN8WBf/YO2IlUWX4HZWq0fLC0h5+P1vIc6PgE=;
b=SqAnF/QWbU4LUW5fYYFQagdOyoQxUZ/wOxHcgk3E8sSCS2ypwruHr01g47fq3a+1p3
O17uFIPmp2qJod2RAbEAbgYpDFgptx17JfQmsNKaidcfHucQ3Q9+3J5uVAl3LFfKpdOK
86Lg90MAkSKKtrWZFIXvslGMVB9s2MrG2kKTffQaoC0292Vfv1rgfYMG/rW0aG8avWE/
k+k+dnmTrYRvDKWJPzY2x8R0In61qKApJK12vHcftig2KljrpRNy0zgpw7j6yud/5/Hk
gM/wOpNKzGvMROXhLKB2hybVgv7Sw0L0m1Jq+M6zx4ngpNljKAFyFqCRRLuJnyMT0OoZ
UJIw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=gGs/iiqN8WBf/YO2IlUWX4HZWq0fLC0h5+P1vIc6PgE=;
b=fvp0EjpPBBOj2Rwn9OzK5sF2jFuawa/u66e5SZDbLNt9j/4RJkPD9scr8+UIDeZhQ7
KccJievspbx+xfWRxrwaJiIPZHFcp4eQTbLrjQFQrdvvJ7Sp/LjZPUozJo8e9mb0AFun
LXbIhSsfJkwUIZLaZwb+rzO8NPM4qCkDMIqxQtjA6JiyRy2yNHoW//YHACTHCzyebqwV
SkMHacNdEEr40ZdZY/5sryxtJ/688zljpsB0LUz0Bpr2OsunZByZTbb+bhaSF4n1PijA
2TgxYlVirsB/3CykRETyogjm7du1b+gsLgrl78J+jApfwMk9MzaihX4Oj0DnX8M3NCK0
/B2g==
X-Gm-Message-State: AOAM5338BD/+ZIE1VjYCcQWWDMrbiIo5FT/ME+XgFa/kClGMMWhWc9wu
5d7Nx3+hxIq9/f3iroOenp0=
X-Google-Smtp-Source: ABdhPJzPR+50IEKg97R5K1kJn1brmwOB6/FU/VF8z9lNgdFuKOKC60A4J3A/3RYQjNfs6URJgW5WGA==
X-Received: by 2002:a7b:c1ce:: with SMTP id a14mr17769548wmj.72.1624732678386;
Sat, 26 Jun 2021 11:37:58 -0700 (PDT)
Original-Received: from smtpclient.apple ([46.128.198.100])
by smtp.gmail.com with ESMTPSA id z5sm9754641wrt.11.2021.06.26.11.37.57
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 26 Jun 2021 11:37:58 -0700 (PDT)
In-Reply-To: <78bb834c-4338-6ee3-1df4-9f774a1410bc@fastmail.net>
X-Mailer: Apple Mail (2.3654.100.0.2.22)
Received-SPF: pass client-ip=2a00:1450:4864:20::331;
envelope-from=p.stephani2@gmail.com; helo=mail-wm1-x331.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, 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:271036
Archived-At:
> Am 23.06.2021 um 00:29 schrieb Aidan Gauland :
>=20
> 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.
>=20
> 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'.=