From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#33747: 26.1; process-send-string exceeds max-specpdl-size Date: Fri, 14 Dec 2018 22:23:16 +0100 Message-ID: <87mup7by63.fsf@metalevel.at> References: <87bm5o2e3u.fsf@metalevel.at> <83o99oeyuz.fsf@gnu.org> <874lbgeydc.fsf@metalevel.at> <83mup7g9yv.fsf@gnu.org> 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 1544822536 23265 195.159.176.226 (14 Dec 2018 21:22:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Dec 2018 21:22:16 +0000 (UTC) User-Agent: Emacs/24.5 Cc: 33747@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 14 22:22:12 2018 Return-path: Envelope-to: geb-bug-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 1gXuuR-0005uA-Dd for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Dec 2018 22:22:11 +0100 Original-Received: from localhost ([::1]:35498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXuwX-00007P-Is for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Dec 2018 16:24:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXuwJ-00005u-I5 for bug-gnu-emacs@gnu.org; Fri, 14 Dec 2018 16:24:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXuwF-0003gX-K3 for bug-gnu-emacs@gnu.org; Fri, 14 Dec 2018 16:24:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXuwF-0003gP-Et for bug-gnu-emacs@gnu.org; Fri, 14 Dec 2018 16:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gXuwD-0002JR-Qt for bug-gnu-emacs@gnu.org; Fri, 14 Dec 2018 16:24:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Dec 2018 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33747-submit@debbugs.gnu.org id=B33747.15448225998840 (code B ref 33747); Fri, 14 Dec 2018 21:24:01 +0000 Original-Received: (at 33747) by debbugs.gnu.org; 14 Dec 2018 21:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:48627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXuvX-0002IW-Cj for submit@debbugs.gnu.org; Fri, 14 Dec 2018 16:23:19 -0500 Original-Received: from metalevel.at ([78.46.218.83]:47014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXuvV-0002IN-KL for 33747@debbugs.gnu.org; Fri, 14 Dec 2018 16:23:18 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id 32F89A122B; Fri, 14 Dec 2018 22:23:16 +0100 (CET) In-Reply-To: <83mup7g9yv.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Dec 2018 21:54:48 +0200") 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-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:153463 Archived-At: Eli Zaretskii writes: > stopping everything else, so waiting for input from any source makes > perfect sense to me. In this concrete case, I am looking for a way to make Emacs not wait for, or at least not process, input from a specific process while sending output to a different process. For the case I posted, I can alleviate the issue a bit if I set: (setq max-specpdl-size 5000) However, if I then use for example the following definition of send-to-target instead of the one I posted: (defun send-to-target (proc str) (if (process-live-p target) (process-send-string target str) (kill-process source))) then I get, for the receipe I posted: Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99 This is unfortunate, because increasing this limit will eventually crash Emacs. The root cause is that process-send-string triggers the filter of the same process that caused the filter to be invoked. I find this unexpected, because the target process is different, and if possible, I would like a way do prevent this. Could you please consider adding a feature that prevents triggering the filter in such cases? Thank you and all the best! Markus