From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: New functions remote-exec-path and remote-executable-find Date: Mon, 18 Jun 2018 17:59:22 +0200 Message-ID: <8736xkcch1.fsf@gmail.com> References: <87po0oi0qa.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529337473 28237 195.159.176.226 (18 Jun 2018 15:57:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Jun 2018 15:57:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 18 17:57:49 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 1fUwXK-0007CL-Hx for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2018 17:57:46 +0200 Original-Received: from localhost ([::1]:35495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUwZR-0007z2-Kq for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2018 11:59:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUwYz-0007ju-PT for emacs-devel@gnu.org; Mon, 18 Jun 2018 11:59:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUwYw-00045F-PN for emacs-devel@gnu.org; Mon, 18 Jun 2018 11:59:29 -0400 Original-Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:40320) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUwYw-000454-HB for emacs-devel@gnu.org; Mon, 18 Jun 2018 11:59:26 -0400 Original-Received: by mail-wr0-x231.google.com with SMTP id l41-v6so17407624wre.7 for ; Mon, 18 Jun 2018 08:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=TSTrHE8i3FAYN5/TIq6Fl63mxwdtcpLUegOHtJdnN0Y=; b=l1DdsujUx/qyar14MJmWx2K1rzbD/bNXqfoGDqxf6C65VsL52LAQec+X4mr6r2MTuv jNSkvjjtDLvRFKbNh0hKpwNmoAU2gv4E6XPZzgjxntV6whBA7SGA5DlMWfYKlgrrmNdc FX5t112hgDhM19ekET4TrmCnKOAjZ1PYhnsBKulI6j21NhvXg8M5kxVuNFKMtw3rJIe7 YaIeE9zGPcSEaiwQ5G9ttLv35VcxYw5yX+/RedBMILo8CSbwdqSjMrXRoZAfvgpHsA16 MD4t1RML5BjUoWrOQ3u9DUZSbwHUMHuGAcmWE13ZazyD0/DkgL5UV2+o7i7FO5CZmIG4 1lqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version; bh=TSTrHE8i3FAYN5/TIq6Fl63mxwdtcpLUegOHtJdnN0Y=; b=nH6GbGRGF8ZOkHsRjE0NFtI1KvIlwTgtf6xOCeMX+AA54We4ijAsfy/XKb0o0KjXIC oAvRCgJm2RmT5NMcWfAOxbSGynpeuR9XS/0ksYI4sw9ZTInuOA8/71UQulkcMHvWwlDc qSgQH55bj/lbIqzN8Fny2eWVw6qYRaeBMSBAR0XGXS+1Pa4n26hNRumLSYYRhkK6/DZN lIgJ2Uc8hnkHVJT3pTbGaEhlxIN98tGpWA/+G4/esyp8wUHaPZ1CkctYO5fcz80HOwUF kSFBYaG5Ef6tUbbgyiXQvn4wzsIki5+uNv4nnin9PY6z3e1ioVdiXpOLRw+u9Mgsdmpr HwCg== X-Gm-Message-State: APt69E2TuGG61TG8QPiv0qBAD46JiLNE7od6aSZgbKlLuBlT/dpWcdmt w3Vip3qMehslzFwNyehq76kSe7+r X-Google-Smtp-Source: ADUXVKJYJkvbYCFNKUZsGO1VW/HF4qOjdLhcK+oX/wEYFbaUcHo+zzBlFOR1c5OmON9bnJM9h1+VUg== X-Received: by 2002:adf:b89b:: with SMTP id i27-v6mr10184255wrf.163.1529337564827; Mon, 18 Jun 2018 08:59:24 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id y186-v6sm10498920wmd.38.2018.06.18.08.59.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 08:59:23 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87po0oi0qa.fsf@gmx.de> (Michael Albinus's message of "Mon, 18 Jun 2018 17:16:29 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 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:226461 Archived-At: Michael Albinus writes: > 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. Hmm, is this not what connection-local variables are for? Robert