From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: misbehavior in shell window with ksh Date: Mon, 01 May 2017 16:41:06 +0200 Message-ID: <87inlkzlkt.fsf@rosalinde> References: <12812.1493593946@alto> <83o9vdjcl6.fsf@gnu.org> <87pofszvue.fsf@rosalinde> <837f20ke4g.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493649720 14072 195.159.176.226 (1 May 2017 14:42:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 May 2017 14:42:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, mkupfer@alum.berkeley.edu To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 16:41:53 2017 Return-path: Envelope-to: ged-emacs-devel@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 1d5CWO-0003Wn-CB for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 16:41:52 +0200 Original-Received: from localhost ([::1]:54607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5CWT-00067m-Kh for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 10:41:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5CVs-00066u-Uw for emacs-devel@gnu.org; Mon, 01 May 2017 10:41:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5CVs-00022J-7M for emacs-devel@gnu.org; Mon, 01 May 2017 10:41:21 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:56484) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5CVo-00021a-9t; Mon, 01 May 2017 10:41:16 -0400 Original-Received: from rosalinde ([83.135.15.84]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MgKUo-1dPVLu1Bby-00NlFv; Mon, 01 May 2017 16:41:08 +0200 In-Reply-To: <837f20ke4g.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 May 2017 14:31:11 +0300") X-Provags-ID: V03:K0:VmS8c2bvv0+Z+AFwo6oa0ji0wOw9SWCiVmgwROCD5KypKLpL2eA gblwLuTWHO1/EAhaXSeQ1BSAV22E2Z0bSCOO+SCF6Dyv/pBveg8FrCwSmwVtncNSx0BPjxm knBst7BLXAfAOujLiXeSQuW1IDWLB5tvLfGgeB2Ng2ij8GgRAVC9/MEs7k/TqHisMZCw9ac /fwkMgU9fIhfBr/ubFAhg== X-UI-Out-Filterresults: notjunk:1;V01:K0:5RnyRSP3DjM=:IoOoE9ocqyw4Ffgmu7GqDp oe6RZAeBO+o3pJH8J1cUQQJA4e/THOSGUe9YLDbxj7KZv8PjEVYWCbx7DT5x44+4boowIqPFz 9/3uYmB0dnmK8W5oom282h1ftfXvRe1oYG7pnU+RBZkyJO3FSbrUBlQxnQHPFlhlHBht+ml/s czQeGcTz13iGzLlazWuSOX26bQbdNbdUOjVZK8zUOBqkTlEBgfxqyFAvvHlpEwD0xvBqpvrAK /pN8jQBP21ViJ48A0XETcyLl6RwOMrRVHVbC1HEGVPpdGyM5UW3THnQrNXI+MaxxrT8EQ/lBy QOLQFxfQ5gm5/ArcgqdAcpfHK4e3/pYOJkHjba1qreM7vGxLJ6v94mR/ghBVOLfHeXnxbDAoX unSoNrNGoE6NShsh7XJ6GZw+NtG0OrRgzbZxdF5niTCxikEz560QhCqgKSjAoWfK83SJrAXEs oahV9qDwZpagRcNNG/k+OlBlKtLNCGzPueAMp8izp0SjyL24j7XOSncnVN2LReehNM2gwvHvA t9HE1XUlz0DJUwLXdx4TmEg2fiuuWwt5/imrBTD0jqf6h8v91KZEOVdNUBWtcpY4EDRTVGwO9 ig8g5A4zrcW5VXqvxHbD1GxIMsKYbJpujpm14LkFRrs5mRBps9lXB/UidGlkYXF2+ZSgzks+a KfJGnRhj8Eegfe5AHr9shHXURwmOwIax+Q4HJPD8KjXsVXdg5oS8msyQJ/EAcPR/4GmS1R+5V DR7eUCpvuDY7nKS2mZ7QKm1L8UcHZMQ9yVutxiogJ1/HEXbyxLQicmhADOwxsSV3Fimvh4vH X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214484 Archived-At: On Mon, 01 May 2017 14:31:11 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: Mike Kupfer , emacs-devel@gnu.org >> Date: Mon, 01 May 2017 12:59:21 +0200 >> >> > I cannot reproduce this, neither with Emacs 25.2 nor with the latest >> > master branch. >> > >> > Does this happen in a -nw session as well, or only in GUI frames? >> >> I can reproduce this with both -Q and -Q -nw in latest master (details >> below). I also noticed that (any?) non-self-insertion keyboard events >> reproduce the behavior, e.g. `t TAB' adds anoth `>' at the prompt, and >> then `C-g' to kill the *Completions* buffer adds another `>', and then >> RET returns: >> ^L^Lt: not found [No such file or directory] >> (Then ^L are really control characters.) > > Thanks, can you debug this to see what's causing the problem? By edebugging shell.el and comint.el I see that after typing `C-x 0' in the recipe, the function comint-output-filter is invoked with the value # for its argument `proc' and the value "> " for its argument `string', and the latter value is what is inserted into the *shell* buffer. I have failed to find out how that argument gets that value or even how comint-output-filter gets invoked. If anyone has any advice for how to proceed, I can try it. Steve Berman