bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30862: 25.3; Need variant of `make-process' that uses file name hand


From: Michael Albinus
Subject: bug#30862: 25.3; Need variant of `make-process' that uses file name handlers
Date: Wed, 21 Mar 2018 13:50:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Philipp <p.stephani2@gmail.com> writes:

Hi Philipp,

> Most fundamental process-related functions (call-process, start-process)
> have variants that take file name handlers into account, except
> make-process.  Since make-process is more powerful than start-process,
> it should also have a variant that honors file name handlers.  For
> example, it could accept another keyword argument ‘:file-handlers’
> which, if non-nil, would invoke file name handlers based on
> ‘default-directory’.

I don't believe we need an extra keyword. It could be handled like
start-file-process and process-file: if default-directory matches an
entry in file-name-handler-list, the respective handler is called;
otherwise the native implementation is applied.

It is up to the file name handler to decide, whether a fallback to the
native implementation shall be applied.

This is different to the behavior of call-process and start-process;
callees of make-process must be aware that a process on a remote host
could be started.

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]