From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add a module function to open a file descriptor connected to a pipe. Date: Thu, 26 Mar 2020 21:51:31 +0100 Message-ID: References: <20200326163021.111847-1-phst@google.com> <83369v9c1m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112308"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 26 21:52:28 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHZUJ-000T62-5E for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Mar 2020 21:52:27 +0100 Original-Received: from localhost ([::1]:60246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHZUI-0006ec-4p for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Mar 2020 16:52:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39928) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHZTe-0006EZ-TO for emacs-devel@gnu.org; Thu, 26 Mar 2020 16:51:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHZTd-00075t-Mf for emacs-devel@gnu.org; Thu, 26 Mar 2020 16:51:46 -0400 Original-Received: from mail-vs1-xe43.google.com ([2607:f8b0:4864:20::e43]:34265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHZTd-00073b-GX for emacs-devel@gnu.org; Thu, 26 Mar 2020 16:51:45 -0400 Original-Received: by mail-vs1-xe43.google.com with SMTP id b5so4883917vsb.1 for ; Thu, 26 Mar 2020 13:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=L8XeYdk4bvSrYnyVuyzRq/HzOT7/LoXqaAj5H7wb9dU=; b=D3LbfZXW0VYGhpZL4v0Iry+TvlBkcgG3iC/x6n/KSmFxKwPhOLj1dR+nvmAd0oMppU ZwLA/uGukkRYWdnX3QHFzMMp3UPAzCl9W5W6skkbb5DhYupmnRqlFcIRqnUAja/QhzpV 7M9J1mRSBgPpEAeY04O6u6UOq8RNx20yOimCeA4qAQ5LCqCXfuZ5XrqhpWauejKq+Iv0 pLjMISl0Ef3PXyPbKJmMCR2lTBfu5dCJouwYTAFdw/IDW40c9T7h6rayipSc1nXi0Sae GHfrOCucnmtyOQxHc8nsRHpirqZDayEPD65xkecpXwJC6eayrPK7Jhuby8XUoB0DJROC nbog== 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:content-transfer-encoding; bh=L8XeYdk4bvSrYnyVuyzRq/HzOT7/LoXqaAj5H7wb9dU=; b=DSVCxYfIjrXTpBsE+sfrXI93Lg3CjHKmu+SM5d1ZBxZZV16zcj7vmAqcWQ62LCaNtz VSr2vE1wpeX5r9cwWU+ABU2QH/j8b1B/ugpKikPmAo51Jl1zuDB/S2+5utukcwJPkeBl Iqb4Odc9ogGHH8d1H0reBtTcggTLxfvbs2L5TY5E0duHyjyEhg7JtvFSaZf7m6Dpz5x8 tmOwiKGie3z9HT3rt8e+dGNqS9kJEF2pfboKrMRG9DOodQLVUqCGRuY1dH9+xS4zQ+fG ldQC4y4acjuh5LpHiREvLDJ/CBjzPEwOYo6DnmjwkUieojud6s4s7BypD5GqitcZaEQp o2Dw== X-Gm-Message-State: ANhLgQ2C2GQpyQvMh1ZtxuW+XXv37twb8wXYevD9zU0jLDuCVbc5uBmW 8jURfeR05BW9430YfKTTrnXlet8brRPA24b/crrGlw== X-Google-Smtp-Source: ADFU+vvqGaHXJyCV8eiECBXBJ7PTn1oHus+TqPM8jJhEl5FooVZ6vtsczv+bTIWqLRihvj4DYs/qCR5tFG+Wvw0L3zA= X-Received: by 2002:a67:1dc2:: with SMTP id d185mr9235941vsd.107.1585255903889; Thu, 26 Mar 2020 13:51:43 -0700 (PDT) In-Reply-To: <83369v9c1m.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::e43 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245822 Archived-At: Am Do., 26. M=C3=A4rz 2020 um 20:00 Uhr schrieb Eli Zaretskii : > > > From: Philipp Stephani > > Date: Thu, 26 Mar 2020 17:30:21 +0100 > > Cc: Philipp Stephani > > > > This patch implements a function that adapts an existing pipe > > process. That way, users can use familiar tools like process filters > > or 'accept-process-output'. > > > > * src/module-env-28.h: Add 'open_channel' module function. > > > > * src/emacs-module.c (module_open_channel): Provide definition for > > 'open_channel'. > > (initialize_environment): Use it. > > > > * src/process.c (open_channel_for_module): New helper function. > > (syms_of_process): Define necessary symbol. > > > > * test/src/emacs-module-tests.el (module/async-pipe): New unit test. > > > > * test/data/emacs-module/mod-test.c (signal_system_error): New helper > > function. > > (signal_errno): Use it. > > (write_to_pipe): New function running in the background. > > (Fmod_test_async_pipe): New test module function. > > (emacs_module_init): Export it. > > > > * doc/lispref/internals.texi (Module Misc): Document new module > > function. > > > > * doc/lispref/processes.texi (Asynchronous Processes): New anchor > > for pipe processes. > > Thanks, but please also call out the change in NEWS. Ah, I always forget that. Done, and pushed as d28b00476890f791a89b65007e5f20682b3eaa0d. --=20 Google Germany GmbH Erika-Mann-Stra=C3=9Fe 33 80636 M=C3=BCnchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Gesch=C3=A4ftsf=C3=BChrer: Matthew Scott Sucherman, Paul Terence Manicle Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3=B6schen Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank= . This e-mail is confidential. If you are not the right addressee please do not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks.