From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13400: 23.4; overlapping process filter calls Date: Sat, 27 Jul 2019 11:24:25 +0300 Message-ID: <835znnnavb.fsf@gnu.org> References: <87r4ltpctd.fsf@wallace.tews.net> <87o91guoxl.fsf@gmail.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="146890"; mail-complaints-to="usenet@blaine.gmane.org" Cc: hendrik@askra.de, 13400@debbugs.gnu.org, monnier@iro.umontreal.ca To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 10:25:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrI0q-000c0G-Hc for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 10:25:08 +0200 Original-Received: from localhost ([::1]:44542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrI0o-0005xX-4H for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 04:25:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55041) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrI0l-0005xR-1O for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 04:25:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrI0k-0003wQ-34 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 04:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrI0j-0003vi-VZ for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 04:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrI0j-0003KJ-Pt for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 04:25:01 -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, 27 Jul 2019 08:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13400 X-GNU-PR-Package: emacs Original-Received: via spool by 13400-submit@debbugs.gnu.org id=B13400.156421588012754 (code B ref 13400); Sat, 27 Jul 2019 08:25:01 +0000 Original-Received: (at 13400) by debbugs.gnu.org; 27 Jul 2019 08:24:40 +0000 Original-Received: from localhost ([127.0.0.1]:43577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrI0N-0003Je-Vt for submit@debbugs.gnu.org; Sat, 27 Jul 2019 04:24:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrI0M-0003JR-HU for 13400@debbugs.gnu.org; Sat, 27 Jul 2019 04:24:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hrI0G-0002n0-0B; Sat, 27 Jul 2019 04:24:32 -0400 Original-Received: from [176.228.60.248] (port=4793 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hrI0F-0005R8-BO; Sat, 27 Jul 2019 04:24:31 -0400 In-reply-to: <87o91guoxl.fsf@gmail.com> (message from Noam Postavsky on Fri, 26 Jul 2019 23:38:46 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163826 Archived-At: > From: Noam Postavsky > Date: Fri, 26 Jul 2019 23:38:46 -0400 > Cc: 13400@debbugs.gnu.org, Stefan Monnier > > > - Section "37.9 Receiving Output from Processes" does not list > > process-send-string. How about other blocking I/O functions? > > In the attached patch, I've added a mention/xref for functions which send > data to processes. > > > - Same in "37.9.2. Process Filter Functions" > > This section is repeated twice (I addressed the second instance below). > > > - Same in "37.4 Creating an Asynchronous Process" , > > process-send-string is neither waiting for input not time > > delay. > > I don't see any mention of process-send-string in that section, nor how > it's relevant to the rest of this report. > > > - "37.7 Sending Input to Processes" says that filters can run > > inside process-send-string, but it could be clearer about the > > point that this can also happen inside the same filter for the > > same process. > > I'm not really convinced that is necessary. > > > - "37.9.2 Process Filter Functions" ignores the problem > > completely. There should be a paragraph clearly stating this > > problem. Further, it would be nice, if the filter function > > example could be extended to correctly deal with this problem. > > I added a mention of the possibility of recursion. I'm not sure about > making an example (specifically, what is the best way to deal with this > problem?). I agree with Noam's decisions, and think that his patch is fine. Thanks.