From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Sharman Newsgroups: gmane.emacs.bugs Subject: bug#30059: 25.3; Wrong value for comint-process-echoes will cause comint-send-input to hang Date: Sat, 6 Feb 2021 17:04:31 -0800 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_55E134F4-5A10-4F73-9123-7582717FEA60" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6514"; mail-complaints-to="usenet@ciao.gmane.io" To: 30059@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 02:05:10 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 1l8YVi-0001bO-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 02:05:10 +0100 Original-Received: from localhost ([::1]:37056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8YVh-0007AT-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Feb 2021 20:05:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8YVa-0007AK-Gy for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 20:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8YVa-0001zD-9p for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 20:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8YVa-0007Cb-2b for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 20:05:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Richard Sharman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 01:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30059 X-GNU-PR-Package: emacs Original-Received: via spool by 30059-submit@debbugs.gnu.org id=B30059.161265988127653 (code B ref 30059); Sun, 07 Feb 2021 01:05:02 +0000 Original-Received: (at 30059) by debbugs.gnu.org; 7 Feb 2021 01:04:41 +0000 Original-Received: from localhost ([127.0.0.1]:46701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8YVF-0007Bx-IL for submit@debbugs.gnu.org; Sat, 06 Feb 2021 20:04:41 -0500 Original-Received: from mx4.ncf.ca ([172.83.172.18]:56786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8YVC-0007Bj-TI for 30059@debbugs.gnu.org; Sat, 06 Feb 2021 20:04:39 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mx4.ncf.ca (Postfix) with ESMTP id 757E719C8E for <30059@debbugs.gnu.org>; Sat, 6 Feb 2021 20:04:33 -0500 (EST) X-Virus-Scanned: Ubuntu amavisd-new at Original-Received: from mx4.ncf.ca ([127.0.0.1]) by localhost (mx4.ncf.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W80oLVylnFRo for <30059@debbugs.gnu.org>; Sat, 6 Feb 2021 20:04:33 -0500 (EST) Original-Received: from mail.ncf.ca (mail.ncf.ca [172.83.172.45]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx4.ncf.ca (Postfix) with ESMTPS id F00D319BD1 for <30059@debbugs.gnu.org>; Sat, 6 Feb 2021 20:04:32 -0500 (EST) Original-Received: from [192.168.0.103] (172.103.218.35.cable.tpia.cipherkey.com [172.103.218.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: fo019@ncf.ca) by mail.ncf.ca (Postfix) with ESMTPSA id ABD1728833 for <30059@debbugs.gnu.org>; Sat, 6 Feb 2021 20:04:32 -0500 (EST) X-Mailer: Apple Mail (2.3445.9.7) 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:199464 Archived-At: --Apple-Mail=_55E134F4-5A10-4F73-9123-7582717FEA60 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii A simple fix is to add a timeout value to the call to = accept-process-output. For example, adding a 1 second timeout not only = allows it to recover but also allows Control-g to be honoured. Because = control-g now is not ignored, the value could be increased = substantially, say to 10 [seconds]. --Apple-Mail=_55E134F4-5A10-4F73-9123-7582717FEA60 Content-Disposition: attachment; filename=Patch-comint-send-input.txt Content-Type: text/plain; x-unix-mode=0644; name="Patch-comint-send-input.txt" Content-Transfer-Encoding: 7bit --- comint.el.orig 2021-02-06 16:55:28.000000000 -0800 +++ comint.el 2021-02-06 16:57:24.000000000 -0800 @@ -1922,7 +1922,7 @@ ;; Wait for all input to be echoed: (while (and (> (+ comint-last-input-end echo-len) (point-max)) - (accept-process-output proc) + (accept-process-output proc 1) (zerop (compare-buffer-substrings nil comint-last-input-start --Apple-Mail=_55E134F4-5A10-4F73-9123-7582717FEA60--