From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. Date: Sun, 05 Nov 2017 08:59:47 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1509901253 19175 195.159.176.226 (5 Nov 2017 17:00:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2017 17:00:53 +0000 (UTC) Cc: 29002@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 05 18:00:48 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 1eBOHt-0004Zk-PF for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Nov 2017 18:00:46 +0100 Original-Received: from localhost ([::1]:44970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBOHx-00022J-Mw for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Nov 2017 12:00:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBOHH-0001dk-NL for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 12:00:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBOHD-0007eQ-5w for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 12:00:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBOHD-0007eH-2v for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 12:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBOHC-0003tt-Q1 for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 12:00:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Nov 2017 17:00: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.150990119214944 (code B ref 29002); Sun, 05 Nov 2017 17:00:02 +0000 Original-Received: (at 29002) by debbugs.gnu.org; 5 Nov 2017 16:59:52 +0000 Original-Received: from localhost ([127.0.0.1]:52478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBOH2-0003sy-Gb for submit@debbugs.gnu.org; Sun, 05 Nov 2017 11:59:52 -0500 Original-Received: from gateway32.websitewelcome.com ([192.185.145.182]:46006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBOH0-0003sp-Dn for 29002@debbugs.gnu.org; Sun, 05 Nov 2017 11:59:51 -0500 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway32.websitewelcome.com (Postfix) with ESMTP id F05181C1889 for <29002@debbugs.gnu.org>; Sun, 5 Nov 2017 10:59:48 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id BOGye4IrlDL8rBOGyet5cK; Sun, 05 Nov 2017 10:59:48 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xpppUhf7+VFV6WbUOLA78udn4V10SwjTciuHtGSbFVI=; b=UjyUPIp7Nq99EPM5M5sOk7aq00 U2+NrWfZdxNCbQRm4NgaZ8UAL8qCXw/mHU6KLA6mabwO0PAohthNK3pHpsDPgRCpMh3xNL+rRxymF SMDLTGq9oRyk+x/BeEqVri5hQBxPr7OLlFMItLZNOOxq6hRqLEw6ua6MctXq/iqzleUo+rs8ElfK1 yKzLQ1HIZcftWG5RJObYM9NzU4YxsMbooGEkPBLrpigSAvh6uJjOJ22WWTRlQATlsrR/dla8flTsb mvyrDj4Hq8OzPDIKWEEhpWPHna7NrQk7W1ZSSsXEBzS9F6ACDHRsNbWPD96Nrtm+OAKnviLJjJ9OQ vcCNHwkQ==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49394 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eBOGy-000tGv-49; Sun, 05 Nov 2017 10:59:48 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eBOGy-000tGv-49 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:49394 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes 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:139473 Archived-At: Step # 1: Download a fresh copy of the emacs-26 branch. Step # 2: Inside the function `set_window_hscroll` within window.c, add a message just before the function returns. AUTO_STRING (my_string_one, "window.c: set_window_hscroll"); CALLN (Fmessage, my_string_one); Step # 3: Build the new Emacs, and launch without any user configuration. Step # 4: From the Welcome screen, type: C-r Step # 5: Slowly type the word Emacs and watch the echo area as you type each letter. Inasmuch as the function `set_window_hscroll` is being called each time we type a letter, the proposed fix to #29002 causes a thorough redisplay after every keystroke while using isearch. This is probably not limited to isearch -- it was just the first occasion where the side affect was immediately noticeable. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [11-05-2017 02:44:39] <05 Nov 2017 12:44:39 +0200> FROM: Eli Zaretskii > > 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.g., when using isearch. > > > > 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. > > > > > > * * * > > Please describe a recipe where you see suspend_auto_hscroll being > set true every command loop.