From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#34535: 27.0.50; emacs -nw: while-no-input + sit-for + => Quit Date: Sat, 23 Feb 2019 10:13:21 -0500 Message-ID: References: <87r2c4ennz.fsf@web.de> <83k1hrrejp.fsf@gnu.org> <87pnrjqgcn.fsf@web.de> <834l8urk3j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="53004"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Michael Heerdegen , 34535@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 16:14:13 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxZ0H-000Dgs-1i for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2019 16:14:13 +0100 Original-Received: from localhost ([127.0.0.1]:39032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxZ0F-0001bR-VB for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2019 10:14:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxZ07-0001bE-4r for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 10:14:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxZ06-0008Nl-HM for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 10:14:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxZ06-0008NC-By for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 10:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gxZ06-0007Wh-3E for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 10:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Feb 2019 15:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34535 X-GNU-PR-Package: emacs Original-Received: via spool by 34535-submit@debbugs.gnu.org id=B34535.155093480728886 (code B ref 34535); Sat, 23 Feb 2019 15:14:02 +0000 Original-Received: (at 34535) by debbugs.gnu.org; 23 Feb 2019 15:13:27 +0000 Original-Received: from localhost ([127.0.0.1]:49503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxYzX-0007Vo-Gp for submit@debbugs.gnu.org; Sat, 23 Feb 2019 10:13:27 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:49784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxYzT-0007Ve-Ax for 34535@debbugs.gnu.org; Sat, 23 Feb 2019 10:13:26 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x1NFDLAo024319; Sat, 23 Feb 2019 10:13:21 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0CEFE65380; Sat, 23 Feb 2019 10:13:21 -0500 (EST) In-Reply-To: <834l8urk3j.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Feb 2019 10:21:20 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6489=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6489> : inlines <7020> : streams <1813879> : uri <2801086> 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:155693 Archived-At: > IOW, I think while-no-input does not (and cannot) reliably produce > deterministic output in the case where BODY itself reads input. We > try to DTRT, but there can be no general guarantees in these cases. Thanks, Eli. Indeed, "TRT" is not even clear here. Some things are clearly not right, but if we look a bit further it quickly gets murky. Regarding your patch. I'm not sure it's "TRT" but given the murky/messy context it looks good to me. Hopefully at some point someone can sit down and think through the whole way we handle "quit" and try to clean it up. Stefan