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: Sat, 01 Oct 2016 19:10:27 +0200 Message-ID: <8737kgxaf0.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> <87a8ft7x93.fsf@wavexx.thregr.org> <83d1kolxyi.fsf@gnu.org> <877faw9945.fsf@wavexx.thregr.org> <83pooofit8.fsf@gnu.org> <83fupjg0aj.fsf@gnu.org> <28e7ddc58bcfeec0@fake-msgid> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1475341886 20201 195.159.176.226 (1 Oct 2016 17:11:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Oct 2016 17:11:26 +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 Sat Oct 01 19:11:22 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 1bqNoh-0003xt-4L for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 19:11:15 +0200 Original-Received: from localhost ([::1]:56603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqNof-0001TJ-IE for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 13:11:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqNoY-0001TD-K3 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 13:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqNoU-0001xD-Br for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 13:11:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqNoU-0001x9-92 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 13:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqNoU-0008HX-5p for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 13:11: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: Sat, 01 Oct 2016 17:11: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.147534183731802 (code B ref 24109); Sat, 01 Oct 2016 17:11:02 +0000 Original-Received: (at 24109) by debbugs.gnu.org; 1 Oct 2016 17:10:37 +0000 Original-Received: from localhost ([127.0.0.1]:41309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqNo5-0008Gs-5J for submit@debbugs.gnu.org; Sat, 01 Oct 2016 13:10:37 -0400 Original-Received: from e.thregr.org ([80.68.88.20]:54519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqNo3-0008Gk-3f for 24109@debbugs.gnu.org; Sat, 01 Oct 2016 13:10:35 -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 1bqNnv-0003ab-9F; Sat, 01 Oct 2016 19:10:27 +0200 In-reply-to: <28e7ddc58bcfeec0@fake-msgid> 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:123864 Archived-At: On Thu, Jan 01 1970, Yuri D'Elia wrote: >> What are your values of hscroll-step and hscroll-margin? hscroll-step 0 hscroll-margin 5 (default values) > 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 It took me a while to sit down on this issue again. I noticed one thing while trying to restrict the problem: setting auto-hscroll-mode to nil, an error is shown in the *Messages* buffer instead of entering an infinite loop: previous-line: Beginning of buffer while not moving the cursor at all on the first invocation, but working on the second. If something is off there, it might as well be trigger horizontal scrolling and thus conflict with the current goal column.