From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris Moore" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: carriage-return no longer works quite right in shell-mode Date: Tue, 5 Feb 2008 20:03:58 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202238261 1812 80.91.229.12 (5 Feb 2008 19:04:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2008 19:04:21 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 05 20:04:42 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 1JMT5z-000866-Jf for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 20:04:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMT5X-0001KX-Gs for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 14:04:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMT5T-0001K4-Im for emacs-devel@gnu.org; Tue, 05 Feb 2008 14:04:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMT5S-0001Js-5W for emacs-devel@gnu.org; Tue, 05 Feb 2008 14:04:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMT5R-0001Jp-VO for emacs-devel@gnu.org; Tue, 05 Feb 2008 14:04:05 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMT5R-0001U6-L3 for emacs-devel@gnu.org; Tue, 05 Feb 2008 14:04:05 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JMT5R-0004Lp-Ae for emacs-pretest-bug@gnu.org; Tue, 05 Feb 2008 14:04:05 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JMT5O-0001T8-5t for emacs-pretest-bug@gnu.org; Tue, 05 Feb 2008 14:04:05 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMT5M-0001SG-Li for emacs-pretest-bug@gnu.org; Tue, 05 Feb 2008 14:04:02 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so37320wah.10 for ; Tue, 05 Feb 2008 11:03:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=UpsASJg8fN7Z41t8qHsX8NX+QWE3yBazlQlcBlBc9bA=; b=BTAVzAhRvuEbxfJKWNZD02yxY4WxejEneCnyOytExs1ATYGbzP4Mq3kD/Pa/VL2W0JLBlJR/8hbpGpwJ3k6dUql+AmAMXClbEXflr78CHgQ96n9dGHClWM84S/mVdb8jCk46IHjg6+LYF3RUqWPyCWso6YK095OXX+NYtgPG9pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=S2Q8L5tFz1/Dw6VWB6SMMUvHY2kvm+9FHOGiJ6Rr8eSIxoAnsVBcTm5xYN/+48Q2Y95wUsiwNnTJTqa71DERrPqoQoH2ZhTvC7IuhhF9S5j/RveMxvU8jUn5EP3bU1bgIgVV85meS+0SUOXiuCDpxLCR3j4vM9lo7V3NL0KTHGQ= Original-Received: by 10.114.152.17 with SMTP id z17mr3052813wad.128.1202238238499; Tue, 05 Feb 2008 11:03:58 -0800 (PST) Original-Received: by 10.114.203.4 with HTTP; Tue, 5 Feb 2008 11:03:58 -0800 (PST) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:88294 gmane.emacs.pretest.bugs:20888 Archived-At: 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.