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#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. Date: Sun, 05 Nov 2017 12:44:39 +0200 Message-ID: <48B1E249-3645-44E1-B9AC-69415AB749A1@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509878775 18743 195.159.176.226 (5 Nov 2017 10:46:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2017 10:46:15 +0000 (UTC) User-Agent: K-9 Mail for Android Cc: 29002@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 05 11:46:07 2017 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 1eBIRK-0004P9-An for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Nov 2017 11:46:06 +0100 Original-Received: from localhost ([::1]:43723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBIRR-0003iD-LX for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Nov 2017 05:46:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBIRL-0003ht-Pf for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:46:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBIRG-0001iT-QA for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:46:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBIRG-0001iP-MC for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBIRG-0003MT-Fs for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Nov 2017 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29002 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29002-submit@debbugs.gnu.org id=B29002.150987871712864 (code B ref 29002); Sun, 05 Nov 2017 10:46:02 +0000 Original-Received: (at 29002) by debbugs.gnu.org; 5 Nov 2017 10:45:17 +0000 Original-Received: from localhost ([127.0.0.1]:51226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBIQX-0003LP-Cy for submit@debbugs.gnu.org; Sun, 05 Nov 2017 05:45:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBIQW-0003LE-44 for 29002@debbugs.gnu.org; Sun, 05 Nov 2017 05:45:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBIQM-0001FX-2f for 29002@debbugs.gnu.org; Sun, 05 Nov 2017 05:45:11 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBIQ0-00016T-Nw; Sun, 05 Nov 2017 05:44:44 -0500 Original-Received: from [176.13.234.160] (port=6940 helo=[10.128.162.64]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eBIQ0-0007Vd-0A; Sun, 05 Nov 2017 05:44:44 -0500 In-Reply-To: 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:144038 On November 5, 2017 11:15:41 AM GMT+02:00, Keith David Bershatsky wrote: > The new fix relating to #29002 has an unintended side-effect of > causing a full redisplay too often, e=2Eg=2E, when using isearch=2E >=20 > I am uncertain why the current Emacs design sets > w->suspend_auto_hscroll to *true* every command loop, but that is what > causes the new condition to force a thorough redisplay much more often > than is actually needed=2E >=20 >=20 > /* If the position of this window's point has explicitly > changed, no more suspend auto hscrolling=2E */ > if (w->suspend_auto_hscroll > && NILP (Fequal (Fwindow_point (window), > Fwindow_old_point (window)))) > { >=20 > AUTO_STRING (my_string_one, "Hello world!"); > CALLN (Fmessage, my_string_one); >=20 > w->suspend_auto_hscroll =3D false; > /* Force thorough redisplay of this window, to show the > effect of disabling hscroll suspension immediately=2E */ > SET_FRAME_GARBAGED (XFRAME (w->frame)); > } Please describe a recipe where you see suspend_auto_hscroll being set true every command loop=2E