From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Window display bug Date: 24 Jun 2003 02:31:32 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5x4r2g48pn.fsf@kfs2.cua.dk> References: <16104.55433.624940.73145@nick.uklinux.net> <5xr85sutwz.fsf@kfs2.cua.dk> <16113.4307.806528.279572@nick.uklinux.net> <5xof0tmtiz.fsf@kfs2.cua.dk> <16115.13352.326959.811917@nick.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056407809 14357 80.91.224.249 (23 Jun 2003 22:36:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2003 22:36:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 24 00:36:46 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19UZva-0003j9-00 for ; Tue, 24 Jun 2003 00:36:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19UZyq-0007rl-00 for ; Tue, 24 Jun 2003 00:40:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UZvP-0005j3-Ka for emacs-devel@quimby.gnus.org; Mon, 23 Jun 2003 18:36:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19UZv3-0005SG-NY for emacs-devel@gnu.org; Mon, 23 Jun 2003 18:36:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19UZtu-0004kT-Od for emacs-devel@gnu.org; Mon, 23 Jun 2003 18:35:04 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UZsV-0003BF-DU for emacs-devel@gnu.org; Mon, 23 Jun 2003 18:33:35 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 17E217C012; Tue, 24 Jun 2003 00:33:28 +0200 (CEST) Original-To: Nick Roberts In-Reply-To: <16115.13352.326959.811917@nick.uklinux.net> Original-Lines: 51 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15198 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15198 Nick Roberts writes: > I can give you a way to reproduce it. I get it with emacs -q --no-site-file > with a standard emacs (compiled with just `make'). If you can't see it I'll > send more details of my set up. You'll need the version of gdb-ui.el that > I've just checked in to CVS (2003-06-18). > > Type M-x gdba, then either give gdb the name of an executable that has been > compiled without -g or select GUD->View->Assembler from the menubar so that > Assembler is displayed in the source window. Type "break main" in the GUD > buffer and then "run". A breakpoint icon should appear and an arrow behind it. > Now step the program at the instruction level (either by clicking on the > appropriate toolbar button or by typing "ni" and the repeatedly). The > arrow should move and point with it until they disappear off the window. If > you have line-number mode enabled, then you will see that number increment > after each instruction is executed. Window display should follow the execution > (or rather the point) but it only does this if Richard's change is reverted. > My followup: > I do see some strange effects, yes. > Could be related to doing (recenter -1) when point is > on the bottom line of the window. > I'll investigate further. Your reply: > But the latest version of gdb-ui.el (1.36) doesn't use (recenter -1). I > originally put it in to try to force the redisplay before concluding that it > was a bug with emacs. I'm pretty sure it relates to the change that I > specified. If I look at a backtrace when emacs enters the relevant redisplay code, it is still called from (recenter -1) somewhere in comint. Actually, if the cursor is placed on the bottom line (at the time where doing "ni" doesn't work as intended), if I do M-: (recenter -1) RET, the same incorrect behaviour is observed. To me it seems that there is a problem in Frecenter with ARG == -1, although I cannot see exactly what the problem ... however, in the error case, the it->current_y never seems to have any other value than 0, so it doesn't really know where the cursor is, or how much it needs to scroll... I'm short on time currently, so I don't have much time to debug this. Have anyone else seen problems with (recenter -1) ?? -- Kim F. Storm http://www.cua.dk