From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24109: 24.5; Long lines in message mode make Emacs irresponsive Date: Thu, 01 Sep 2016 17:30:28 +0300 Message-ID: <83fupjg0aj.fsf@gnu.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> <87a8ft7x93.fsf@wavexx.thregr.org> <83d1kolxyi.fsf@gnu.org> <877faw9945.fsf@wavexx.thregr.org> <83pooofit8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1472740357 25545 195.159.176.226 (1 Sep 2016 14:32:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2016 14:32:37 +0000 (UTC) Cc: 24109@debbugs.gnu.org, djcb@djcbsoftware.nl, Christophe.Troestler@umons.ac.be To: wavexx@thregr.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 01 16:32:32 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 1bfT2a-000561-WA for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Sep 2016 16:32:29 +0200 Original-Received: from localhost ([::1]:37347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfT2Q-0007OK-BW for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Sep 2016 10:32:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfT2F-0007MB-Nt for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2016 10:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfT2A-0001Qw-Qp for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2016 10:32:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfT2A-0001Qs-N0 for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2016 10:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bfT2A-0003Dn-GG for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2016 10:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Sep 2016 14:32: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.147274026312313 (code B ref 24109); Thu, 01 Sep 2016 14:32:02 +0000 Original-Received: (at 24109) by debbugs.gnu.org; 1 Sep 2016 14:31:03 +0000 Original-Received: from localhost ([127.0.0.1]:46547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfT19-0003CD-6A for submit@debbugs.gnu.org; Thu, 01 Sep 2016 10:31:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfT14-0003Bx-KN for 24109@debbugs.gnu.org; Thu, 01 Sep 2016 10:30:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfT0v-00018q-LG for 24109@debbugs.gnu.org; Thu, 01 Sep 2016 10:30:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfT0h-00010s-Aw; Thu, 01 Sep 2016 10:30:31 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4818 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bfT0f-0000w7-6N; Thu, 01 Sep 2016 10:30:29 -0400 In-reply-to: <83pooofit8.fsf@gnu.org> (message from Eli Zaretskii on Thu, 01 Sep 2016 05:35:47 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:122826 Archived-At: > Date: Thu, 01 Sep 2016 05:35:47 +0300 > From: Eli Zaretskii > Cc: 24109@debbugs.gnu.org, djcb@djcbsoftware.nl, > Christophe.Troestler@umons.ac.be > > > From: Yuri D'Elia > > Cc: 24109@debbugs.gnu.org, djcb@djcbsoftware.nl, Christophe.Troestler@umons.ac.be, rudalics@gmx.at > > Date: Wed, 31 Aug 2016 18:49:30 +0200 > > > > > For starters, in this line: > > > > > > if (w->hscroll != hscroll) > > > > > > what are the values of those two, and do they change each time > > > hscroll_windows is called in the infloop, for the selected window? > > > > They swap the value at each iteration: > > > > Thread 1 "emacs" hit Breakpoint 14, hscroll_window_tree (window=20142453) at xdisp.c:13086 > > $154 = 0 > > $155 = 487 > > Continuing. > > > > Thread 1 "emacs" hit Breakpoint 14, hscroll_window_tree (window=20142453) at xdisp.c:13086 > > $156 = 487 > > $157 = 0 > > Continuing. > > What are your values of hscroll-step and hscroll-margin? FWIW, I tried to use your recipe, but failed spectacularly. mu4e refuses to run without a working mu installation. I tried to build mu on my system, but was forced to give up after 2 hours of fighting with GMIME and mu itself to compile and work correctly on MS-Windows -- there's too much Posix-only stuff there, and my quick & dirty workarounds were probably too quick and too dirty. The best I could achieve is "mu index --rebuild" cheerfully tell me that it indexed zero mails, and then (mu4e) in Emacs complained that the database is empty and refused to continue. So we are back to me asking questions and you answering them. In addition to the above, here's one more: when hscroll_window_tree is called with w->hscroll already non-zero (i.e. after the display engine scrolls the window to bring point into the view), how come it tries again to hscroll the window? The complicated condition that starts at line 12993 is supposed to yield false in that case, because the X coordinate of the cursor, stored in w->cursor.x, is now supposed to be between the left and the right hscroll margins. Why isn't that happening in your case? Some values that might help understand the answer to the above are: in C: w->cursor w->min_hscroll in Lisp: hscroll-step hscroll-margin Thanks.