From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: New functions remote-exec-path and remote-executable-find
Date: Sun, 1 Jul 2018 19:27:30 +0200
Message-ID:
References: <87po0oi0qa.fsf@gmx.de>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000fb4e92056ff36546"
X-Trace: blaine.gmane.org 1530465949 8526 195.159.176.226 (1 Jul 2018 17:25:49 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 1 Jul 2018 17:25:49 +0000 (UTC)
Cc: emacs-devel@gnu.org
To: Michael Albinus
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 19:25:45 2018
Return-path:
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1fZg6a-00026a-Dg
for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2018 19:25:44 +0200
Original-Received: from localhost ([::1]:55078 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1fZg8h-0000tm-ON
for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2018 13:27:55 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53537)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1fZg8W-0000sV-CE
for emacs-devel@gnu.org; Sun, 01 Jul 2018 13:27:45 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1fZg8V-0002mZ-GK
for emacs-devel@gnu.org; Sun, 01 Jul 2018 13:27:44 -0400
Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:40042)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1fZg8V-0002m1-A1
for emacs-devel@gnu.org; Sun, 01 Jul 2018 13:27:43 -0400
Original-Received: by mail-oi0-x22f.google.com with SMTP id w126-v6so5413149oie.7
for ; Sun, 01 Jul 2018 10:27:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=E6DgWh1JdRYtQ8LQI4Es4ihAGIRvcUu95O1EGyfNWKo=;
b=Ycdgq9EbcNeVSaKRyh5zdk9biTO+IVdD1WanLLsRIMQJLn8GnuCs9amE7iy1yf3W47
sGz6XWNhJl+MOSquzVnrjESpA1r467pPtd4k8xDLff+CPzyKaOE+DVee9ptJVt+5utJp
Rs7ydFLCFisKlhGF/sOkKMZbAAa31xTo1hiU6h2ZghcPsSyxqSIh5UwFw0HnhthelTuH
XnzscScD6KYyYMclRAXbsKMnfRMyEJ05Cr6zNU+03m3JCC7RED3J3dq2guALDxhSUVwD
Agj91VGN/ZCxEE0G9NkeFEOj721wo3jpdlimSpNwf3pLk+CZTmVyBCi1rDMd65BTYTF8
xuTw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=E6DgWh1JdRYtQ8LQI4Es4ihAGIRvcUu95O1EGyfNWKo=;
b=EpjUfMoR/vOuiM0X3/j6LzWDGw4LabERqAfK/hq1Hdo26TFWyqeuYHFlm/Ic8DqLzw
3uPKfuPx9TO1Ji/L5r9VqY1o0NBtVbCZ0mJF194wu4eHr7dLZN1C0HDXU/s0QQGhlBNT
OQyUF3vpgspe3fhRxMLxDDwCbhlz/Q8ePLzJ175zL0cWD1y0PztsyLGEKhLlNKU1q45Q
DqVN42rpZ4cyvEl5ZvYlaOrPy3GnTZnz6RUPwj1L8+OyL/O8hLtxF4bsZ/8Y+Q+7+I6B
TxCP+1teFLUEkDGEhPo5D8n0aXoUXufoDp/WOWZs78Y/9U4dFdLeAu4xt2hC1aMs+d5B
3YhA==
X-Gm-Message-State: APt69E3LJZf9v8VnuwK8sT5E42Z/VQXPvTcjy2flsDCut5j0XleO6Cl7
LgoLADHysnzirO9MpjoKEZilC2DNT5Oqysy4NLQ=
X-Google-Smtp-Source: AAOMgpfH+5KN9meLm7rNFt4lVZTw4ii91F4lgYys2LtcbMTJlLUOcyeIka1JD+ZXjcFKrww8BBAc+9SWDNDABT3mGL0=
X-Received: by 2002:aca:4d0a:: with SMTP id
a10-v6mr4599560oib.175.1530466062254;
Sun, 01 Jul 2018 10:27:42 -0700 (PDT)
In-Reply-To: <87po0oi0qa.fsf@gmx.de>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 2607:f8b0:4003:c06::22f
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
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.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.org gmane.emacs.devel:226877
Archived-At:
--000000000000fb4e92056ff36546
Content-Type: text/plain; charset="UTF-8"
Michael Albinus schrieb am Mo., 18. Juni 2018 um
17:17 Uhr:
> Hi,
>
> these days I'm working on bug#31704. The point is, that for searching of
> programs, always `exec-path' (a list of local directories) is taken,
> even if the shell runs on a remote host. Therefore, I propose a new
> function `remote-exec-path'. In case of a remote `default-directory',
> the function returns a list of directories which belong to that
> host. Implemented via file name handlers. For a local
> `default-directory', `exec-path' is returned.
>
> And while we are at this, a second new function `remote-executable-find'
> comes to mind. Like `executable-find', it returns the local absolute
> file name of a command, also determined by `default-directory'. This
> function doesn't need file name handlers, it would use
> `remote-exec-path' for its implementation.
>
> I don't need `remote-executable-find' for fixing bug#31704, but I
> remember that such a function has been asked for in the past.
>
> Comments?
>
There have been multiple occasions where such functions would have been
handy for me, so I'm strongly in favor of adding them. Thanks!
--000000000000fb4e92056ff36546
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi,
these days I'm working on bug#31704. The point is, that for searching o=
f
programs, always `exec-path' (a list of local directories) is taken,
even if the shell runs on a remote host. Therefore, I propose a new
function `remote-exec-path'. In case of a remote `default-directory'=
;,
the function returns a list of directories which belong to that
host. Implemented via file name handlers. For a local
`default-directory', `exec-path' is returned.
And while we are at this, a second new function `remote-executable-find'=
;
comes to mind. Like `executable-find', it returns the local absolute
file name of a command, also determined by `default-directory'. This
function doesn't need file name handlers, it would use
`remote-exec-path' for its implementation.
I don't need `remote-executable-find' for fixing bug#31704, but I
remember that such a function has been asked for in the past.
Comments?
There have been multiple occasions where s=
uch functions would have been handy for me, so I'm strongly in favor of=
adding them. Thanks!=C2=A0
--000000000000fb4e92056ff36546--