From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.help
Subject: Re: Query about call-process
Date: Sun, 01 Apr 2018 17:21:37 +0000
Message-ID:
References: <87po3l1jv6.fsf@gmail.com>
<83h8ox8djw.fsf@gnu.org>
<83fu4g8zfv.fsf@gnu.org>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1522603232 25246 195.159.176.226 (1 Apr 2018 17:20:32 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 1 Apr 2018 17:20:32 +0000 (UTC)
Cc: help-gnu-emacs@gnu.org
To: Eli Zaretskii
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 01 19:20:28 2018
Return-path:
Envelope-to: geh-help-gnu-emacs@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 1f2geY-0006SX-Mz
for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Apr 2018 19:20:26 +0200
Original-Received: from localhost ([::1]:49660 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1f2ggY-0001N3-CB
for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Apr 2018 13:22:30 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36344)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1f2gfw-0001Md-Kd
for help-gnu-emacs@gnu.org; Sun, 01 Apr 2018 13:21:53 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1f2gfv-0004sG-Ot
for help-gnu-emacs@gnu.org; Sun, 01 Apr 2018 13:21:52 -0400
Original-Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:42726)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1f2gft-0004oh-Rm; Sun, 01 Apr 2018 13:21:50 -0400
Original-Received: by mail-lf0-x229.google.com with SMTP id a22-v6so17979243lfg.9;
Sun, 01 Apr 2018 10:21:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=DbAW3DCk9/HRPO/RL2fLjCDqs0SilQ5AKqrKckv1x50=;
b=f9dVdeW5UaL0V1EDamvAjGIwCEWNQkw+LLnEiLCdlyXnKK28m0oGvtoUWIKcgBzK7S
9L1d0CGeCxlwMdgJBuPR7BMwu+DAo+Qa9MGPZa14fQ3Cji+RY690xl0nxbrTT4x+VnqE
LmW5DHw8sedJwT3ncDEH2zGMczumpculUMqZ1dTrSvQsKwMMa7yAM4x9aCl0WKBd7wn+
EQO4m4M9Syk14ukb7Ij7PbXrD5kbFqDMt2IR8nKbSvQIS+PA6a7YAnNDJCO9AHdnxlRV
fd12iQdwrA//8dw+6lSuotL3BUjetQ66ChpqmANG2sQRpJqZ/GgaNHk2CP1ShX1Gy6is
Vr3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=DbAW3DCk9/HRPO/RL2fLjCDqs0SilQ5AKqrKckv1x50=;
b=pImKROfmtRWago2rCZcD3/ZB5guIIjSgDmPQrQmEvSm36JyIAGtBNU2gOy9Dtmozjg
lbMaiN/Vz5+ZD+VA3WcGvli/R5fwICUnVkH9BTWgVuDtE6FCB02F4u17hWuDCxYavoY/
e1zDntkNr5av7y+82aVnjwS646WxQGj3ufWRicfLo7xZTVW7Ag2LEmVwv31JM9/OxPov
T8SGbvB6cd+wWkIQtLy879Y7qu1MmSwiqzXSA3kBWHJAZpUNAMauKafLTJNDH/SqyLnx
IQyPUHBKM5kbPtWQGtKBE4YR4t8EGICjDN5AqPR8pqRiYeh43ca2o8gpYMQ4/YnJInuR
b0iw==
X-Gm-Message-State: ALQs6tD4zJR6ydH8+uYYHqRnYS3jT3393dIBNj0OBMdleGhFQQQPD+c5
4GMQ8iaVn1aLPEEgVn3jI/3MvKVtcnvfbIXgXw6W/w==
X-Google-Smtp-Source: AIpwx4+4jO4KdoUkDP2jrVplqxPPvcgBmzfA/QYHwoZZkVzLJ+y6dTXh0mps6hV9QDtJ/kOsUikgxT+QIFHntS0SRr8=
X-Received: by 2002:a19:136a:: with SMTP id
j103-v6mr3797111lfi.19.1522603308367;
Sun, 01 Apr 2018 10:21:48 -0700 (PDT)
In-Reply-To: <83fu4g8zfv.fsf@gnu.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 2a00:1450:4010:c07::229
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Users list for the GNU Emacs text editor
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "help-gnu-emacs"
Xref: news.gmane.org gmane.emacs.help:116304
Archived-At:
Eli Zaretskii schrieb am Sa., 31. M=C3=A4rz 2018 um 09:41 Uh=
r:
> > From: Philipp Stephani
> > Date: Fri, 30 Mar 2018 21:24:00 +0000
> > Cc: help-gnu-emacs@gnu.org
> >
> > Eli Zaretskii schrieb am Fr., 30. M=C3=A4rz 2018 um 23:2=
2 Uhr:
> >
> > > From: Philipp Stephani
> > > Date: Fri, 30 Mar 2018 19:44:25 +0000
> > > Cc: help-gnu-emacs
> > >
> > > Though the argument is a bit weird because `make-process' can do
> exactly
> > > that. It would just require changing `call-process' to use a select
> loop to
> > > achieve the same effect.
> >
> > Once you change call-process to do the same as make-process, what
> > would be the difference between those two?
> >
> > call-process would still wait for the process to finish.
>
> make-process can do that, too.
>
>
How? Probably it's some combination of make-process, process-send-region,
and accept-process-output, but I haven't yet figured out a combination that
doesn't make Emacs hang.