From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: carriage-return no longer works quite right in shell-mode Date: Sun, 10 Feb 2008 19:17:51 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1202689225 18330 80.91.229.12 (11 Feb 2008 00:20:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 00:20:25 +0000 (UTC) Cc: Chris Moore To: emacs-pretest-bug@gnu.org, handa@m17n.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 01:20:48 2008 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.50) id 1JOMPe-0004A5-ES for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 01:20:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOMPB-000693-6p for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2008 19:20:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOMMs-00054D-46 for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:17:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOMMq-00053O-LB for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:17:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOMMq-00053E-C7 for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:17:52 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOMMq-0007mC-4c for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:17:52 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JOMMp-0001kD-32; Sun, 10 Feb 2008 19:17:51 -0500 In-reply-to: (christopher.ian.moore@gmail.com) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:88694 gmane.emacs.pretest.bugs:21004 Archived-At: Would someone please investigate this, DTRT, then ack? I'd guess it was broken by unicode-2 merge. Message-ID: Date: Tue, 5 Feb 2008 20:03:58 +0100 From: "Chris Moore" To: emacs-pretest-bug@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Cc: Subject: carriage-return no longer works quite right in shell-mode I recently updated Emacs from the CVS trunk and one of the programs I run inside a shell-mode buffer has stopped formatting its output correctly. It uses carriage return characters to re-write the same line over and over, and leaves the cursor at the beginning of the line. Here's a simplified example that no longer works in Emacs: #include main() { int i; for (i = 0; i < 10; i++) { printf(" count: %d\r", i); fflush(stdout); sleep(1); } printf("\n"); } Instead of re-writing the same part of the buffer over and over, I see: count: 0 count: 1 count: 2 in the buffer - the carriage return isn't returning the carriage like it used to. I notice that apt-get does still work - that leaves the cursor at the end of the line, which I guess is the important difference.