all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* New functions remote-exec-path and remote-executable-find
@ 2018-06-18 15:16 Michael Albinus
  2018-06-18 15:59 ` Robert Pluim
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michael Albinus @ 2018-06-18 15:16 UTC (permalink / raw)
  To: emacs-devel

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?

Best regards, Michael.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-07-01 17:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-18 15:16 New functions remote-exec-path and remote-executable-find Michael Albinus
2018-06-18 15:59 ` Robert Pluim
2018-06-18 16:47   ` Michael Albinus
2018-06-19  1:19 ` Stefan Monnier
2018-06-19  8:16   ` Michael Albinus
2018-06-19 12:52     ` Michael Albinus
2018-07-01 17:27 ` Philipp Stephani
2018-07-01 17:41   ` Michael Albinus

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.