From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100961: Enable ICANON (Bug#6771). Any long line problem must be solved differently. Date: Fri, 06 Aug 2010 16:30:17 +0200 Message-ID: <4C5C1C79.8050000@swipnet.se> References: <4C5AD894.1010501@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281113936 10002 80.91.229.12 (6 Aug 2010 16:58:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Aug 2010 16:58:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 06 18:58:52 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OhQFv-0006jG-Ql for ged-emacs-devel@m.gmane.org; Fri, 06 Aug 2010 18:58:52 +0200 Original-Received: from localhost ([127.0.0.1]:39973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhQFw-0000jr-3y for ged-emacs-devel@m.gmane.org; Fri, 06 Aug 2010 12:58:52 -0400 Original-Received: from [140.186.70.92] (port=45584 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhPq5-00005H-Mq for emacs-devel@gnu.org; Fri, 06 Aug 2010 12:32:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhNwC-00044q-T3 for emacs-devel@gnu.org; Fri, 06 Aug 2010 10:30:24 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:58026) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhNwC-00044V-LM for emacs-devel@gnu.org; Fri, 06 Aug 2010 10:30:20 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 22893E804E for ; Fri, 6 Aug 2010 16:30:19 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEvAFG5W0xV4S0jPGdsb2JhbACHZ5hWDAEBAQE1LcR1hToE X-IronPort-AV: E=Sophos;i="4.55,329,1278280800"; d="scan'208";a="115823767" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 06 Aug 2010 16:30:18 +0200 Original-Received: from [172.20.199.14] (zeplinf [172.20.199.14]) by coolsville.localdomain (Postfix) with ESMTPSA id 2ED497FA05A; Fri, 6 Aug 2010 16:30:18 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128391 Archived-At: Stefan Monnier skrev 2010-08-06 15.03: >>> I agree with the commit that reverts my ICANON change. Yet: >>>> There is AFAIK no bug report or test case for the long line problem. >>> AFAIK, the missing bug-report is the one that shows the ills of sending >>> EOFs, while the bug-report for long-lines is bug#6149, which should be >>> re-opened. > >> As I said in relation to this, I could not reproduce the error in 6149. > > I could and still can: > > emacs -Q > M-x shell > echo > SPC C-u 5000 a > | wc > RET > > and instead of getting wc's output I just get 4090 "a"s > (the command appears to get cut at 4096 chars). The shell is `zsh', but > last time I tried, the result was the same with bash. It is definitly a shell thing. I tried with 100000 and bash: No problem. It could be the tty driver that does things differently, but I tested on OSX and Fedora 12. It really doesn't matter if Emacs sets icanon or not for bash at least and probably most shells that use command line editing. Those shells will turn off icanon while reading input, and only turn it on when a command is executed. Jan D. Jan D.