all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 30862@debbugs.gnu.org
Subject: bug#30862: 25.3; Need variant of `make-process' that uses file name handlers
Date: Mon, 17 Dec 2018 00:10:31 +0100	[thread overview]
Message-ID: <CAArVCkSsNOZWfTr9pGZxP20zFVQDPQkGJrFSo3pcFo4GRoyv2g@mail.gmail.com> (raw)
In-Reply-To: <87fu4t1tk3.fsf@gmx.de>

Am Mi., 21. März 2018 um 13:50 Uhr schrieb Michael Albinus
<michael.albinus@gmx.de>:
>
> 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.

I don't see why call-process and make-process should behave
differently in this regard. For call-process and start-process the
caller has to explicitly opt in into applying file name handlers (by
calling different functions); presumably because people consider it
too dangerous to accidentally start random processes on remote
machines. Why should make-process be different?





  reply	other threads:[~2018-12-16 23:10 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
2018-12-16 23:10   ` Philipp Stephani [this message]
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

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

  git send-email \
    --in-reply-to=CAArVCkSsNOZWfTr9pGZxP20zFVQDPQkGJrFSo3pcFo4GRoyv2g@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=30862@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /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 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.