From unknown Sat Jun 14 18:51:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59150 <59150@debbugs.gnu.org> To: bug#59150 <59150@debbugs.gnu.org> Subject: Status: 28.1; Comint shell silently send ^L Reply-To: bug#59150 <59150@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:51:26 +0000 retitle 59150 28.1; Comint shell silently send ^L reassign 59150 emacs submitter 59150 LdBeth severity 59150 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 11:42:56 2022 Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 16:42:56 +0000 Received: from localhost ([127.0.0.1]:40698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osoAA-0001w5-Sr for submit@debbugs.gnu.org; Wed, 09 Nov 2022 11:42:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:52860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osoA2-0001vp-KI for submit@debbugs.gnu.org; Wed, 09 Nov 2022 11:42:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osoA2-00023t-Ev for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 11:42:46 -0500 Received: from out162-62-57-64.mail.qq.com ([162.62.57.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oso9u-0007WP-5V for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 11:42:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1668012141; bh=d+6+7Lx7uVqmMwtRT5h+aPFa/0B2POV6sVtgeHiVZqM=; h=Date:From:To:Subject; b=dd9zQfND/O5cU4MjrrEpTB/V5IW0/g5N0ekhrjKWhHZ1ftpliWBBKZ8PvAAvW4nMH 752q/Gohp1gx3R6Cz+hGkmKcSynCEHlpdfXe3HaZyF3j7arWVv3grM9bsRbAJTbG+o W56wRCX+/xRaB/dNij1dTSW9VTNBgdUG3Kf6QWZ8= Received: from Costume-Party.local ([131.204.254.86]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 6B784641; Thu, 10 Nov 2022 00:26:55 +0800 X-QQ-mid: xmsmtpt1668011215t8l5knxcj Message-ID: X-QQ-XMAILINFO: NpCdqwxiXRk8YEee2aDtwjhRdyvED0UQx52l5jG7uuY4do8mvaoyAYhZ1ay6Zb nXCsMqUPiWiLJXSzxt7F5/THiXLIfRXTYYbd0m3QcjnvnmseAmSqLSHr/BppR88xGEF4azHkc3se rpQ34Lh4l1WVZ5Cnz37BXP79ZAGue7xpYS1Xa1Kk1lXY6cUUxttWMhktR1vH7sQvMM/ZET+dJoRO 8eyBXKoyr0/kUAhrb9ykhP6sLKw3NHkrBin1JmTWjvdxwLFgpd2tTiT5uNh816if7Knxwcs8HP5n ZYQ3d0ALvQr9LSIt2f5O3gyxo8ehP9tJ1KtiMA7QlFta7Uj0sy/ZmcRMaiE8yS7aSIpXp5e5sl28 JOF2hMy/DV++L9iuyQseiSTtek31a5hbgY6njWayS0UXvnKuJCQ+rD0H/BPS5ehsBVECU9/25XW6 h8EgmVAu9HHeZXprQ9hAUURuB0oAeyPNeCJtn4OX2OGL/trtz3HtjqVfOmvT87Gi2sDv3mMH6+QH DCoy0P8NlpV4aO+7zjKmm60tbt0Qye2+tgRO3HdktlNsOKNJo3ZCYxUEFu0Xz6qyChnB6etmMHI+ I4t7Qlg72Ahxzqp3WsPRycFkZ5CzQpvH77UsuQYEomHEk6AyBf6jAz91xRqYx0SOXl6XZoyaTT/B 6Iy6lSbaGOEiHTr1yjyjyNi17DexzZ28I+vvwTCG4hkMHAvvh1m+6GcAHvDfh+fxomACbqwcqJF9 QD873lU8pS8JSWB0qR1YRSAlQdhxQKaZ1QmF3qTiNBTnNqf4FqHSAdUUYJdNun3OZpisU9uDmEYq WfOrLDak/V4L430dhVTmtKgwpHbaF/hHX5BlTUv5i57SLgK+rLlc1rU3zK3idgNZXvwloD8yxQ4w EAMPbG5GS+9610Y1GJdFd7mWU/Ztte0D9AHddljJuA/K6+nBq/u9D0K1hmAcf9F1x/OrJdBdbA Received: by Costume-Party.local (Postfix, from userid 501) id 44343204C5455E; Wed, 9 Nov 2022 10:26:53 -0600 (CST) Date: Wed, 09 Nov 2022 10:26:53 -0600 X-OQ-MSGID: From: LdBeth To: bug-gnu-emacs@gnu.org Subject: 28.1; Comint shell silently send ^L User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.1 (x86_64-apple-darwin21.4.0) MULE/6.0 (HANACHIRUSATO) X-Face: %[!P\u/BKFRGn_9h9|yO"ho?C0ej^LmM}WMb-`Jfj8OsS^^AKmHYGlD@^|7SEA3UzOGPFbB"OFczY?'\JtJ\lR'@&Y5j; s8{$&|3D>^i.U4l2h?1qpD.+{[$~j]vBeHZf^|BGyL8{/`4 X-Attribution: ldb MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=162.62.57.64; envelope-from=andpuke@foxmail.com; helo=out162-62-57-64.mail.qq.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) To produce this bug, set login shell to ksh93u+ (which is the default ksh on macOS and available on some package managers), I'm not sure if other versions of ksh can reproduce this. However I believe this might also affect all other command line programs that does not translate Control L as "refresh" command. Also I have only tried the Emacs GUI on macOS. Procedures to reproduce the issue: 1. Start M-x shell, resize the window by dragging mouse several times 2. then several "> " occurs: $ > > > > > > > > > 3. then type a command like "ls", and press enter key 4. the shell would respond: ^L^L^L^L^Lls: not found I guess it is somewhere in shell.el has configured the behavior so whenever window size has changed the shell prompt is refreshed. However this does not work out for shell programs not like bash, and the popup minibuffer like `ivy' or `which-key' would also cause sending "^L". This would annoying when have the shell opened as a split window while editing files, although I believe set default shell to bash is a workaround, I think this is still a bug of Emacs and worth to be reported. ldbeth From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 12:07:07 2022 Received: (at 59150) by debbugs.gnu.org; 9 Nov 2022 17:07:08 +0000 Received: from localhost ([127.0.0.1]:40749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osoXb-0002b4-JX for submit@debbugs.gnu.org; Wed, 09 Nov 2022 12:07:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osoXZ-0002aY-Dt for 59150@debbugs.gnu.org; Wed, 09 Nov 2022 12:07:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osoXS-0000Lb-Mn; Wed, 09 Nov 2022 12:06:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=83AmoQbCO9ckHzzDBug9Vc+JOWqIr40bnfOPjZJDGBg=; b=PFEo+kESce5o tIXRyDB73U/WIZXe56eaDiab8s/1zZ/zLRr2dSFhVwvF460S2kgH0PfQxVfON9dw0zW6PiriYyKQk 2DOEG49QqYH/9ML5xY/j5jHwDHNdqihlVE52frQkMgN24fHpEkbnAySc3crEjc4cR0niptG2+cFGx ThbnBlVe1kzevm1TwrEFXI1a1deHlh7e+1gtqNGaB/YbDWf1IHT+f3tkUVlY15b5jtQr4atRQSnb/ A7lOIj+U0h9xiyuCOqe6ukdmGYHLSdfYuQU2YEhjjHOlOEk+IJUye7tcBcFqknt/gSxyi5zq1a5eu iL8e5HVxGFVVDV1dDYZnYQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osoXS-0001rB-4X; Wed, 09 Nov 2022 12:06:58 -0500 Date: Wed, 09 Nov 2022 19:06:56 +0200 Message-Id: <83fsest5u7.fsf@gnu.org> From: Eli Zaretskii To: LdBeth In-Reply-To: (message from LdBeth on Wed, 09 Nov 2022 10:26:53 -0600) Subject: Re: bug#59150: 28.1; Comint shell silently send ^L References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59150 Cc: 59150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 09 Nov 2022 10:26:53 -0600 > From: LdBeth > > > To produce this bug, set login shell to ksh93u+ (which is the default > ksh on macOS and available on some package managers), I'm not sure if > other versions of ksh can reproduce this. > > However I believe this might also affect all other command line > programs that does not translate Control L as "refresh" command. > > Also I have only tried the Emacs GUI on macOS. > > Procedures to reproduce the issue: > > 1. Start M-x shell, resize the window by dragging mouse several times > > 2. then several "> " occurs: > > $ > > > > > > > > > > > 3. then type a command like "ls", and press enter key > > 4. the shell would respond: > > ^L^L^L^L^Lls: not found > > > I guess it is somewhere in shell.el has configured the behavior so > whenever window size has changed the shell prompt is refreshed. > > However this does not work out for shell programs not like bash, and > the popup minibuffer like `ivy' or `which-key' would also cause > sending "^L". > > This would annoying when have the shell opened as a split window while > editing files, although I believe set default shell to bash > is a workaround, I think this is still a bug of Emacs and worth to be > reported. This is not a bug, this is Emacs communicating to the shell that the size of the terminal has changed. You can customize this behavior via the option window-adjust-process-window-size-function. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 18:01:34 2022 Received: (at 59150) by debbugs.gnu.org; 9 Nov 2022 23:01:34 +0000 Received: from localhost ([127.0.0.1]:41286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osu4c-0005N6-5D for submit@debbugs.gnu.org; Wed, 09 Nov 2022 18:01:34 -0500 Received: from out203-205-251-80.mail.qq.com ([203.205.251.80]:52467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osu4Y-0005Mn-3a for 59150@debbugs.gnu.org; Wed, 09 Nov 2022 18:01:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1668034881; bh=bdzkABDLQe8/CjqOyX/R/rI3SbYTwbVY3u+staJXxh0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=C5zRipInHh8ArobZM767INv/tFCUzgtydphnD5qR/T0Qps59boYVLwIG7+TTrSwHT +de1F+bDsBKblL9fxUWcza+te3gqvhTCnc5VMnpTrjvey0d2JPF8MpB5W1aUrGQ67L Vsn7DCspfc2eP+px9I83sgp9pHYD1u1/SrKqhlFY= Received: from 172-12-2-10.lightspeed.sgnwmi.sbcglobal.net ([68.117.253.195]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 5283CF1; Thu, 10 Nov 2022 07:01:18 +0800 X-QQ-mid: xmsmtpt1668034878ti71g2kfi Message-ID: X-QQ-XMAILINFO: NqxKgsaVX1mSeaC7iugzRfx4J4wqSsf76wUhexCutqDM2iZN4Hfhe4DQFqHYBJ 5oafUvjBY76jf4m4TZwy2aabV0ocLQAt+94geE+YSoZSpnXUNQAqfuH4P270K0IWd/GpBlJR4WbB l4VvnA0IzY2iseSnXnUyelf/3yD6NKZxaWned2SYP+qR3ZVgutMW39/Ovkcn3EeCaPw/mB/y9MHQ qg7x/LoZbUd9mC7a276uLh+6aeNzJg+6RyYcxTFKZHVQwih9K/11ct+pcQzRMhX0fQKh+F6BOa8f Y3Qcvk58PqJ/7tgXIzWt2RLTFVp+9JS3agvyg/3B7m48n8oaZ6m/jZTchXPOGIwy3ShRAgdfDC+I 2yM9C1aktZmQuOz+dgDfzGS0qczoMw34K+FZjcWxb/VQ02ogyBg5W51+9fc3AEZZm2syapUR6eKw XVGRdIhZLggHuSO3e3DsH4Se++B6XIapdayXmybFj5aa6GVKHaZECHL4GKHYqcpRNjFfqYbQGIh/ 3ls1a0DLSVZwrLIoKhJH7U4D4rEq47kFvhIJMkJw2EL/uG1ZPEC4MAw0GccqZmQri4p54oylCM2F kyfBdnAbCmk59Xje3hYJJ2vLVO/lBgiNIeVNMNnyyXppqnY74o+JJZRKko0Bz0odoQ7ou9j6Kusn uQPYHGXMC0UA2xfOnlZc2QaGzTq/obpW+yd798RLtB9iowgY3kC+eNCe60EqROgSGoG2z0+dFXF6 kRyzysF2zbWMIfF5dZ/G9eNrLoAPN3pR1ApYOFsHo0C3m5a18sfdOrAmOZESBL9CKysSKpC4XYMX NBzkLFivrmf5Y1FKA4CxdUSWuDX4ROc8quUm1lhhJ3Ovq8tybQNZe6/4UULR7aKmjJ9THZCRxG1V ct5OtsRSENsgDTh0XEWX9XoC79dpd1AHLCt0m8HM2GhnSqYPmpg9/jVxeVRHj+kw== Received: by 172-12-2-10.lightspeed.sgnwmi.sbcglobal.net (Postfix, from userid 501) id 7A815204C5A878; Wed, 9 Nov 2022 17:01:17 -0600 (CST) Date: Wed, 09 Nov 2022 17:01:17 -0600 X-OQ-MSGID: From: LdBeth To: Eli Zaretskii Subject: Re: bug#59150: 28.1; Comint shell silently send ^L In-Reply-To: <83fsest5u7.fsf@gnu.org> References: <83fsest5u7.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.1 (x86_64-apple-darwin21.4.0) MULE/6.0 (HANACHIRUSATO) X-Face: %[!P\u/BKFRGn_9h9|yO"ho?C0ej^LmM}WMb-`Jfj8OsS^^AKmHYGlD@^|7SEA3UzOGPFbB"OFczY?'\JtJ\lR'@&Y5j; s8{$&|3D>^i.U4l2h?1qpD.+{[$~j]vBeHZf^|BGyL8{/`4 X-Now-Playing: Mika Watanabe - Ruuretto - Ruuretto Kurumi Ver. X-Attribution: ldb MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> Eli Zaretskii wrote: Eli_Zaretskii> This is not a bug, this is Emacs communicating to the shell that the Eli_Zaretskii> size of the terminal has changed. Eli_Zaretskii> You can customize this behavior via the option Eli_Zaretskii> window-adjust-process-window-size-function. Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.80 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-Debbugs-Envelope-To: 59150 Cc: LdBeth , 59150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> Eli Zaretskii wrote: Eli_Zaretskii> This is not a bug, this is Emacs communicating to the shell that the Eli_Zaretskii> size of the terminal has changed. Eli_Zaretskii> You can customize this behavior via the option Eli_Zaretskii> window-adjust-process-window-size-function. Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.80 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) >>>>> In <83fsest5u7.fsf@gnu.org> >>>>> Eli Zaretskii wrote: Eli_Zaretskii> This is not a bug, this is Emacs communicating to the shell that the Eli_Zaretskii> size of the terminal has changed. Eli_Zaretskii> You can customize this behavior via the option Eli_Zaretskii> window-adjust-process-window-size-function. Ah, I'm able to find the same issue has already discussed with keyword "ksh, ioctl": https://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00002.html Will try this workaround, thanks for your help! ldbeth