From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51177: 29.0.50; stop-process on pipes Date: Sat, 16 Oct 2021 19:47:31 +0300 Message-ID: <83fst0hq70.fsf@gnu.org> References: <83r1cpnknc.fsf@gnu.org> <87v920cada.fsf@miha-pc> <87o87rzwt4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28546"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 51177@debbugs.gnu.org, jakanakaevangeli@chiru.no To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 16 18:48:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mbmr5-0007Fm-97 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 18:48:19 +0200 Original-Received: from localhost ([::1]:47866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbmr3-0005Ve-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 12:48:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbmqo-0005VU-Df for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 12:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbmqo-000374-3F for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 12:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbmqo-0008Jc-1Z for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Oct 2021 16:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51177 X-GNU-PR-Package: emacs Original-Received: via spool by 51177-submit@debbugs.gnu.org id=B51177.163440285831865 (code B ref 51177); Sat, 16 Oct 2021 16:48:01 +0000 Original-Received: (at 51177) by debbugs.gnu.org; 16 Oct 2021 16:47:38 +0000 Original-Received: from localhost ([127.0.0.1]:42920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbmqQ-0008Hr-Bo for submit@debbugs.gnu.org; Sat, 16 Oct 2021 12:47:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbmqO-0008H1-IK for 51177@debbugs.gnu.org; Sat, 16 Oct 2021 12:47:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52706) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbmqI-0002ae-A8; Sat, 16 Oct 2021 12:47:30 -0400 Original-Received: from [87.69.77.57] (port=2031 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbmqH-0002UI-TN; Sat, 16 Oct 2021 12:47:30 -0400 In-Reply-To: (message from Helmut Eller on Sat, 16 Oct 2021 18:24:02 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217376 Archived-At: > From: Helmut Eller > Date: Sat, 16 Oct 2021 18:24:02 +0200 > Cc: 51177@debbugs.gnu.org, jakanakaevangeli@chiru.no > > On Thu, Oct 14 2021, Lars Ingebrigtsen wrote: > > > Helmut Eller writes: > > > >> I did not read the docstring but I did read the manual. This feature is > >> not described in the manual. At least not near set-process-filter. > > > > Yup. I've now documented the t value in the manual in emacs-28. > > The t value also doesn't seem be handled correctly by make-process: > > (ert-deftest test-filter=t () > (let ((p (make-process :command '("dd" "if=/dev/zero" "count=0") > :name "foo" > :filter t))) > ;;(set-process-filter p t) > (while (eq (process-status p) 'run) > (accept-process-output p)))) > > when executed with > > emacs -Q --batch -l test.el -f ert-run-tests-batch-and-exit > > produces: > > Running 1 tests (2021-10-16 18:21:53+0200, selector ‘t’) > Test test-filter=t backtrace: > t(# "0+0 records in\n0+0 records out\n") > accept-process-output(#) What do we expect to happen when a Lisp program calls accept-process-output on a process that is stopped?