From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Lexbind (was: Emacs 23.3 released) Date: Sat, 19 Mar 2011 10:35:24 +0200 Message-ID: <83sjujqzhv.fsf@gnu.org> References: <87sjuulr20.fsf@gmail.com> <87aah2p1s1.fsf@gmail.com> <83vczhsg7l.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1300523781 21470 80.91.229.12 (19 Mar 2011 08:36:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 08:36:21 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 09:36:17 2011 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.69) (envelope-from ) id 1Q0rdw-0006aN-32 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 09:36:16 +0100 Original-Received: from localhost ([127.0.0.1]:40433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0rdv-0006kb-6z for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 04:36:15 -0400 Original-Received: from [140.186.70.92] (port=50508 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0rdp-0006kU-BI for emacs-devel@gnu.org; Sat, 19 Mar 2011 04:36:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0rdn-0006RZ-R6 for emacs-devel@gnu.org; Sat, 19 Mar 2011 04:36:08 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:60048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0rdn-0006RL-Kx for emacs-devel@gnu.org; Sat, 19 Mar 2011 04:36:07 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LIA00K00PL9P700@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 19 Mar 2011 10:35:21 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.131.120]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LIA00J41QIVLLF0@a-mtaout20.012.net.il>; Sat, 19 Mar 2011 10:35:21 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:137416 Archived-At: > From: Juanma Barranquero > Date: Sat, 19 Mar 2011 01:54:43 +0100 > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > > It's looping here (in the else part, obviously): > > start_display (&it, w, startp); > if (scroll_max < INT_MAX) > move_it_vertically (&it, amount_to_scroll); > else > { > /* Extra precision for users who set scroll-conservatively > to most-positive-fixnum: make sure the amount we scroll > the window start is never less than amount_to_scroll, > which was computed as distance from window bottom to > point. This matters when lines at window top and lines > below window bottom have different height. */ > struct it it1 = it; > /* We use a temporary it1 because line_bottom_y can modify > its argument, if it moves one line down; see there. */ > int start_y = line_bottom_y (&it1); > > do { > move_it_by_lines (&it, 1, 1); > it1 = it; > } while (line_bottom_y (&it1) - start_y < amount_to_scroll); > } > > In my current session, line_bottom_y (&it1) == 15, start_y == 15, > amount_to_scroll == 15, forever and ever and ever. So you are saying that the do-while loop is never exited, is that it? If so, could you step inside move_it_by_lines and see why it doesn't (move, that is)? It is supposed to move one line down. Also, can you show the text through which this loop is supposed to move down? If that text is displayed on the screen, are there some unusual features it uses, like invisible text or continuation lines?