From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amirouche Boubekki Newsgroups: gmane.lisp.guile.bugs Subject: bug#15228: making open-process public Date: Sat, 03 Sep 2016 09:33:32 +0200 Message-ID: <145cea679b38ca9de4e8b1c9f2213622@hypermove.net> References: <1377937797.2030.5.camel@qwghlm> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1472888060 22531 195.159.176.226 (3 Sep 2016 07:34:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Sep 2016 07:34:20 +0000 (UTC) User-Agent: Roundcube Webmail/1.1.2 To: 15228@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Sep 03 09:34:16 2016 Return-path: Envelope-to: guile-bugs@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 1bg5Sv-00057w-If for guile-bugs@m.gmane.org; Sat, 03 Sep 2016 09:34:13 +0200 Original-Received: from localhost ([::1]:45267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bg5St-0003vy-1x for guile-bugs@m.gmane.org; Sat, 03 Sep 2016 03:34:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bg5Sn-0003uK-K2 for bug-guile@gnu.org; Sat, 03 Sep 2016 03:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bg5Sk-0008Ej-Es for bug-guile@gnu.org; Sat, 03 Sep 2016 03:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bg5Sk-0008Ef-BQ for bug-guile@gnu.org; Sat, 03 Sep 2016 03:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bg5Sk-0001qg-5X for bug-guile@gnu.org; Sat, 03 Sep 2016 03:34:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <1377937797.2030.5.camel@qwghlm> Resent-From: Amirouche Boubekki Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 03 Sep 2016 07:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15228 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 15228-submit@debbugs.gnu.org id=B15228.14728880177072 (code B ref 15228); Sat, 03 Sep 2016 07:34:02 +0000 Original-Received: (at 15228) by debbugs.gnu.org; 3 Sep 2016 07:33:37 +0000 Original-Received: from localhost ([127.0.0.1]:48240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bg5SK-0001q0-WE for submit@debbugs.gnu.org; Sat, 03 Sep 2016 03:33:37 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bg5SJ-0001pr-Aa for 15228@debbugs.gnu.org; Sat, 03 Sep 2016 03:33:35 -0400 Original-Received: from mfilter20-d.gandi.net (mfilter20-d.gandi.net [217.70.178.148]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 2BC94A80C7 for <15228@debbugs.gnu.org>; Sat, 3 Sep 2016 09:33:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter20-d.gandi.net Original-Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter20-d.gandi.net (mfilter20-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id qhDPqNtxrcZF for <15228@debbugs.gnu.org>; Sat, 3 Sep 2016 09:33:32 +0200 (CEST) X-Originating-IP: 10.58.1.148 Original-Received: from webmail.gandi.net (webmail8-d.mgt.gandi.net [10.58.1.148]) (Authenticated sender: amirouche@hypermove.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPA id C9519A80C8 for <15228@debbugs.gnu.org>; Sat, 3 Sep 2016 09:33:32 +0200 (CEST) X-Sender: amirouche@hypermove.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8400 Archived-At: Wingo wrote: > We could just expose `open-process' from (ice-9 popen) to start with. AFAIK, that's what Mark wants. Here is an example use of `open-process' to wrap `html2text': (use-modules (ice-9 popen)) (define open-process (@@ (ice-9 popen) open-process)) (define (html2text string) (with-error-to-file "/dev/null" (lambda () (call-with-values (lambda () (open-process OPEN_BOTH "html2text")) (lambda (read-port write-port pid) (display string write-port) (close-port write-port) (let ((str (read-string read-port))) (close-port read-port) (waitpid pid) str)))))) IIUC to achieve this goal, I need to make `open-process' public in `ice-9 popen` module and add documentation for it? Is that correct?