From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#367: compilation-scroll-output not working on certain long line Date: Fri, 06 Jun 2008 07:58:55 +1000 Message-ID: <87zlpzpmqo.fsf@blah.blah> Reply-To: Kevin Ryde , 367@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1212703641 14887 80.91.229.12 (5 Jun 2008 22:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2008 22:07:21 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 00:08:03 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4Ncn-0007n6-Vd for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 00:08:02 +0200 Original-Received: from localhost ([127.0.0.1]:42838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Nc1-0004L3-9e for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2008 18:07:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4Nbx-0004Ky-DV for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 18:07:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4Nbv-0004Km-Nq for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 18:07:09 -0400 Original-Received: from [199.232.76.173] (port=42476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Nbv-0004Kj-Lr for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 18:07:07 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46161) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4Nbv-0004LS-07 for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 18:07:07 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m55M75J1014884; Thu, 5 Jun 2008 15:07:05 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m55M56M6013883; Thu, 5 Jun 2008 15:05:06 -0700 X-Loop: don@donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 05 Jun 2008 22:05:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 367 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121270318711797 (code B ref -1); Thu, 05 Jun 2008 22:05:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jun 2008 21:59:47 +0000 Original-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 m55LxgV0011791 for ; Thu, 5 Jun 2008 14:59:44 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4NUk-0000d4-OQ for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 17:59:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4NUi-0000aP-QT for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 17:59:41 -0400 Original-Received: from [199.232.76.173] (port=39315 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4NUi-0000a4-N6 for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 17:59:40 -0400 Original-Received: from mailout1-12.pacific.net.au ([125.255.80.131]:35788 helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4NUh-0003S9-KC for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 17:59:40 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id E89613820C2 for ; Fri, 6 Jun 2008 07:59:33 +1000 (EST) Original-Received: from blah.blah (ppp21ED.dyn.pacific.net.au [61.8.33.237]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 0925E8C16 for ; Fri, 6 Jun 2008 07:59:33 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1K4NU0-0000j8-6R for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2008 07:58:56 +1000 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 05 Jun 2008 18:07:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18265 Archived-At: --=-=-= With foo.el and foo.pl below, running emacs -Q foo.el M-x eval-buffer produces a compilation window showing only "xxx.xx" bits, where I hoped setting compilation-scroll-output to `t' in foo.el would make it follow the further output after that, ie. the "bar" lines (which you can see by switching to the *compilation* buffer and scrolling down). The foo.pl script is merely to print the provoking output. It's a long line arriving as its first 1024 bytes and then enough to just fill the 10-line compilation window. During the second sleep the end of the "xxx.xx" is the last line in the window. I get the problem on both a console tty and under gtk X, and in both the debian packaged 22.2 and my build of the current cvs. It seems to depend on the sleeps, ie. pauses in the output, so if you don't get the effect you might try increasing them a bit. In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-04-27 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' 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: en_AU locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t encoded-kbd-mode: t file-name-shadow-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=foo.el (setq compilation-scroll-output t) (setq compilation-window-height 10) (compile "perl foo.pl") --=-=-= Content-Type: text/x-perl Content-Disposition: attachment; filename=foo.pl Content-Transfer-Encoding: quoted-printable #!/usr/bin/perl sleep 2; $| =3D 1; print 'xxxxxxxx: xxx.xx xxx.xx xxx.xx xxxxx.xx xxx.xx xxx.xx xxx.xx xxx.xx = xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxxxx.xx xxx.xx xxx.xx xxx= .xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx x= xx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx= xxxxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xx= x.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx = xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.x= x xxx.xx xxx.xx xxxxx.xx xxxxx.xx xxxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.x= x xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx= .xx xxx.xx xxxxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx= xxx.xx xxx.xx xxxxx.xx xxx.xx xxx.xx xxx.xx xxxxx.xx xxx.xx xxx.xx xxx.xx = xxx.xx xxx.xx xxx.xx xxx.xx xxxxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx= .xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxxxx.xx xxx.xx xxx.xx= xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx'; sleep 2; print ' xxx.xx xxxxx.xx xxxxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx = xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.xx xxx.x= x xxx.xx xxx.xx xxxxx.xx xxx.xx xxx.xx xxx.xx xxx.xx '; sleep 2; foreach (1..100) { print "bar\n"; } exit 0; --=-=-=--