From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45951: 27.1; comint-redirect-results-list-from-process sometimes fails to skip over command if echoed Date: Tue, 19 Jan 2021 07:12:08 +0100 Message-ID: <87eeiho3pj.fsf@gnus.org> References: <8CD405D0-5936-4D36-A700-F753B428A5C3@pobox.com> <877do9r2s5.fsf@gnus.org> <2E84331E-C133-4324-9C76-B3CEB0904319@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39556"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45951@debbugs.gnu.org To: Richard Sharman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 19 07:13:24 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 1l1kGZ-000ACl-Oe for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 07:13:23 +0100 Original-Received: from localhost ([::1]:57228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1kGY-0000G7-QD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 01:13:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1kGF-0000Fy-Sa for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 01:13:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1kGE-0003kL-6e for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 01:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1kGE-0001Gz-2P for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 01:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 06:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45951 X-GNU-PR-Package: emacs Original-Received: via spool by 45951-submit@debbugs.gnu.org id=B45951.16110367394842 (code B ref 45951); Tue, 19 Jan 2021 06:13:02 +0000 Original-Received: (at 45951) by debbugs.gnu.org; 19 Jan 2021 06:12:19 +0000 Original-Received: from localhost ([127.0.0.1]:49164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1kFW-0001G1-Ul for submit@debbugs.gnu.org; Tue, 19 Jan 2021 01:12:19 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:55140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1kFV-0001Fp-R3 for 45951@debbugs.gnu.org; Tue, 19 Jan 2021 01:12:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9EFH1b72TdsGVUyJSkVlFS+Tltx55lx+IKeUF9rswUQ=; b=tYy3NuC+y1+GOqnWxnx3+egG4M LW7R4GoMYSQUU2plDhVKXV97IERruevtM2sVtu5DYMyn4zvyW+AIDTSAgoHyhqXUW/3s2Qkrjb52T OfichFDwrtcMt0a7LFcCxi0MfymhwXffriSTuSMYGu4GB4ccUvEaDu4qRXsKmCi8skSQ=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1kFN-0004H8-8c; Tue, 19 Jan 2021 07:12:11 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEX28/LKr57EhkRG MS7///+IzENCAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UBEwYLGXaD/OkAAAGOSURBVDjLjZQLbsQw CETj7QUMvkCMLxDM/e/WAfLxbquqrLSxeB6YECfb9s8g7tRm/ZkXs2Gmvi50B1OziJCwLGFGWyOz 4wOMLEJxWUH/A9QAtvoRlL/BZbiMMNNsct/c2nHmPRtM4ctugDwKcbhquhGUCZAnNus07Che/QQN +bzjvI96gmLT8zNZ3epeskez7nnvgICpnQMUd7kCTDPA1yVIoqSWinEJRNpsTWvTdjiAgC+Ftpfs XhzAW3utBIb6lCPx1tXOUKWSDzFBuQFM8gVQh3KAZnvOfP4E5GfDhLHFQZcTTEEHhsN9S9DE/0yl yxsQzFvpBUAfoA9MGEdT+QMM9KAS97+CGcDP7MQSA3oUjytXPGA8AJobCID9DtZYwVjSb8BNzTwn /rzegbeBJQnAXBPwGD5fHRKKmcezd0woDM+BrPACuPvrh92dqT+AO7ZJ9KCON/cGJP7z0x4LWnv4 PuyHwEvpCT6/DpdiFno+DqVSlVS0+eIXI8hdUO379f5pQeDUFOzGolaO/Df9f4gWmsdRPgAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMS0xOVQwNjoxMToyNSswMDowMAg/BA4AAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjEtMDEtMTlUMDY6MTE6MjUrMDA6MDB5YryyAAAAAElFTkSuQmCC X-Now-Playing: Slick's _For Discos Only (2)_: "Space Bass (Special 12Inch Disco Mix)" In-Reply-To: <2E84331E-C133-4324-9C76-B3CEB0904319@pobox.com> (Richard Sharman's message of "Mon, 18 Jan 2021 21:07:54 -0800") 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:198130 Archived-At: (Please keep the debbugs address in the CC header -- otherwise the bug tracker won't receive the message. Resent to put it into the tracker.) Richard Sharman writes: >> On Jan 18, 2021, at 8:03 PM, Lars Ingebrigtsen wrote: >>=20 >> Richard Sharman writes: >>=20 >>> The latter problem can be fixed by calling comint-carriage-motion before >>> the test is done; the former by looking-at (regexp-quote command) >>> instead of just at command. >>=20 >> This bit seems to have been fixed in Emacs 28. > > Ok, thanks. > >> On Jan 18, 2021, at 8:24 PM, Lars Ingebrigtsen wrote: >>=20 >> Lars Ingebrigtsen writes: >>=20 >>> comint-redirect-send-command-to-process: No prompt found or >>> =E2=80=98comint-prompt-regexp=E2=80=99 not set properly >>>=20 >>> Do you have a recipe, starting from "emacs -Q"? >>=20 >> Oh, we have to `M-x shell' manually first, and then we don't get that >> error. >>=20 > > Yes, I think that=E2=80=99s another bug I was going to look into but didn= =E2=80=99t. > After the M-x shell it works. > >> But the `M-x example' just infloops for me -- this bit never completes: >>=20 >> (while (and (null comint-redirect-completed) >> (accept-process-output process))) >>=20 > > I saw that once but couldn=E2=80=99t reproduce it. I *think* it happened = when > there was a comint process that had terminated (abnormally perhaps?) I > tried to see why accept-process-output didn=E2=80=99t return but it was in > C-code and I didn=E2=80=99t feel up to chasing it. I think I manually de= leted > the process but I may have restarted emacs; after that I didn=E2=80=99t s= ee it > happen again. > =E2=80=A6 > I tried running example.el just now from an emacs -Q and apart from > the =E2=80=9Cno prompt found=E2=80=9D it works fine; I haven=E2=80=99t be= en able to reproduce > the problem of accept-process-output not returning. > > Richard