From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.bugs Subject: bug#24109: 24.5; Long lines in message mode make Emacs irresponsive Date: Wed, 31 Aug 2016 17:51:04 +0200 Message-ID: <87a8ft7x93.fsf@wavexx.thregr.org> References: <20160830123848.qxgg3hcawx4yqw4j@eab16011nb> <838tvenum4.fsf@gnu.org> <87wpiydzl7.fsf@wavexx.thregr.org> <83r396mdfr.fsf@gnu.org> <87lgzduwnm.fsf@wavexx.thregr.org> <83poopknr0.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1472658751 15201 195.159.176.226 (31 Aug 2016 15:52:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2016 15:52:31 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 24.5.1 Cc: 24109@debbugs.gnu.org, djcb@djcbsoftware.nl, Christophe.Troestler@umons.ac.be To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 31 17:52:23 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bf7oJ-0002mL-8F for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Aug 2016 17:52:19 +0200 Original-Received: from localhost ([::1]:54685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf7oG-0003ZW-Vg for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Aug 2016 11:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf7o7-0003ZE-Mx for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2016 11:52:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bf7o2-0001jM-LK for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2016 11:52:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf7o2-0001jI-ID for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2016 11:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bf7o2-0001xP-6j for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2016 11:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuri D'Elia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Aug 2016 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24109-submit@debbugs.gnu.org id=B24109.14726586797471 (code B ref 24109); Wed, 31 Aug 2016 15:52:02 +0000 Original-Received: (at 24109) by debbugs.gnu.org; 31 Aug 2016 15:51:19 +0000 Original-Received: from localhost ([127.0.0.1]:45598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bf7nH-0001wN-61 for submit@debbugs.gnu.org; Wed, 31 Aug 2016 11:51:19 -0400 Original-Received: from e.thregr.org ([80.68.88.20]:47516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bf7nA-0001w9-PG for 24109@debbugs.gnu.org; Wed, 31 Aug 2016 11:51:13 -0400 Original-Received: from [2a02:27e8:20:9049:56ee:75ff:fe83:444c] (helo=localhost) by e.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1bf7n5-0006oz-Rf; Wed, 31 Aug 2016 17:51:03 +0200 In-reply-to: <83poopknr0.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:122809 Archived-At: On Wed, Aug 31 2016, Eli Zaretskii wrote: > The main loop in try_window is this: > > /* Display all lines of W. */ > while (it.current_y < it.last_visible_y) > { > if (display_line (&it)) > last_text_row = it.glyph_row - 1; > if (f->fonts_changed && !(flags & TRY_WINDOW_IGNORE_FONTS_CHANGE)) > return 0; > } > > Please see if the loop terminates, by setting a breakpoint on the > 'return 0' statement and on the line after the loop. > > If it terminates, it means try_window does its job correctly, and we > will need to look in the caller, redisplay_window, for the reasons of > this infloop. It actually terminates. I've narrowed it down to redisplay_internal(), hitting a goto in xdisp.c:14144: if (hscroll_windows (selected_window)) => goto retry;