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: Fri, 30 Mar 2018 19:44:25 +0000 Message-ID: References: <87po3l1jv6.fsf@gmail.com> 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 1522438994 30909 195.159.176.226 (30 Mar 2018 19:43:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2018 19:43:14 +0000 (UTC) Cc: help-gnu-emacs To: Narendra Joshi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 30 21:43:10 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 1f1zvU-0007oR-Tv for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Mar 2018 21:43:05 +0200 Original-Received: from localhost ([::1]:37101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1zxY-0001sA-EJ for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Mar 2018 15:45:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1zx0-0001rA-Ru for help-gnu-emacs@gnu.org; Fri, 30 Mar 2018 15:44:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1zwz-0006mc-V8 for help-gnu-emacs@gnu.org; Fri, 30 Mar 2018 15:44:38 -0400 Original-Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:45447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1zwz-0006mN-NC for help-gnu-emacs@gnu.org; Fri, 30 Mar 2018 15:44:37 -0400 Original-Received: by mail-lf0-x229.google.com with SMTP id q5-v6so13673364lff.12 for ; Fri, 30 Mar 2018 12:44:37 -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=/TXDzzoTFLskEmSXzdZcMPNQxrwsWPicq+kPq09Q7SQ=; b=Is+qKKgob3m4mJWxFYF+5a+RgzeRgy+7WYY/Ii3DEaQIAL1JUyQG3FyxFtzurh7Fk5 SLUcqvur4nY8oelNNbhcE39PWWOeMVH1WKYtryznQln2v/rA7fBqa+LNraq0oCYUqjzd bWJniB6ee2tpx3jZdQrjWjqSdEjAIX4U1yF4m0D0Gp4iVT3A9GNIE++lgr2+ua6RDGyY S5RV5/WVQkzR2mKwWMOFQZZIH6uCxB2CQ8h9Uy95XQ+eQTqrPNcub/wSLbGZT0diQ3Ig yieTm3RrErFaDYpOiwCZ9vkwaVMysTcitg7KadUw3s1UqntHlw71vRtdkqrWyCrjzRQk 7vDg== 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=/TXDzzoTFLskEmSXzdZcMPNQxrwsWPicq+kPq09Q7SQ=; b=qs5L8zNSWG46LgI5fA4xUbUaPXDeNBUuLvZbDWfYL7fOuTf3ixatO7XZs7Pa5ck6G/ TsQoBnHnKNc/qSUc/M1xgWo2NPjA7NysCs5ICv4YuFkJC16kWb/45UmHa5lyJyCVr18O FC3ba8+i0NtRXXrUAWwWyMrKMhEaMhNQ1noB3fYrwvpTRB+Xf3LPOp2KSbjtIXFdl35k 4v4BKrMYkCe5ZlCvW4BVPEQLSp437iE4fmZ7TpX0f7KLdDTdVZyotcSzTCCq9fCepCfK 7OlcuqxCJqvoqdZoPOMvAnZ1sLFIHsSUQqJNqmNwAwVwut1NPiBNFks/PClnAkJTgHd8 u+7A== X-Gm-Message-State: ALQs6tAjdJlBupeONvGgnzP4sl7jZ906Uf43hKb0lKc7nfhIGkP2qXle Se9DZDJjtwuC2HQ/79JC1MUWRwwcUNS3DciByGU= X-Google-Smtp-Source: AIpwx487D4KNoFryw9HFCH7kB39gN+d4c6qXRUMypRIC3fJEG/Ml/4TOoTXmztuG6U17ERFNIZ1/6thJ5+FqIsNs5tk= X-Received: by 2002:a19:be4b:: with SMTP id o72-v6mr183580lff.20.1522439075864; Fri, 30 Mar 2018 12:44:35 -0700 (PDT) In-Reply-To: <87po3l1jv6.fsf@gmail.com> 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:116297 Archived-At: Narendra Joshi schrieb am Fr., 30. M=C3=A4rz 2018 um 20:49 Uhr: > Hi, > > The document string for `call-process' says that > > You can=E2=80=99t directly specify a buffer to put the error = output > > in; that is too difficult to implement. But you can achieve > > this result by sending the error output to a temporary file > > and then inserting the file into a buffer when the subprocess > > finishes. > > I would like to understand what makes doing this difficult? > It requires a select loop because you'd have to read from the stdout and stderr pipe simultaneously. For the same reason, standard input also has to come from a file. 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.