From richard@wetafx.co.nz Sun Feb 1 19:20:58 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Feb 2009 03:20:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n123KsVd021039 for ; Sun, 1 Feb 2009 19:20:56 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTpMk-0005uU-3u for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:20:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTpMg-0005uI-C8 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:20:52 -0500 Received: from [199.232.76.173] (port=59783 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTpMg-0005uF-62 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:20:50 -0500 Received: from wheke.wetafx.co.nz ([131.203.105.13]:36042) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTpMf-0001cD-9h for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:20:50 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by wheke.wetafx.co.nz (Postfix) with ESMTP id 6A1CC1ADC5B2 for ; Mon, 2 Feb 2009 16:20:37 +1300 (NZDT) X-Virus-Scanned: with amavisd-new by waha at wetafx.co.nz Received: from wheke.wetafx.co.nz ([127.0.0.1]) by localhost (wheke.wetafx.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yt2pFOaQSHj6; Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) Received: from set01.wetafx.co.nz (webmail.wetafx.co.nz [192.168.17.82]) by wheke.wetafx.co.nz (Postfix) with ESMTP id 889431ADC361 for ; Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) Received: from localhost (localhost [127.0.0.1]) by set01.wetafx.co.nz (Postfix) with ESMTP id 5DC6162C8CB for ; Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at wetafx.co.nz Received: from set01.wetafx.co.nz ([127.0.0.1]) by localhost (set01.wetafx.co.nz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FlVLPAqANadt for ; Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) Received: from surfperch.wetafx.co.nz (surfperch.wetafx.co.nz [192.168.48.188]) by set01.wetafx.co.nz (Postfix) with ESMTP id 3D65D62C8C6 for ; Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) Received: by surfperch.wetafx.co.nz (Postfix, from userid 2069) id 39140958D3E; Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) From: Richard Addison-Wood To: bug-gnu-emacs@gnu.org Subject: In shell mode, comint-send-input seems to cut off at 254 characters Message-Id: <20090202032006.39140958D3E@surfperch.wetafx.co.nz> Date: Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) I attempted to do this command in shell mode: echo _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_250_23456_260 The immediate output was: 0_23456_260: Command not found. but when I hit enter again without typing anything else, I got: _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_25 So the first 254 characters I typed got held back, and the additional 11 characters were sent to the inferior shell. Further, the held back characters were then sent when I pressed enter again. So this is what the buffer looked like: ==================== >echo _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_250_23456_260 echo _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_250_23456_260 >0_23456_260: Command not found. > _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_25 > ==================== I would count this as very unexpected and dangerous behaviour. In GNU Emacs 22.3.1 (x86_64-unknown-linux-gnu) of 2008-09-15 on lambretta Windowing system distributor `The X.Org Foundation', version 11.0.70200000 configured using `configure '--prefix=/vol/apps_master/apps.Linux64/emacs-22.3_64'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-x s h e l l M-x r e p o r t - e m a c s - b u g Recent messages: ("/vol/apps/emacs-22.3_64/bin/emacs" "--no-init") For information about GNU Emacs and the GNU system, type C-h C-a. Loading shell...done Mark set Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done From cyd@stupidchicken.com Fri Feb 6 08:18:13 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 6 Feb 2009 16:18:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n16GIAtT014646 for <2148@emacsbugs.donarmstrong.com>; Fri, 6 Feb 2009 08:18:11 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 88BA957E196; Fri, 6 Feb 2009 11:18:51 -0500 (EST) From: Chong Yidong To: Richard Addison-Wood Cc: 2148@debbugs.gnu.org Subject: Re: In shell mode, comint-send-input seems to cut off at 254 characters Date: Fri, 06 Feb 2009 11:18:51 -0500 Message-ID: <87zlgz7d3o.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I attempted to do this command in shell mode: > echo > _234567_10.... > The immediate output was: > 0_23456_260: Command not found. > but when I hit enter again without typing anything else, I got: > _234567_10_234567.... > So the first 254 characters I typed got held back, and the additional > 11 characters were sent to the inferior shell. Further, the held back > characters were then sent when I pressed enter again. > >In GNU Emacs 22.3.1 (x86_64-unknown-linux-gnu) I can't reproduce this, on either 22.3.1 or Emacs 23. Could you see if the bug is present in the Emacs 23 pretest? You can find the pretest tarball at http://alpha.gnu.org/gnu/emacs/pretest/ Thanks. From richard@wetafx.co.nz Sun Feb 8 17:15:32 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 9 Feb 2009 01:15:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from wheke.wetafx.co.nz (wheke.wetafx.co.nz [131.203.105.13]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n191FTYb026333 for <2148@emacsbugs.donarmstrong.com>; Sun, 8 Feb 2009 17:15:30 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by wheke.wetafx.co.nz (Postfix) with ESMTP id EFA931ADC60C; Mon, 9 Feb 2009 14:15:22 +1300 (NZDT) X-Virus-Scanned: with amavisd-new by waha at wetafx.co.nz Received: from wheke.wetafx.co.nz ([127.0.0.1]) by localhost (wheke.wetafx.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7F8Ed+UN0IRg; Mon, 9 Feb 2009 14:15:22 +1300 (NZDT) Received: from set01.wetafx.co.nz (webmail.wetafx.co.nz [192.168.17.82]) by wheke.wetafx.co.nz (Postfix) with ESMTP id ACACA1ADC60B; Mon, 9 Feb 2009 14:15:22 +1300 (NZDT) Received: from localhost (localhost [127.0.0.1]) by set01.wetafx.co.nz (Postfix) with ESMTP id 9C1E962C2DF; Mon, 9 Feb 2009 14:15:22 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at wetafx.co.nz Received: from set01.wetafx.co.nz ([127.0.0.1]) by localhost (set01.wetafx.co.nz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id u-UMRLX1Lr4S; Mon, 9 Feb 2009 14:15:22 +1300 (NZDT) Received: from [192.168.48.188] (surfperch.wetafx.co.nz [192.168.48.188]) by set01.wetafx.co.nz (Postfix) with ESMTP id 7EBA862C2DE; Mon, 9 Feb 2009 14:15:22 +1300 (NZDT) Message-ID: <498F83AA.1000105@wetafx.co.nz> Date: Mon, 09 Feb 2009 14:15:22 +1300 From: Richard Addison-Wood User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Chong Yidong CC: 2148@debbugs.gnu.org Subject: Re: In shell mode, comint-send-input seems to cut off at 254 characters References: <87zlgz7d3o.fsf@cyd.mit.edu> In-Reply-To: <87zlgz7d3o.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have more information about what is going on. Can you see if you can reproduce it? After opening a new shell buffer, I type: /bin/tcsh -f to get a tcsh shell without running custom start-up stuff. Then, I type this: set filec to turn on tcsh's file completion mechanisms (since this is one of the settings that my start-up stuff does). And then, when I type this: echo _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_250_23456_260 I get the strange behaviour I described before. Alternatively, If I type this: unset filec I can enter that long line without a problem. So, in /bin/tcsh, one of the things that 'set filec' turns on is to use control-D to show a list of what matches the prefix of the immediately preceding word. It appears that 'send_process(proc, buf, len, object)' in process.c will determine that it should send a maximum of 254 characters and will send '\004' at each 254 character interval. It still seems strange to me that emacs would have this behaviour. Is that really how it should be done? I wouldn't think that I would be the only user who would be using /bin/tcsh with 'set filec'. From rms@gnu.org Mon Feb 9 16:13:17 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 10 Feb 2009 00:13:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A0DEYM013428 for <2148@emacsbugs.donarmstrong.com>; Mon, 9 Feb 2009 16:13:15 -0800 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LWgDd-0004IX-Q7; Mon, 09 Feb 2009 19:11:17 -0500 Content-Type: text/plain; charset=ISO-8859-15 From: Richard M Stallman To: Richard Addison-Wood , 2148@debbugs.gnu.org CC: cyd@stupidchicken.com, 2148@debbugs.gnu.org In-reply-to: <498F83AA.1000105@wetafx.co.nz> (message from Richard Addison-Wood on Mon, 09 Feb 2009 14:15:22 +1300) Subject: Re: bug#2148: In shell mode, comint-send-input seems to cut off at 254 characters Reply-to: rms@gnu.org References: <498F83AA.1000105@wetafx.co.nz> Message-Id: Date: Mon, 09 Feb 2009 19:11:17 -0500 This may have to do with truncation in the input buffer used for line-at-a-time input. From cyd@stupidchicken.com Thu Mar 26 19:57:13 2009 Received: (at control) by emacsbugs.donarmstrong.com; 27 Mar 2009 02:57:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2R2vB98003229 for ; Thu, 26 Mar 2009 19:57:12 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id E856357E245; Thu, 26 Mar 2009 22:58:40 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: Reassign bugs Date: Thu, 26 Mar 2009 22:58:40 -0400 Message-ID: <87myb7u0wv.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 1650 serious severity 1654 serious close 1723 severity 1785 serious severity 2148 serious tags 2149 moreinfo severity 2291 wishlist severity 2643 wishlist thanks From cyd@stupidchicken.com Mon Apr 6 21:47:01 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 7 Apr 2009 04:47:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.0 required=4.0 tests=RERE autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n374kxK2012000 for <2148@emacsbugs.donarmstrong.com>; Mon, 6 Apr 2009 21:47:00 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 35B9C57E18A; Tue, 7 Apr 2009 00:48:39 -0400 (EDT) From: Chong Yidong To: Stefan Monnier Cc: 2148@debbugs.gnu.org Subject: Re: Re: In shell mode, comint-send-input seems to cut off at 254 characters Date: Tue, 07 Apr 2009 00:48:39 -0400 Message-ID: <87bpr9ul08.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > [in shell mode] > /bin/tcsh -f > set filec > echo [very long line] > > I get the strange behaviour I described before. > > So, in /bin/tcsh, one of the things that 'set filec' turns on is to use > control-D to show a list of what matches the prefix of the immediately > preceding word. > > It appears that 'send_process(proc, buf, len, object)' in process.c will > determine that it should send a maximum of 254 characters and will send > '\004' at each 254 character interval. > > It still seems strange to me that emacs would have this behaviour. Is > that really how it should be done? I wouldn't think that I would be the > only user who would be using /bin/tcsh with 'set filec'. The ^D is sent in process.c:5781. If we are splitting a string into chunks for sending to the process, Emacs puts in an EOF (C-d) to "force it through". I can't think of any fix, off the top of my head. Stefan, can you? If not, we could simply document this limitation in PROBLEMS. From monnier@iro.umontreal.ca Tue Apr 7 07:09:57 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 7 Apr 2009 14:09:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.5 required=4.0 tests=XIRONPORT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n37E9st6014350 for <2148@emacsbugs.donarmstrong.com>; Tue, 7 Apr 2009 07:09:55 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEAA/82klMCqib/2dsb2JhbACBUs0Wg30GhQ4 X-IronPort-AV: E=Sophos;i="4.39,337,1235970000"; d="scan'208";a="36706227" Received: from 76-10-168-155.dsl.teksavvy.com (HELO ceviche.home) ([76.10.168.155]) by ironport2-out.teksavvy.com with ESMTP; 07 Apr 2009 10:09:35 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 4D72970A2F; Tue, 7 Apr 2009 10:09:35 -0400 (EDT) From: Stefan Monnier To: Chong Yidong Cc: 2148@debbugs.gnu.org Subject: Re: In shell mode, comint-send-input seems to cut off at 254 characters Message-ID: References: <87bpr9ul08.fsf@cyd.mit.edu> Date: Tue, 07 Apr 2009 10:09:35 -0400 In-Reply-To: <87bpr9ul08.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 07 Apr 2009 00:48:39 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > The ^D is sent in process.c:5781. If we are splitting a string into > chunks for sending to the process, Emacs puts in an EOF (C-d) to "force > it through". > I can't think of any fix, off the top of my head. Stefan, can you? If > not, we could simply document this limitation in PROBLEMS. The obvious fix is to not add this ^D. At least I could never understand what it was supposed to do ("force it though"? what does that mean?). Stefan From cyd@stupidchicken.com Tue Apr 7 07:20:39 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 7 Apr 2009 14:20:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n37EKavf018534 for <2148@emacsbugs.donarmstrong.com>; Tue, 7 Apr 2009 07:20:37 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 75E9957E21C; Tue, 7 Apr 2009 10:22:16 -0400 (EDT) From: Chong Yidong To: Stefan Monnier Cc: 2148@debbugs.gnu.org Subject: Re: In shell mode, comint-send-input seems to cut off at 254 characters References: <87bpr9ul08.fsf@cyd.mit.edu> Date: Tue, 07 Apr 2009 10:22:16 -0400 In-Reply-To: (Stefan Monnier's message of "Tue, 07 Apr 2009 10:09:35 -0400") Message-ID: <871vs4pmqv.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > The obvious fix is to not add this ^D. At least I could never > understand what it was supposed to do ("force it though"? what does > that mean?). Ah, ok---for some reason, I thought you wrote that code, but on closer inspection it was written by Gerd in 2000. The current symptoms don't seem serious enough to risk changing this now, so I think we should do it after the release. WDYT? From monnier@iro.umontreal.ca Tue Apr 7 08:47:23 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 7 Apr 2009 15:47:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.6 required=4.0 tests=FOURLA,MURPHY_DRUGS_REL8, XIRONPORT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n37FlKV5011611 for <2148@emacsbugs.donarmstrong.com>; Tue, 7 Apr 2009 08:47:21 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEAFMS20lMCqib/2dsb2JhbACBUs08g30GhQ4 X-IronPort-AV: E=Sophos;i="4.39,338,1235970000"; d="scan'208";a="36714992" Received: from 76-10-168-155.dsl.teksavvy.com (HELO pastel.home) ([76.10.168.155]) by ironport2-out.teksavvy.com with ESMTP; 07 Apr 2009 11:47:15 -0400 Received: by pastel.home (Postfix, from userid 20848) id EB1A780A8; Tue, 7 Apr 2009 11:47:14 -0400 (EDT) From: Stefan Monnier To: Chong Yidong Cc: 2148@debbugs.gnu.org Subject: Re: In shell mode, comint-send-input seems to cut off at 254 characters Message-ID: References: <87bpr9ul08.fsf@cyd.mit.edu> <871vs4pmqv.fsf@cyd.mit.edu> Date: Tue, 07 Apr 2009 11:47:14 -0400 In-Reply-To: <871vs4pmqv.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 07 Apr 2009 10:22:16 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> The obvious fix is to not add this ^D. At least I could never >> understand what it was supposed to do ("force it though"? what does >> that mean?). > Ah, ok---for some reason, I thought you wrote that code, but on closer > inspection it was written by Gerd in 2000. Not close enough: his 2000 patch just changed indentation. I think the origin of this problem is: revno: 6577 committer: rms branch nick: HEAD timestamp: Thu 1994-03-03 05:50:31 +0000 message: Include unistd.h. (pty_max_bytes): New variable. (send_process): Send an eof after each pty_max_bytes bytes. And clearly there was a good reason for that. I don't know enough about PTY programming to know what we should do. > The current symptoms don't seem serious enough to risk changing this > now, so I think we should do it after the release. WDYT? Agreed (if at all). Stefan From cyd@stupidchicken.com Tue Apr 7 09:01:37 2009 Received: (at control) by emacsbugs.donarmstrong.com; 7 Apr 2009 16:01:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n37G1ZM5016164 for ; Tue, 7 Apr 2009 09:01:36 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 9B2E257E21C; Tue, 7 Apr 2009 12:03:15 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 2148 normal Date: Tue, 07 Apr 2009 12:03:15 -0400 Message-ID: <87fxgk1mf0.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 2148 normal thanks From rms@gnu.org Wed Apr 8 11:33:49 2009 Received: (at 2148) by emacsbugs.donarmstrong.com; 8 Apr 2009 18:33:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n38IXkeW024727 for <2148@emacsbugs.donarmstrong.com>; Wed, 8 Apr 2009 11:33:48 -0700 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Lrcan-0006hn-Qp; Wed, 08 Apr 2009 14:33:45 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: Richard M Stallman To: Stefan Monnier , 2148@debbugs.gnu.org CC: cyd@stupidchicken.com, 2148@debbugs.gnu.org In-reply-to: (message from Stefan Monnier on Tue, 07 Apr 2009 10:09:35 -0400) Subject: Re: bug#2148: In shell mode, comint-send-input seems to cut off at 254 characters Reply-to: rms@gnu.org References: <87bpr9ul08.fsf@cyd.mit.edu> Message-Id: Date: Wed, 08 Apr 2009 14:33:45 -0400 The obvious fix is to not add this ^D. At least I could never understand what it was supposed to do ("force it though"? what does that mean?). The problem is that the subprogram is reading from its tty with line editing, so it won't receive any input until Emacs "types" one of the few characters that says "give the input to the program". Until that occurs, theoretically Emacs could get rid of the pending input by typing DEL or Backspace or C-u or C-w. If the system's line-editing buffer gets full, everything hangs. The subprogram waits for a complete input line, but Emacs can't finish the line because it's waiting for space to appear in that buffer (and anyway the buffer has no room for more). At least this is what was happening at the time I implemented that code. If emacs_set_tty turns off the line editing, or turns off the characters that could cancel input, it would be proper for the kernel to give the characters to the subprogram right away. Then the buffer would never get full. We could suggest this change in Linux. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 19 13:08:41 2014 Received: (at submit) by debbugs.gnu.org; 19 Oct 2014 17:08:41 +0000 Received: from localhost ([127.0.0.1]:55924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XftyC-0006mJ-1F for submit@debbugs.gnu.org; Sun, 19 Oct 2014 13:08:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53699) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xfs36-0002Ww-NG for submit@debbugs.gnu.org; Sun, 19 Oct 2014 11:05:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xfs2r-0002X1-C5 for submit@debbugs.gnu.org; Sun, 19 Oct 2014 11:05:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xfs2r-0002Wx-9G for submit@debbugs.gnu.org; Sun, 19 Oct 2014 11:05:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xfs2j-00068I-NH for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2014 11:05:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xfs2c-0002Tj-7v for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2014 11:05:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:35945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xfs2c-0002Oi-1q for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2014 11:05:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xfs2Z-0000nl-O7 for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2014 17:05:03 +0200 Received: from bzq-67-168-31-111.red.bezeqint.net ([31.168.67.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Oct 2014 17:05:03 +0200 Received: from dorish by bzq-67-168-31-111.red.bezeqint.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Oct 2014 17:05:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Dorish Apira Subject: Re: bug#2148: In shell =?utf-8?b?bW9kZSwJY29taW50LXNlbmQtaW5wdXQ=?= seems to cut off at 254 characters Date: Sun, 19 Oct 2014 14:18:42 +0000 (UTC) Lines: 4 Message-ID: References: <87bpr9ul08.fsf@cyd.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 31.168.67.111 (Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 19 Oct 2014 13:08:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.1 (----) Sorry to intrude, but it seems like this issue had lost all interest !?! Is it a problem to change 254 to 8191 in some way ? Dorish From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 21 21:12:58 2014 Received: (at 2148) by debbugs.gnu.org; 22 Oct 2014 01:12:59 +0000 Received: from localhost ([127.0.0.1]:58958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgkTy-0004TF-FF for submit@debbugs.gnu.org; Tue, 21 Oct 2014 21:12:58 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:60549) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgkTv-0004Sz-S4 for 2148@debbugs.gnu.org; Tue, 21 Oct 2014 21:12:56 -0400 Received: by mail-pd0-f174.google.com with SMTP id p10so456992pdj.5 for <2148@debbugs.gnu.org>; Tue, 21 Oct 2014 18:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=KnFYJU1nYoWBo8MD9e2zwBpTaHAc5/nAzvfHlxBbS/I=; b=GBc6xEUJSbackyTSBhcpF73Ge5Hd1olXXNLTpvWZbgcd2AUQVH9UfE5Tf4fxQXLJEO zozJLj9qHIZsKpziwgunqnyG3hp4CBWRzFxhYGWtwo4GRzGZguA8KjquVPrCQ32A/TKb uTzOBbmBQ0Dh4tYZYFK0jzdJEkE64d1sLvOWnppPxwqLnYjhqZUg9GL/DieCtIouGxfz vzx3uFUQ6o/2Q73MU+bXw4YUV28c/adUMaECrSh6OJPV4KKw8VXGh0r3W+j81CrSszBm GnUhtquxVGnQfj5mDumKq4xxORs0LOYBKRVZqds+paibJW6V+0tnrA/LNsO8XKUJg1x8 cDeQ== X-Received: by 10.68.65.74 with SMTP id v10mr38570660pbs.96.1413940369892; Tue, 21 Oct 2014 18:12:49 -0700 (PDT) Received: from localhost (ppp118-209-119-125.lns20.mel4.internode.on.net. [118.209.119.125]) by mx.google.com with ESMTPSA id o5sm12980109pdr.50.2014.10.21.18.12.47 for <2148@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 21 Oct 2014 18:12:48 -0700 (PDT) References: <87bpr9ul08.fsf@cyd.mit.edu> <20090202032006.39140958D3E@surfperch.wetafx.co.nz> From: Alexis To: 2148@debbugs.gnu.org Subject: Re: bug#2148: In shell mode, comint-send-input seems to cut off at 254 characters Date: Wed, 22 Oct 2014 12:11:52 +1100 In-reply-to: Message-ID: <871tq029h1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 2148 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) Dorish Apira writes: > Sorry to intrude, but it seems like this issue had lost all interest !?! > Is it a problem to change 254 to 8191 in some way ? Well, are you still observing this issue in Emacs 24.4? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 17:35:08 2016 Received: (at 2148) by debbugs.gnu.org; 10 Jan 2016 22:35:08 +0000 Received: from localhost ([127.0.0.1]:45778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIOZn-0007Ey-QI for submit@debbugs.gnu.org; Sun, 10 Jan 2016 17:35:07 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37190) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIOZl-0007EO-9R for 2148@debbugs.gnu.org; Sun, 10 Jan 2016 17:35:05 -0500 Received: by mail-wm0-f54.google.com with SMTP id f206so243487943wmf.0 for <2148@debbugs.gnu.org>; Sun, 10 Jan 2016 14:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=CFqWoXUwHFvixielILKZgAr7rqVs85c8SJB9R4LLEyM=; b=Ky1ONqX6A3pIoRZwgUZ+PLFXiIOHcuN+vbrnTHEmxozqadYKoGtqqOR9AoM49Q4Kt1 Z7jpdVHFdMktp0GedzMzHkX/axa4HWgs4v/zyKZphWLoH9YjB7t940ZMbsXb3Hg0xZNY 5D0RnyLIxHDBmu9Brh6ElSBEhy864Dg9x3A+/3flxMwtn8rzRFujK+ZM8VWJrUNtbwLh 98mbKE5WPLHSce3yPM47v8gYbN6CfCW7UB2YxCR8OSs7gyL+O3fFowcGH/ntL6tjhB3O faCOaf/cmRs647mxoUShQ2XRZn1mA4sPCxwXgimY5iZgE4r/bOczLNT7268nK3FZeEE5 unNg== X-Received: by 10.194.103.131 with SMTP id fw3mr116827296wjb.55.1452465299814; Sun, 10 Jan 2016 14:34:59 -0800 (PST) Received: from galloway.idiocy.org (b.7.8.b.2.3.4.6.4.8.7.7.0.9.0.4.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:4090:7784:6432:b87b]) by smtp.gmail.com with ESMTPSA id v191sm8953869wme.1.2016.01.10.14.34.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jan 2016 14:34:58 -0800 (PST) From: Alan J Third To: 2148@debbugs.gnu.org Subject: Re: bug#2148: Re: In shell mode, comint-send-input seems to cut off at 254 characters References: <87bpr9ul08.fsf@cyd.mit.edu> Date: Sun, 10 Jan 2016 22:34:57 +0000 In-Reply-To: <87bpr9ul08.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 07 Apr 2009 00:48:39 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 2148 Cc: Chong Yidong , Stefan Monnier 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: -0.5 (/) Chong Yidong writes: >> [in shell mode] >> /bin/tcsh -f >> set filec >> echo [very long line] >> >> I get the strange behaviour I described before. >> >> So, in /bin/tcsh, one of the things that 'set filec' turns on is to use >> control-D to show a list of what matches the prefix of the immediately >> preceding word. >> >> It appears that 'send_process(proc, buf, len, object)' in process.c will >> determine that it should send a maximum of 254 characters and will send >> '\004' at each 254 character interval. >> >> It still seems strange to me that emacs would have this behaviour. Is >> that really how it should be done? I wouldn't think that I would be the >> only user who would be using /bin/tcsh with 'set filec'. > > The ^D is sent in process.c:5781. If we are splitting a string into > chunks for sending to the process, Emacs puts in an EOF (C-d) to "force > it through". > > I can't think of any fix, off the top of my head. Stefan, can you? If > not, we could simply document this limitation in PROBLEMS. I can't replicate this in Emacs 25 (or Emacs 24.5) on OS X, and I can't find the code described above in the source, or at least in send_process. Can someone who knows their way around better than me please confirm whether the offending code has been removed, please? -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 22:49:25 2016 Received: (at 2148) by debbugs.gnu.org; 11 Jan 2016 03:49:25 +0000 Received: from localhost ([127.0.0.1]:45906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aITTx-0007cu-FT for submit@debbugs.gnu.org; Sun, 10 Jan 2016 22:49:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52477) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aITTv-0007ce-Vn for 2148@debbugs.gnu.org; Sun, 10 Jan 2016 22:49:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aITTq-0002mw-3l for 2148@debbugs.gnu.org; Sun, 10 Jan 2016 22:49:18 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aITTW-0002iP-Gy; Sun, 10 Jan 2016 22:48:58 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aITTV-0001av-SE; Sun, 10 Jan 2016 22:48:57 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Alan J Third In-reply-to: (message from Alan J Third on Sun, 10 Jan 2016 22:34:57 +0000) Subject: Re: bug#2148: Re: In shell mode, comint-send-input seems to cut off at 254 characters References: <87bpr9ul08.fsf@cyd.mit.edu> Message-Id: Date: Sun, 10 Jan 2016 22:48:57 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 2148 Cc: cyd@stupidchicken.com, 2148@debbugs.gnu.org, monnier@iro.umontreal.ca 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: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] Decades ago, I encountered on some systems that sending input to a pty would get hung because the tty's input buffer was full. I implemented the ^D to get the input delivered. The right fix is to change the implementation of ptys. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 13 15:50:39 2016 Received: (at 2148) by debbugs.gnu.org; 13 Jan 2016 20:50:39 +0000 Received: from localhost ([127.0.0.1]:48598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJSNL-0005hm-5Y for submit@debbugs.gnu.org; Wed, 13 Jan 2016 15:50:39 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:34809) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJSNJ-0005hZ-5n for 2148@debbugs.gnu.org; Wed, 13 Jan 2016 15:50:37 -0500 Received: by mail-wm0-f51.google.com with SMTP id u188so314238136wmu.1 for <2148@debbugs.gnu.org>; Wed, 13 Jan 2016 12:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=aSYnkNvs6+G3XamhsQ0ByUpolI9HU2nrQ+CwIClfem4=; b=zgRzMg5qIg3BznsuVXf2yz4aeU2Nq3a5rYcV7rE52JwwBVzD/ihBPwpN7ESXEtO5iJ mBO2G+wrQrpX6bXgxuvIfU6QJViojyNlzbg6VYxEaeTZN90G10sByU8zu6uopBR+gD9a P4BFmMUQw7sC+uZN93kz/zQgGhUsAScyx6mfyFWRtWb5QC5daikIXV5oUtlwXgwiL920 eUBOIOsuWV5bYta69QU6F0bkVDvgGJOCJxODSLjX3oLCDN7ito2gLHDoERVw2yUZqkhK WZrVuIiBVx0oW/kx1H7admMfemoIeanCsyCVRUog+zP/Mc+rrVRT/hduHaYZvMyEMF21 VpkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=aSYnkNvs6+G3XamhsQ0ByUpolI9HU2nrQ+CwIClfem4=; b=E22+er8L5kIZAVWbXD8WHev/g7ykZs3DLvwlWyS/hBOWP3Ja2Wz1qLC0C8cbX802qn snBHYZRiMDvqGEIgfBsOvv32SUzJHpxpoYUAXqzA97sn+MJnFFMZEudDDiK0wISyZxGZ SjqQJ/fSvPD6r5Qc7ZT5iTs30/5DlqGbBh5ofmDrE5MqLFBwbiDqJNnlULHWj0fL4XZ0 jaRqT0XhA3uRnuHRD9YJnw2j5DIFUZyEEKVM5ZCGFS6+xqnNbPnKBMVt4wY2ajkpQx8r FmLb65n4fsemdLjYJ+slI2cGZIsG4P6cjzTw2NUqrvkk5CIwwoEChq8Mwg8qD4o2Lw5w PQig== X-Gm-Message-State: ALoCoQmnOv+b7NH6b80890v5lK1b8KJXr+arCbxy0KehALSF4wPdXSfQ1lOdH6femdFsd9+k5HKfUNQxb/clphxFDDfJQzCRNQ== X-Received: by 10.28.35.6 with SMTP id j6mr29184975wmj.80.1452718231527; Wed, 13 Jan 2016 12:50:31 -0800 (PST) Received: from galloway.idiocy.org (4.f.7.2.3.7.d.7.7.9.2.4.4.6.8.a.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:a864:4297:7d73:27f4]) by smtp.gmail.com with ESMTPSA id yz5sm2991692wjc.36.2016.01.13.12.50.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jan 2016 12:50:30 -0800 (PST) From: Alan J Third To: 2148@debbugs.gnu.org Subject: Re: bug#2148: Re: In shell mode, comint-send-input seems to cut off at 254 characters References: <87bpr9ul08.fsf@cyd.mit.edu> Date: Wed, 13 Jan 2016 20:50:26 +0000 In-Reply-To: (Alan J. Third's message of "Sun, 10 Jan 2016 22:34:57 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 2148 Cc: Chong Yidong , Stefan Monnier 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: -0.5 (/) Alan J Third writes: > Chong Yidong writes: > >> The ^D is sent in process.c:5781. If we are splitting a string into >> chunks for sending to the process, Emacs puts in an EOF (C-d) to "force >> it through". >> >> I can't think of any fix, off the top of my head. Stefan, can you? If >> not, we could simply document this limitation in PROBLEMS. > > I can't replicate this in Emacs 25 (or Emacs 24.5) on OS X, and I can't find the code > described above in the source, or at least in send_process. Can someone > who knows their way around better than me please confirm whether the > offending code has been removed, please? OK, this code is no longer in Emacs. It was removed sometime in the life of Emacs 24: commit 2b0a91e78f83fb446cc38efb99399e83ad2cded3 Author: Stefan Monnier Date: Mon Apr 12 22:07:48 2010 -0400 Try to solve the problem of spurious EOF chars in long lines of text sent to interactive subprocesses. * sysdep.c (child_setup_tty): Do not enable ICANON any more. (system_process_attributes): Remove unused var `ttotal'. * process.c (send_process): Don't bother breaking long line with EOF chars when talking to ttys any more. (wait_reading_process_output): Output a warning when called in such a way that it could block without being interruptible. So I believe we can close this bug. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 13 15:51:48 2016 Received: (at control) by debbugs.gnu.org; 13 Jan 2016 20:51:48 +0000 Received: from localhost ([127.0.0.1]:48602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJSOS-0005jb-Fd for submit@debbugs.gnu.org; Wed, 13 Jan 2016 15:51:48 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37281) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJSOQ-0005jM-LC for control@debbugs.gnu.org; Wed, 13 Jan 2016 15:51:46 -0500 Received: by mail-wm0-f47.google.com with SMTP id f206so391486433wmf.0 for ; Wed, 13 Jan 2016 12:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:message-id:to:from:subject; bh=hy23lICepk+MbnwFjE1EoWGMw5dHvEU3o6WdToGSFKs=; b=FksQMcniDoy8BqasYBC9LGELQ2yCEFOJ8wtuTdnZm28WM5/O/4HEu+9RYJ7M5wB3gW 8ZEz2ncUWAxQuvd2udirFOgy8yo/dZwC/XUVwKt1wYDjPKnbBNjyYREWfe4q3HAlwaGt BHz2RF/ANNhKw8iPFArffKsZFVWlo2plWpieevVu1/fSt3pTtTs0rDNXtrtUmH6X5HtP XDhO/jP+nqJSbq2DGq7Ox2X/Ugkf0IpLZfUgyrzTiN5RaTxMSMcEXITMMypfG9MTLNCY 5b7d2ig6vh5op24wakRI/DL2qGy/BvwxQJ/WIu1W64W879nk43LSsLG7VAVKsSsLZsqC Merg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:message-id:to:from:subject; bh=hy23lICepk+MbnwFjE1EoWGMw5dHvEU3o6WdToGSFKs=; b=cQ+6OE/5zilwobVePsMroLkAjZaOJ0pAqBbxUgCARCoi5UOU//LqCH0PhRLOoyTDh3 zA2rkwmNrqp73aoepP9CnVsQqZjJNSSBjTtIk3Ogudm0WDFfY+Tu7B+Glk2LxnyOfD3f 4pllhrFoCpvr2Nbdts23RrhpF0pt3Be2B5tg6AWgEjflAjbbUxuK99c9upztnNdmM/9m I0tQXiq71CXi33oL9lfAFIz9YyEaDz8vSP+lH8f4QvimmU/lvY+Rx6C/I/33JOfnsAry p7S4rHJkin9TsB3LoMW+letpAbhR672GCErItaL16LSTXJJCcbPnOjxa1VhhwmO1au+h WqYw== X-Gm-Message-State: ALoCoQm2FDQSyC5plqg3AOY83AyDdwjkkR659o04GWBN3W9xjjrVR7y7qMFtTNCgxQbbBFsGUP6+0N0rLBk5cwdP4Rn6S1k8lg== X-Received: by 10.28.16.78 with SMTP id 75mr28897514wmq.82.1452718301089; Wed, 13 Jan 2016 12:51:41 -0800 (PST) Received: from galloway.idiocy.org (4.f.7.2.3.7.d.7.7.9.2.4.4.6.8.a.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:a864:4297:7d73:27f4]) by smtp.gmail.com with ESMTPSA id 198sm4230408wml.22.2016.01.13.12.51.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jan 2016 12:51:40 -0800 (PST) Date: Wed, 13 Jan 2016 20:51:38 +0000 Message-Id: To: control@debbugs.gnu.org From: Alan J Third Subject: control message for bug #2148 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: control 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: -0.5 (/) close 2148 24.5 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 13 16:11:25 2016 Received: (at 2148) by debbugs.gnu.org; 13 Jan 2016 21:11:25 +0000 Received: from localhost ([127.0.0.1]:48609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJShR-0007qv-4h for submit@debbugs.gnu.org; Wed, 13 Jan 2016 16:11:25 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37348) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJShO-0007qh-Ty for 2148@debbugs.gnu.org; Wed, 13 Jan 2016 16:11:23 -0500 Received: by mail-wm0-f49.google.com with SMTP id f206so392196112wmf.0 for <2148@debbugs.gnu.org>; Wed, 13 Jan 2016 13:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=F+8ivmlTk3Ps4fqyHvI6vH/nHd/wsC4f+Tk7rczpAmc=; b=zdEN6346dHAY5Y6ZhM8SvQVVKMiXqyM6iPMwY2kSqta5p5kAVY3m37mOMTGPa2hwUg vd0Qaz7vKG0uLzGPOm81+2zI1bhYhBtbsTzDTRNXsQHdQSj7vg7JhsqkYVSox/IY22OK 68AdKbyyGcufX3r23QFKP08JOv13rTUnXnb1qHWRPyLaCPjPaOlvfeyGn3EJ8MSVXGaI zTwmuDymFgVTbvXfhGQBjljVUK12HiHDL+CdWnFOpvNDOnKULp70Vigls7XZvcu7Ua5c stvVyU/MTQrL6jF58LspyU9N268OfVQEIT10fhqW37ra2kkaouW4Ws/ElLg+mQTkBgvI t/Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=F+8ivmlTk3Ps4fqyHvI6vH/nHd/wsC4f+Tk7rczpAmc=; b=dJOm5qTgw+v270rsBv8Kb0PCtzfosfcMx8ymKzBtdgts0gojFkUEhdvxLAV8kbfYOq s4aUjNaPYwMJvF9Ku7AKdYRTauivaQHG3eq7/94WQ/x+cfjoG5OiKZ3WNLwC6/3DqFnS 2MsMIDLR0Qmc1wVapnCcOSa2W2uVcGfIo5pkbcrxaQCzruineQ//HsgxVq/FVg5tjIiE BRj4QINZ7245d7fv+roNC2NLICilrMYmm+cZw5fsq22Qqb/eg9DQVkXHYOag6dImJ0GT YngPvSTkOGY0IULRaIYh8ih6wfXi5OJfmmbZaw7AIkNjkrSxMUTPHYEXXxSp0p0TBCzM mJog== X-Gm-Message-State: ALoCoQnwLvyZ5Z9uxh2hxMVRn0fwGg1TFKClZ3txqAfegdIQoQlXQJSf//qudQjK8w/wHeYj2hdpG3sshYA78z17C/O49lIGgA== X-Received: by 10.28.55.209 with SMTP id e200mr29373805wma.2.1452719477294; Wed, 13 Jan 2016 13:11:17 -0800 (PST) Received: from galloway.idiocy.org (4.f.7.2.3.7.d.7.7.9.2.4.4.6.8.a.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:a864:4297:7d73:27f4]) by smtp.gmail.com with ESMTPSA id ft4sm3063732wjb.37.2016.01.13.13.11.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jan 2016 13:11:16 -0800 (PST) From: Alan J Third To: Richard Addison-Wood Subject: Re: bug#2148: Re: In shell mode, comint-send-input seems to cut off at 254 characters References: <87bpr9ul08.fsf@cyd.mit.edu> Date: Wed, 13 Jan 2016 21:11:14 +0000 In-Reply-To: (Alan J. Third's message of "Wed, 13 Jan 2016 20:50:26 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 2148 Cc: 2148@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: -0.5 (/) Alan J Third writes: > Alan J Third writes: > >> Chong Yidong writes: >> >>> The ^D is sent in process.c:5781. If we are splitting a string into >>> chunks for sending to the process, Emacs puts in an EOF (C-d) to "force >>> it through". >>> >>> I can't think of any fix, off the top of my head. Stefan, can you? If >>> not, we could simply document this limitation in PROBLEMS. >> >> I can't replicate this in Emacs 25 (or Emacs 24.5) on OS X, and I can't find the code >> described above in the source, or at least in send_process. Can someone >> who knows their way around better than me please confirm whether the >> offending code has been removed, please? > > OK, this code is no longer in Emacs. It was removed sometime in the life > of Emacs 24: > > commit 2b0a91e78f83fb446cc38efb99399e83ad2cded3 > Author: Stefan Monnier > Date: Mon Apr 12 22:07:48 2010 -0400 > > Try to solve the problem of spurious EOF chars in long lines of text > sent to interactive subprocesses. > * sysdep.c (child_setup_tty): Do not enable ICANON any more. > (system_process_attributes): Remove unused var `ttotal'. > * process.c (send_process): Don't bother breaking long line with EOF > chars when talking to ttys any more. > (wait_reading_process_output): Output a warning when called in such > a way that it could block without being interruptible. > > So I believe we can close this bug. Apologies, I think I closed this bug report without cc'ing you in. As described above the behaviour you reported was removed some time ago. If you're still experiencing it in a recent version of Emacs, please let me know. -- Alan Third From unknown Thu Sep 11 09:30:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Feb 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator