From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9324: 24.0.50; Movement past end of screen causes weird jump Date: Sat, 20 Aug 2011 10:37:25 -0400 Message-ID: References: <00373C62-5B35-44BB-8770-CC91E8161366@gmail.com> <87bovm5ssx.fsf@gmail.com> <8362ltst7w.fsf@gnu.org> <04093F70-5A0B-4123-8C18-38FAAD2A6DEC@gmail.com> <831uwhsmx7.fsf@gnu.org> <0FDD993E-173A-482A-937B-8DE5E330D4F4@gmail.com> <83ty9dqq54.fsf@gnu.org> <9ACB0EEF-FA00-4644-9D76-727BFDD9CECF@gmail.com> <83r54hqkz8.fsf@gnu.org> <83vcts48z5.fsf@gnu.org> <0760243C-31D8-492E-99BE-86D87D7601F6@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1313851099 27052 80.91.229.12 (20 Aug 2011 14:38:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2011 14:38:19 +0000 (UTC) Cc: 9324@debbugs.gnu.org To: Ivan Andrus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 20 16:38:13 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qumgc-00080Z-17 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2011 16:38:10 +0200 Original-Received: from localhost ([::1]:60947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QumgY-0001J0-Bm for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2011 10:38:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QumgV-0001Ie-2q for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 10:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QumgT-0003pJ-VC for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 10:38:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QumgT-0003pD-SM for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 10:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QumiY-0006CC-Li; Sat, 20 Aug 2011 10:40:11 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2011 14:40:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9324 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9324-submit@debbugs.gnu.org id=B9324.131385118223761 (code B ref 9324); Sat, 20 Aug 2011 14:40:07 +0000 Original-Received: (at 9324) by debbugs.gnu.org; 20 Aug 2011 14:39:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qumi5-0006BB-6d for submit@debbugs.gnu.org; Sat, 20 Aug 2011 10:39:41 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qumi1-0006B2-5Y for 9324@debbugs.gnu.org; Sat, 20 Aug 2011 10:39:39 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Qumft-0001mv-O2; Sat, 20 Aug 2011 10:37:26 -0400 In-reply-to: <0760243C-31D8-492E-99BE-86D87D7601F6@gmail.com> (message from Ivan Andrus on Sat, 20 Aug 2011 14:29:30 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 20 Aug 2011 10:40:10 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50174 Archived-At: > From: Ivan Andrus > Date: Sat, 20 Aug 2011 14:29:30 +0200 > > >> Aaargh! After running the progn, do you see all of line starting with 208, or just the continuation of it. > > > > Neither. The top line in the window is this: > > > > (custom-set-faces '(mode-line ((t (:box (:line-width 1)))))) > > > > If you see something else, your frame must be much larger than mine. > > But it should have set up the frame size to be the same!? I have > > (cons (frame-parameter nil 'height) (frame-parameter nil 'width)) > (47 . 89) > > Does setting the frame size not work the same way in Windows? No, it works the same. However, AFAIR you cannot trust changes in frame parameters to take effect immediately, only on the next redisplay cycle. If you evaluate the frame parameter changes before the progn, does the problem still happen? > Sorry, I started debugging immediately after I evaluated the forward-sexp so that's where the point ought to be. But then what you observed in the debugger is not related at all to the issue at hand, does it? > lpoint and opoint were optimized away, but FWIW I got the following in both situations: > > (gdb) ppt > BUF PT: 2418 of 1..2419 GAP: 2419 SZ=2000 > > > (gdb) p startp > $3 = { > charpos = 0, > bytepos = 4320351914 > } I don't believe these values, I'm quite sure they are wrong because the build is optimized. > > Anyway, you should be able to tell which of the conditions got > > new_vpos set by looking at the values of w->cursor.vpos and > > w->frozen_window_start_p. > > (gdb) p w->cursor.vpos > $6 = -1 > (gdb) p w->frozen_window_start_p > $7 = 0 > > so that means new_vpos = window_box_height (w) / 2; I will only believe what the debugger shows in a non-optimized build. Please use "-ggdb -g3" in the compiler switches, to force GCC to produce as much debug info as possible.