unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Philipp <p.stephani2@gmail.com>
Cc: 30862@debbugs.gnu.org
Subject: bug#30862: 25.3; Need variant of `make-process' that uses file name handlers
Date: Wed, 21 Mar 2018 13:50:36 +0100	[thread overview]
Message-ID: <87fu4t1tk3.fsf@gmx.de> (raw)
In-Reply-To: <m2zi33svag.fsf@gmail.com> (Philipp's message of "Mon, 19 Mar 2018 20:46:31 +0100")

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	other threads:[~2018-03-21 12:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-19 19:46 bug#30862: 25.3; Need variant of `make-process' that uses file name handlers Philipp
2018-03-21 12:50 ` Michael Albinus [this message]
2018-12-16 23:10   ` Philipp Stephani
2018-12-17  8:44     ` Michael Albinus
2018-12-17 16:05       ` Eli Zaretskii
2018-12-17 17:18         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fu4t1tk3.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=30862@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).