From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 25 21:03:41 2017 Received: (at submit) by debbugs.gnu.org; 26 Oct 2017 01:03:41 +0000 Received: from localhost ([127.0.0.1]:33759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7WaC-0002IU-UN for submit@debbugs.gnu.org; Wed, 25 Oct 2017 21:03:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7WaA-0002IC-Ey for submit@debbugs.gnu.org; Wed, 25 Oct 2017 21:03:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7Wa3-0005K0-To for submit@debbugs.gnu.org; Wed, 25 Oct 2017 21:03:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37208) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7Wa3-0005Je-QY for submit@debbugs.gnu.org; Wed, 25 Oct 2017 21:03:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7Wa2-0007SE-BC for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2017 21:03:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7WZz-0005Ff-3h for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2017 21:03:30 -0400 Received: from gateway36.websitewelcome.com ([192.185.192.36]:20915) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7WZy-00059g-QB for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2017 21:03:27 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway36.websitewelcome.com (Postfix) with ESMTP id E24D5400F7EA7 for ; Wed, 25 Oct 2017 20:03:10 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 7WZhe5yeftuxm7WZheV8JP; Wed, 25 Oct 2017 20:03:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc: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=4wPeo4dQNJtvAaE+DuSZcM4RkG7myJ8wP6ZIW56sYjo=; b=gs5v/T5kXwMyuvjq5y6f0PspWK KT0SJRPQy+GAwYac/1zTE38jpKa56BkfQDKBgU1P0Crj/RfPqmN1OXDCyNoF14+SqjfVw/qCY6/QJ POirCoyIn2SIVv8i7DRr7pmQihk459auWEUaGPU6f3eYKNAfgr79wYWuYQeEMMuNwTMEJIpZHGshE ej6umZQsOOtL4wOaYr+Ipn+j1OVDTNIKSqnJcytkm4setOxognlDQatSkuKuzhdfyM/nVnSHNelA8 MtUVJ8zewFIEY+rWnrP/XVO/4yn8sNPMt0J7yPTxHFqW3fcrZEencFmnOEGk60qHzhEEqPgcyA+uV WgsAi/OA==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51747 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e7WZg-000cEj-Op for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2017 20:03:08 -0500 Date: Wed, 25 Oct 2017 18:03:07 -0700 Message-ID: From: Keith David Bershatsky To: Emacs Bug Reports Subject: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 - 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-Exim-ID: 1e7WZg-000cEj-Op 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]:51747 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) I am working on developing crosshairs (#17684) and multiple fake cursors (#22873). As part of that work, I need the correct it.first_visible_x in the example recipe listed below. I have tried to workaround the bug by using w->hscroll * FRAME_COLUMN_WIDTH (f); however, I have not been able to come up with a programmatic test to identify the bug in order to implement the workaround. Implementing a workaround is complicated because I visit each visible screen line with IT, and hscl is true in this situation: bool hscl = (!w->suspend_auto_hscroll && EQ (Fbuffer_local_value (Qauto_hscroll_mode, w->contents), Qcurrent_line) && w->hscroll > 0); Here is the recipe: STEP #1: Build a new Emacs master branch incorporating the function `bug-hscroll` at an appropriate location inside xdisp.c. DEFUN ("bug-hscroll", Fbug_hscroll, Sbug_hscroll, 0, 0, 0, doc: /* Demonstrate the Emacs hscroll bug. */) (void) { struct window *w = decode_live_window (selected_window); struct it it; void *itdata = bidi_shelve_cache (); struct text_pos start_text_position; int first_x; SET_TEXT_POS_FROM_MARKER (start_text_position, w->start); start_display (&it, w, start_text_position); first_x = it.first_visible_x; bidi_unshelve_cache (itdata, false); Lisp_Object my_object_one = make_number (first_x); AUTO_STRING (my_string_one, "This is the value of it.first_visible_x: %s"); CALLN (Fmessage, my_string_one, my_object_one); return make_number (first_x); } void syms_of_xdisp (void) { defsubr (&Sbug_hscroll); DEFSYM (Qbug_hscroll, "bug-hscroll"); *** } STEP #2: Open the newly built Emacs; open a scratch buffer; and evaluate the following elisp code. (define-key global-map (kbd "") (lambda () (interactive) (scroll-right 1))) (define-key global-map [f5] (lambda () (interactive) (bug-hscroll))) (setq-local auto-hscroll-mode 'current-line) (setq display-line-numbers t) (setq truncate-lines t) STEP #3: Paste some miscellaneous long lines into the scratch buffer, e.g.,: Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis tempor. Curabitur lacinia pulvinar nibh. Nam a sapien. Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio. Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna. Curabitur vulputate vestibulum lorem. Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Sed id ligula quis est convallis tempor. Curabitur lacinia pulvinar nibh. Nam a sapien. STEP #4: Place the cursor at the END of one of the newly pasted long lines of miscellaneous text. STEP #5: Scroll right using the horizontal mouse wheel (if you have one, or some equivalent thereof if you don't). STEP #6: Press the F5 key. See that it.first_visible_x is GREATER than 0. STEP #7: Move the arrow key one character to the left. We remain horizontally scrolled to the right; i.e., pressing the left arrow-key does not cancel the horizontal scrolling. STEP #8: Press the F5 key. See that it.first_visible_x is erroneously 0. EXPECTATION: it.first_visible_x should be equal to w->hscroll * FRAME_COLUMN_WIDTH (f). And, keep in mind that the current-line can also horizontally scroll ... Thanks, Keith From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 25 23:46:02 2017 Received: (at 29002) by debbugs.gnu.org; 26 Oct 2017 03:46:02 +0000 Received: from localhost ([127.0.0.1]:33802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7Z7K-00084o-HK for submit@debbugs.gnu.org; Wed, 25 Oct 2017 23:46:02 -0400 Received: from gateway20.websitewelcome.com ([192.185.44.20]:47046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7Z7J-00084N-DD for 29002@debbugs.gnu.org; Wed, 25 Oct 2017 23:46:01 -0400 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 49211400C5B87 for <29002@debbugs.gnu.org>; Wed, 25 Oct 2017 22:45:59 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 7Z7GePzTdDL8r7Z7HeGdBu; Wed, 25 Oct 2017 22:45:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc: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=8cKq7ocKyJGwAzANmAEL4j3Ba7azCOymLjhU4+f78aI=; b=mEGGQvpxy6MBm7rOUwM01z02ty pHuyPYHVM6jVq3c2lBZOllF2ymRvQIYiXoJw82LefGz0yaHqJnllTSYiK09Z1Kbaw68hnZtF+JJBi 7cqwOz/pxopFFEkqzrLIx0WRl1LZnQ8UQC/SI2vGPSHi5kgcwMWjLXReXG05Hf9rk5uTMFJzVNvVb qhwtG6iOF7AS1hRKEhDRK+bjay8RRv5+IPCA1No+PiAOdrfwYd5vKEMaSkUYyzLa3i3QyQr0GsJQ7 5DVlN/QmWUoi9wYt7UyeBme68ONIe41WJjfBK+dk0uL5+QNptx0ZsbaCX47BbHXVf8Xo3j7D5iVka 8PtCn0Dw==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:52871 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e7Z7G-002m2K-Iw for 29002@debbugs.gnu.org; Wed, 25 Oct 2017 22:45:58 -0500 Date: Wed, 25 Oct 2017 20:45:57 -0700 Message-ID: From: Keith David Bershatsky To: 29002@debbugs.gnu.org Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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-Exim-ID: 1e7Z7G-002m2K-Iw 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]:52871 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Here is a link to a screen-shot depicting #29002: https://www.lawlist.com/images/bug_hscl.png From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 26 00:52:15 2017 Received: (at submit) by debbugs.gnu.org; 26 Oct 2017 04:52:15 +0000 Received: from localhost ([127.0.0.1]:33837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7a9P-0001Cx-63 for submit@debbugs.gnu.org; Thu, 26 Oct 2017 00:52:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7a9N-0001Cj-MX for submit@debbugs.gnu.org; Thu, 26 Oct 2017 00:52:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7a9H-0003mH-M7 for submit@debbugs.gnu.org; Thu, 26 Oct 2017 00:52:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7a9H-0003m2-JL for submit@debbugs.gnu.org; Thu, 26 Oct 2017 00:52:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7a9G-0007Mw-Hz for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 00:52:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7a9D-0003i1-HL for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 00:52:06 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7a9D-0003hk-BL; Thu, 26 Oct 2017 00:52:03 -0400 Received: from [176.13.20.13] (port=62099 helo=[10.131.107.128]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e7a9C-0007Tn-Cl; Thu, 26 Oct 2017 00:52:03 -0400 Date: Thu, 26 Oct 2017 07:51:55 +0300 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. To: bug-gnu-emacs@gnu.org, Keith David Bershatsky , 29002@debbugs.gnu.org From: Eli Zaretskii Message-ID: <6B22B365-3C27-4B26-93E0-F1027FA6CF50@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) On October 26, 2017 6:45:57 AM GMT+03:00, Keith David Bershatsky wrote: > Here is a link to a screen-shot depicting #29002: >=20 > https://www=2Elawlist=2Ecom/images/bug_hscl=2Epng This is not a bug; your expectations are incorrect=2E To see why, modify = your recipe to omit the "scroll right" part (step 5)=2E You will see that bug-= hscroll reports zero=2E When hscrolling only the current line, first_visible_x is set to zero, to reflect the situation for the non-current lines, which are normally not hscrolled=2E However, if you invoke scroll-right, the non-current lines become hscrolled, so you see a non-zero value of first_visible_x=2E In addition, the manual hscroll temporarily disables auto-hscrolling, and moving cursor re-enables it, which is why gou see the value reset to zero=2E Yes, it's complicated=2E=2E=2E I'm not sure why you expected non-zero values in this case, but if you want to identify this situation, use the function hscrolling_current_line_p=2E Or just calculate the value yourself using w->hscroll=2E From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 26 02:20:14 2017 Received: (at 29002) by debbugs.gnu.org; 26 Oct 2017 06:20:14 +0000 Received: from localhost ([127.0.0.1]:33901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7bWX-0003Xi-W4 for submit@debbugs.gnu.org; Thu, 26 Oct 2017 02:20:14 -0400 Received: from gateway33.websitewelcome.com ([192.185.146.80]:39630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7bWV-0003Xa-UK for 29002@debbugs.gnu.org; Thu, 26 Oct 2017 02:20:12 -0400 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 53782C6FE0 for <29002@debbugs.gnu.org>; Thu, 26 Oct 2017 01:20:11 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 7bWUeuc9HRtUX7bWVe7reJ; Thu, 26 Oct 2017 01:20:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Cc :To:From:Message-ID:Date:Sender:Reply-To: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=j+WD584HYy1i2kCVoImaidMCV+ytjbAsvkxTnZIhClU=; b=c+q1OItu5MIXtqO/Pd/WeeUJ8z nK6iLr5SrAt7iP1ZoEcq0CTcNKfWMHiNvZGqk0t1q+7KWINWF5hBHFHl+2Ebuv5Ot+MtJKzPSzCpJ LByKsaKxx7gAJtfe7PdKa1QDHp4EjdFRJtmWOxwiJ3kR45R+T/hsmmq9miNXeNrJwzArSA7ZH2i72 TGjGeTKmmtYMIIUhZYU3fot0dEbhDVdL3LgNLX80VA/IhLcLuWtEt+GHdHDA9mREmsnOg9LV9K411 JBe8UT5LW2Dd+2BMv8ZWgrUjkIWFmpy3kUCf3m0CFGA0UtDrPl7aGC1fJBvy9IQF4B1XyOihAgkHs MGRg/bsQ==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:54294 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e7bWU-000X7z-K3; Thu, 26 Oct 2017 01:20:10 -0500 Date: Wed, 25 Oct 2017 23:20:09 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Exim-ID: 1e7bWU-000X7z-K3 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]:54294 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Thank you, Eli, for looking at #29002. In the screen-shot, line 4 is the current-line and it is hscrolled. • hscrolling_current_line_p is true. • w->suspend_auto_hscroll is false. • w->hscroll > 0. • All non-current lines are also hscrolled. • it.first_visible_x == 0. What would be a good method to programmatically test to see whether all other lines are hscrolled given the above? As I visit each screen line from top to bottom of the window, I will need to determine whether the line is hscrolled and then try make my way over to a screen relative X coordinate. move_it_in_display_line_to will need an absolute X. For example, let's say we are on line 6 in the screen-shot. How do we know that it is hscrolled? If we know for sure it is hscrolled, then we can tell move_it_in_display_line_to try and reach (w->hscroll * FRAME_COLUMN_WIDTH (f)) + my_arbitrary_screen_relative_x. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-25-2017 21:51:55] <26 Oct 2017 07:51:55 +0300> FROM: Eli Zaretskii > > * * * > > I'm not sure why you expected non-zero values in this case, but if you > want to identify this situation, use the function > hscrolling_current_line_p. Or just calculate the value yourself > using w->hscroll. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 26 11:56:43 2017 Received: (at 29002) by debbugs.gnu.org; 26 Oct 2017 15:56:43 +0000 Received: from localhost ([127.0.0.1]:35264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kWR-0004Ry-8r for submit@debbugs.gnu.org; Thu, 26 Oct 2017 11:56:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kWP-0004Rk-VG for 29002@debbugs.gnu.org; Thu, 26 Oct 2017 11:56:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7kWG-0003Xv-VN for 29002@debbugs.gnu.org; Thu, 26 Oct 2017 11:56:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kWG-0003Xo-RC; Thu, 26 Oct 2017 11:56:32 -0400 Received: from [176.228.60.248] (port=2116 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e7kWG-0001s1-8u; Thu, 26 Oct 2017 11:56:32 -0400 Date: Thu, 26 Oct 2017 18:56:23 +0300 Message-Id: <837evh9a3c.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Wed, 25 Oct 2017 23:20:09 -0700) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Wed, 25 Oct 2017 23:20:09 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > • hscrolling_current_line_p is true. > • w->suspend_auto_hscroll is false. > • w->hscroll > 0. > • All non-current lines are also hscrolled. > • it.first_visible_x == 0. > > What would be a good method to programmatically test to see whether all other lines are hscrolled given the above? The above means that auto-hscroll is set to 'current-line'. In this case, the line that shows point is hscrolled by w->hscroll, and all the other lines are hscrolled by w->min_hscroll (in units of the frame's canonical character width). From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 26 14:56:17 2017 Received: (at 29002) by debbugs.gnu.org; 26 Oct 2017 18:56:17 +0000 Received: from localhost ([127.0.0.1]:35470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7nKC-0004K8-Q9 for submit@debbugs.gnu.org; Thu, 26 Oct 2017 14:56:17 -0400 Received: from gateway33.websitewelcome.com ([192.185.145.4]:37886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7nK6-0004Jr-O2 for 29002@debbugs.gnu.org; Thu, 26 Oct 2017 14:56:13 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway33.websitewelcome.com (Postfix) with ESMTP id DA36A6AB93B for <29002@debbugs.gnu.org>; Thu, 26 Oct 2017 13:56:09 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 7nK5ePzcwtuxm7nK5ep17U; Thu, 26 Oct 2017 13:56:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Cc :To:From:Message-ID:Date:Sender:Reply-To: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=YFIhVLR92u9HZW719PyN30Tjel11UQOeunffjYJ56uw=; b=bgHtVuXjLpJyh623q18w4eVHOC KzzspcvYrqhYtLUYOmTM/5umIa/rTUaLbTEgPIXICHd++VV90jUEcorEtcrLwCjIsjho75ow/g/P1 B3EMWXOO3C8lk1WWBNegrqnD2uoFF89g3FEQCyNiNp3Pl7LeKo5Xj2IxaD5AlM9kvNUFDpQGJWXgX DmBCyTXeTqmXFyNnuq1uz9noPfDWyZwoea5+rGlu2MTtsMYtQQ4Vd7FTx/2oef9biXAruwumyv5Au oID5o+XX8Ja2/wzPPIZG4HF6SU/GAwv5lUMcrW0Jw22h62ZGJXUuTzQ2UGzX5bgi1WWD7b+p0wJVD 1uDw6MsA==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50626 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e7nK5-003H4D-2a; Thu, 26 Oct 2017 13:56:09 -0500 Date: Thu, 26 Oct 2017 11:56:08 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 1e7nK5-003H4D-2a 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]:50626 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Thank you for the suggestion about using w->min_hscroll. Unfortunately, w->min_hscroll returns a value of 0 in this example. Here is a link to a new screen-shot based upon the revised bug-hscroll test incorporating w->min_hscroll: https://www.lawlist.com/images/bug_hscroll_02.png And, here is the revised test used as a basis to create the new screen-shot: DEFUN ("bug-hscroll", Fbug_hscroll, Sbug_hscroll, 0, 0, 0, doc: /* Demonstrate the Emacs hscroll bug. */) (void) { struct window *w = decode_live_window (selected_window); struct it it; void *itdata = bidi_shelve_cache (); struct text_pos start_text_position; int first_x, min_hscroll; SET_TEXT_POS_FROM_MARKER (start_text_position, w->start); start_display (&it, w, start_text_position); first_x = it.first_visible_x; min_hscroll = w->min_hscroll; bidi_unshelve_cache (itdata, false); Lisp_Object my_object_one = make_number (first_x); Lisp_Object my_object_two = make_number (min_hscroll); AUTO_STRING (my_string_one, "it.first_visible_x: %s | w->min_hscroll: %d"); CALLN (Fmessage, my_string_one, my_object_one, my_object_two); return make_number (first_x); } ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-26-2017 08:56:23] <26 Oct 2017 18:56:23 +0300> FROM: Eli Zaretskii > > * * * > > > > • hscrolling_current_line_p is true. > > • w->suspend_auto_hscroll is false. > > • w->hscroll > 0. > > • All non-current lines are also hscrolled. > > • it.first_visible_x == 0. > > > > What would be a good method to programmatically test to see whether all other lines are hscrolled given the above? > > The above means that auto-hscroll is set to 'current-line'. In this > case, the line that shows point is hscrolled by w->hscroll, and all > the other lines are hscrolled by w->min_hscroll (in units of the > frame's canonical character width). From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 07:23:20 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 11:23:20 +0000 Received: from localhost ([127.0.0.1]:39814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8lgW-0005m9-IM for submit@debbugs.gnu.org; Sun, 29 Oct 2017 07:23:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8lgV-0005lu-62 for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 07:23:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8lgL-0006Of-Dz for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 07:23:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8lgL-0006OY-BS; Sun, 29 Oct 2017 07:23:09 -0400 Received: from [176.228.60.248] (port=1987 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8lgK-00066Y-Pe; Sun, 29 Oct 2017 07:23:09 -0400 Date: Sun, 29 Oct 2017 13:23:07 +0200 Message-Id: <838tfuurj8.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Thu, 26 Oct 2017 11:56:08 -0700) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Thu, 26 Oct 2017 11:56:08 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > Unfortunately, w->min_hscroll returns a value of 0 in this example. For the lines other than the current one, you should use it.first_visible_x, it is simpler. For the current line, use w->hscroll. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 13:29:35 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 17:29:35 +0000 Received: from localhost ([127.0.0.1]:40820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rOx-0001SK-FT for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:29:35 -0400 Received: from gateway20.websitewelcome.com ([192.185.45.27]:38778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rOw-0001SD-62 for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 13:29:34 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway20.websitewelcome.com (Postfix) with ESMTP id BE2F5400C50DB for <29002@debbugs.gnu.org>; Sun, 29 Oct 2017 12:29:31 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 8rOseeiwPpOTv8rOteROID; Sun, 29 Oct 2017 12:29:31 -0500 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=Wkg7LRYE0k7VcTe1KujxdinjWxKctQ2MkSphndSGMug=; b=LXXbYC0oTPue5K6sNMDVdpHVi2 felmmqz3GIMk6ir0xbm+6tHGIF7ozw7kn7Xs2d4Shxffw6vrknKiQD8nXZEXs/WqfXO9BsLuUd8QX OfBJHIa2e9pF49Mu897uRBfBPtcqDKVz/3wq8x2QOFvXDn4ee6pXDWtRpocGrCigA+cxvvU5LJFnn VCiJX/YV2ErKAodZtnjBsmLL4iUPK73wc/ugQGSkZ9gaYIgCLFknhNaDCWE+9BfQGeZdMm7UnIH6m SvCuV8PLqEFZluRH5Ly1yKe+XDWsnVeJdequhJ+GFaPc/wjzwgd7c3aEbSiVR3j6o30bwvoxxp1pg beHWxAdw==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49788 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e8rOs-004JJs-FD; Sun, 29 Oct 2017 12:29:30 -0500 Date: Sun, 29 Oct 2017 10:29:29 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1e8rOs-004JJs-FD 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]:49788 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Here is a link to screen-shot #3: https://www.lawlist.com/images/bug_hscl_03.png In that screen-shot, we make the following observations: * A total of 5 screen lines. * Line 1 is the current line. * All 5 lines visually appear to be horizontally scrolled. * Using the revised function bug-hscroll (below), we iterate over each screen line and generate the values for it.first_visible_x and it.vpos. * it.first_visible_x returns as being 0 for each of the 5 screen lines. It is as though Emacs is unaware that the non-current lines still visually appear to be hscrolled, because Emacs "thinks" they are not. DEFUN ("bug-hscroll", Fbug_hscroll, Sbug_hscroll, 0, 0, 0, doc: /* Demonstrate the Emacs hscroll bug. */) (void) { struct window *w = decode_live_window (selected_window); struct it it; void *itdata = bidi_shelve_cache (); struct text_pos start_text_position; Lisp_Object temp = Qnil; Lisp_Object result = Qnil; Vmax_mini_window_height = make_number (1); SET_TEXT_POS_FROM_MARKER (start_text_position, w->start); start_display (&it, w, start_text_position); while (true) { temp = listn (CONSTYPE_HEAP, 3, make_number (it.vpos), build_string (" | "), make_number (it.first_visible_x)); result = Fcons (temp, result); if (IT_CHARPOS (it) == ZV) break; move_it_by_lines (&it, 1); if (it.current_y >= it.last_visible_y) break; } bidi_unshelve_cache (itdata, false); result = Fnreverse (result); AUTO_STRING (my_string_one, "%s"); CALLN (Fmessage, my_string_one, result); return result; } ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-29-2017 04:23:07] <29 Oct 2017 13:23:07 +0200> FROM: Eli Zaretskii > > > Date: Thu, 26 Oct 2017 11:56:08 -0700 > > From: Keith David Bershatsky > > Cc: 29002@debbugs.gnu.org > > > > Unfortunately, w->min_hscroll returns a value of 0 in this example. > > For the lines other than the current one, you should use > it.first_visible_x, it is simpler. For the current line, use > w->hscroll. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 14:29:31 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 18:29:31 +0000 Received: from localhost ([127.0.0.1]:40865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8sKx-0002v4-KR for submit@debbugs.gnu.org; Sun, 29 Oct 2017 14:29:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8sKw-0002uq-6G for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 14:29:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8sKm-0005Dv-2K for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 14:29:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8sKl-0005DU-On; Sun, 29 Oct 2017 14:29:19 -0400 Received: from [176.228.60.248] (port=2499 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8sKk-0001s8-UE; Sun, 29 Oct 2017 14:29:19 -0400 Date: Sun, 29 Oct 2017 20:29:16 +0200 Message-Id: <833761vmdf.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Sun, 29 Oct 2017 10:29:29 -0700) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 29 Oct 2017 10:29:29 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > Here is a link to screen-shot #3: > > https://www.lawlist.com/images/bug_hscl_03.png > > In that screen-shot, we make the following observations: > > * A total of 5 screen lines. > > * Line 1 is the current line. > > * All 5 lines visually appear to be horizontally scrolled. > > * Using the revised function bug-hscroll (below), we iterate over each screen line and generate the values for it.first_visible_x and it.vpos. > > * it.first_visible_x returns as being 0 for each of the 5 screen lines. This cannot be true: if every line in the window is hscrolled, first_visible_x must be non-zero, right after the call to start_display. If first_visible_x is zero, only the current line can be hscrolled. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 14:56:18 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 18:56:18 +0000 Received: from localhost ([127.0.0.1]:40889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8sks-0003Yb-6k for submit@debbugs.gnu.org; Sun, 29 Oct 2017 14:56:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8skq-0003YN-P6 for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 14:56:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8skg-0002oQ-RP for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 14:56:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8skg-0002o9-Od; Sun, 29 Oct 2017 14:56:06 -0400 Received: from [176.228.60.248] (port=2707 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8skg-00078Z-9H; Sun, 29 Oct 2017 14:56:06 -0400 Date: Sun, 29 Oct 2017 20:56:05 +0200 Message-Id: <831sllvl4q.fsf@gnu.org> From: Eli Zaretskii To: esq@lawlist.com In-reply-to: <833761vmdf.fsf@gnu.org> (message from Eli Zaretskii on Sun, 29 Oct 2017 20:29:16 +0200) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: <833761vmdf.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 29 Oct 2017 20:29:16 +0200 > From: Eli Zaretskii > Cc: 29002@debbugs.gnu.org > > > * A total of 5 screen lines. > > > > * Line 1 is the current line. > > > > * All 5 lines visually appear to be horizontally scrolled. > > > > * Using the revised function bug-hscroll (below), we iterate over each screen line and generate the values for it.first_visible_x and it.vpos. > > > > * it.first_visible_x returns as being 0 for each of the 5 screen lines. > > This cannot be true: if every line in the window is hscrolled, > first_visible_x must be non-zero, right after the call to > start_display. Forgot to say: I cannot reproduce your results. In my case, first_visible_x is non-zero all the way through the loop, as expected. Are you sure this isn't a side effect of one of your other changes? From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 14:56:27 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 18:56:27 +0000 Received: from localhost ([127.0.0.1]:40893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8sl1-0003Yx-FB for submit@debbugs.gnu.org; Sun, 29 Oct 2017 14:56:27 -0400 Received: from gateway31.websitewelcome.com ([192.185.143.38]:35763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8skz-0003Yp-9Y for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 14:56:25 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 978F810887 for <29002@debbugs.gnu.org>; Sun, 29 Oct 2017 13:56:24 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 8skyexOmVrWst8skyehTp1; Sun, 29 Oct 2017 13:56:24 -0500 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=zuAGh7bqR0OylKaPmxdaDRNEpFkvAs9eur1rzO1j1CA=; b=li98e/I25BFTq4qETYJ/VR2M3T jZ2pHYlt327ZYn3yePaql8B4hEu4SA/EA8Fbux9WPJIiZA9qz6KAElc0ucUtwbRDhHLZKbds5kkLL 164hYsrTKjqW7QfgNdhR4Y9HopIvowidaugRXo2+WxS0UroSdx4QpGnYcr0n45biyqJLBJ+fVOp6N bgiybWCmZDzjrXWAaAMJMcorhjmyySs1MDKSm5ImvhOUOJP4vs9n+WvXOPj0sI6fvgbBBE/5ctzyV JSoNowyvkTEoiLv5XGHVyxI2+OYyL4NRFq4Orwe8qbNx4jDKx6OdwJJ5vFp2l/hD374gBjK9XwEfP sAUp45xA==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50439 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e8skx-001Eyv-Jc; Sun, 29 Oct 2017 13:56:23 -0500 Date: Sun, 29 Oct 2017 11:56:22 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1e8skx-001Eyv-Jc 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]:50439 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) I agree ... and that leads us to bug #29002. :) In the normal situation, the screen refreshes when the arrow key is used and non-current lines cease to be horizontally scrolled. In the current example, however, non-current lines remain horizontally scrolled and Emacs "thinks" that they are not. When I say that Emacs "thinks" they are not, I am referring to IT. There are few ways that I look at this unique situation: A. If the Emacs design is to permit non-current lines to remain horizontally scrolled in this unique situation, then we may need something like a new window pointer to store the value of the first-visible-x for those non-current lines. OR B. If the Emacs design is NOT to permit non-current lines to remain horizontally scrolled in this unique situation, then redisplay needs to refresh all non-current lines so that they snap back to a non-horizontal scroll state. OR C. IT is incorrect such that it.first_visible_x needs to be changed to reflect the proper value. [From an untrained eye, it looks like the value is the same as w->hscroll in this unique situation.] If this unique situation is "a feature", then we need a way to properly calculate the first-visible-x for non-current lines. If this is *not* a feature, then redisplay should refresh all non-current lines so that they are no longer horizontally scrolled. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-29-2017 11:29:16] <29 Oct 2017 20:29:16 +0200> FROM: Eli Zaretskii > > > Date: Sun, 29 Oct 2017 10:29:29 -0700 > > From: Keith David Bershatsky > > Cc: 29002@debbugs.gnu.org > > > > Here is a link to screen-shot #3: > > > > https://www.lawlist.com/images/bug_hscl_03.png > > > > In that screen-shot, we make the following observations: > > > > * A total of 5 screen lines. > > > > * Line 1 is the current line. > > > > * All 5 lines visually appear to be horizontally scrolled. > > > > * Using the revised function bug-hscroll (below), we iterate over each screen line and generate the values for it.first_visible_x and it.vpos. > > > > * it.first_visible_x returns as being 0 for each of the 5 screen lines. > > This cannot be true: if every line in the window is hscrolled, > first_visible_x must be non-zero, right after the call to > start_display. If first_visible_x is zero, only the current line can > be hscrolled. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 15:08:42 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 19:08:42 +0000 Received: from localhost ([127.0.0.1]:40901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8sws-0003qs-Kl for submit@debbugs.gnu.org; Sun, 29 Oct 2017 15:08:42 -0400 Received: from gateway22.websitewelcome.com ([192.185.47.109]:19201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8swq-0003qk-KF for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 15:08:41 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 241147421 for <29002@debbugs.gnu.org>; Sun, 29 Oct 2017 14:08:39 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 8swoexZldrWst8swoehehp; Sun, 29 Oct 2017 14:08:39 -0500 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=rLMQRQaQCTmodIJPKkQzWh9jC7OcWIg4GPZrGLfLTf0=; b=ksx9Ut3/b9dUy3Bx56EWoSXO3J SCixmQvj5P0vCiidzwDSNE4YBrdoeUvN05HD1JUtrFPrtDO7vItUAHx9203N+SfSb35L9EGf175Ru 1SU6QRJyNGh/1zIe21G1ZNUNMcDZZO+N3ymGtoaptV3K+cZqh1kjoKzRFQxpt1//3syuHi+GHanfz cOnJ4cq7lJr7QcJ6l6AvlzI0C4TzuDJJDxOQlapLSWf75RRorKuCTfTGoQo7iwIIUERgjiw3NNvMy jsv6lu/sv9gOHCwD+4GnZ4tnqaP6MtRgULsZphcjB8e5//oGDSPv/rCRiLYV7Nj2EbkgLSDL1xUmo v8eOg9nA==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50519 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e8swn-001PvR-L2; Sun, 29 Oct 2017 14:08:37 -0500 Date: Sun, 29 Oct 2017 12:08:37 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1e8swn-001PvR-L2 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]:50519 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) For all of the tests referred to in #29002, I have been using Emacs master branch from October 23, 2007. The _only_ modifications to the code base have been within xdisp.c by adding the function bug-hscroll and the defsubr / DEFSYM in syms_of_xdisp. No other changes exist. I am on OSX 10.6.8. I can build Emacs on Windows XP and see if the results are the same, but it will take about 30 to 45 minutes to download and build anew. I suspect that this unique situation is not "a feature" and the problem may lie within the need to refresh the screen for non-current lines, since IT "thinks" they are not horizontally scrolled. However, I thought to myself that this could be a cool feature that I have never seen except in this unique situation. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-29-2017 11:56:05] <29 Oct 2017 20:56:05 +0200> FROM: Eli Zaretskii > > scrolling. > > > Date: Sun, 29 Oct 2017 20:29:16 +0200 > > From: Eli Zaretskii > > Cc: 29002@debbugs.gnu.org > > > > > * A total of 5 screen lines. > > > > > > * Line 1 is the current line. > > > > > > * All 5 lines visually appear to be horizontally scrolled. > > > > > > * Using the revised function bug-hscroll (below), we iterate over each screen line and generate the values for it.first_visible_x and it.vpos. > > > > > > * it.first_visible_x returns as being 0 for each of the 5 screen lines. > > > > This cannot be true: if every line in the window is hscrolled, > > first_visible_x must be non-zero, right after the call to > > start_display. > > Forgot to say: I cannot reproduce your results. In my case, > first_visible_x is non-zero all the way through the loop, as expected. > > Are you sure this isn't a side effect of one of your other changes? From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 15:23:45 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 19:23:45 +0000 Received: from localhost ([127.0.0.1]:40914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8tBR-0004DK-BO for submit@debbugs.gnu.org; Sun, 29 Oct 2017 15:23:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8tBQ-0004D8-99 for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 15:23:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8tBI-00077M-07 for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 15:23:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8tBH-00077H-Ta; Sun, 29 Oct 2017 15:23:35 -0400 Received: from [176.228.60.248] (port=2718 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8tBH-00038g-9e; Sun, 29 Oct 2017 15:23:35 -0400 Date: Sun, 29 Oct 2017 21:23:33 +0200 Message-Id: <83zi89u5ai.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Sun, 29 Oct 2017 11:56:22 -0700) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 29 Oct 2017 11:56:22 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > I agree ... and that leads us to bug #29002. :) > > In the normal situation, the screen refreshes when the arrow key is used and non-current lines cease to be horizontally scrolled. In the current example, however, non-current lines remain horizontally scrolled and Emacs "thinks" that they are not. When I say that Emacs "thinks" they are not, I am referring to IT. What Emacs "thinks" is on display. And there we see hscrolled lines. So first_visible_x must be non-zero, and that is what I see. If first_visible_x were zero, you'd see the line's text starting with the first character of each line. I very much doubt that this is somehow Windows-specific, since xdisp.c is the platform-independent part of the display engine. Or maybe the horizontal scroll bar on macOS somehow causes this. What happens if you scroll-right with some key, like F8, and not with the mouse? (In any case, invoking scroll-right in this situation makes very little sense to me.) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 16:12:20 2017 Received: (at 29002) by debbugs.gnu.org; 29 Oct 2017 20:12:20 +0000 Received: from localhost ([127.0.0.1]:40943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8twS-0005MG-HB for submit@debbugs.gnu.org; Sun, 29 Oct 2017 16:12:20 -0400 Received: from gateway36.websitewelcome.com ([192.185.193.119]:38027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8twP-0005M6-C1 for 29002@debbugs.gnu.org; Sun, 29 Oct 2017 16:12:17 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway36.websitewelcome.com (Postfix) with ESMTP id C9CD3400E6362 for <29002@debbugs.gnu.org>; Sun, 29 Oct 2017 15:12:16 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 8twOe7Q8c5b6T8twOeN0Hu; Sun, 29 Oct 2017 15:12:16 -0500 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=hbcj15Y9AnCON2TGYOwDVbSKXtME34B5jYBKhQhraAU=; b=lHxrHdauX6WuHyTcFY3iZ9sDhJ LwStOf/OrDUXtYERmA7mhlOJCSNWRS2/yT45RWeiENAOjrKKCdTk34ND08QTmwt2Qjdv4Ojb71NDu anNtcudRz03Fs1nKipRUG8MGjUqib6Yru7Cb5PxNiNQW6tP122mEIAUcfikSmplkbBS2EhlU11R11 5+lAVtV4u3B1Xx2gwjTU5EAINEAYGY23Qyt9SeAVVp1U5OEyhIJ5GFPsDhJIgCVli3fBeHjbGNmyA ZZIs0tezb9lsCCbjy/xsCD7ie8hIinMqv/N1MDMbgQtH7L/ElqNlPU7jsh5J3FULOoqLDMxHLaLkO vbdSqVTw==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50940 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e8twO-002ISH-21; Sun, 29 Oct 2017 15:12:16 -0500 Date: Sun, 29 Oct 2017 13:12:15 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1e8twO-002ISH-21 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]:50940 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) Horizontal scroll bars are not visible in this example. I have been using the horizontal mouse-wheel. I can reproduce the issue by evaluating (scroll-right 1) in the minibuffer when at the end of a long-line, and then pressing the left arrow-key, and then calling F5 (bound to bug-hscroll). It appears to me that (scroll-right 1) is kind of a temporary form of horizontal scrolling, which automatically cancels as to non-current lines in a vareity of situations when keyboard input is received. Plain old scroll-right without the optional distance argument is semi-permanent, and non-current lines do not automatically return to a non-scrolled state. F8 is undefined on OSX, but I saw in a grep search that "C-x >" is bound to scroll-right. That behaves differently than (scroll-right 1) using the optional argument to control the distance. I also tried using "C-u 1 C-x >", but it behaves the same as "C-x >". The issue described in #29002 is not present when invoking "C-u 1 C-x >" or "C-x >" -- i.e., both of which appear to be semi-permanent forms of horizontal scrolling. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-29-2017 12:23:33] <29 Oct 2017 21:23:33 +0200> FROM: Eli Zaretskii > > > Date: Sun, 29 Oct 2017 11:56:22 -0700 > > From: Keith David Bershatsky > > Cc: 29002@debbugs.gnu.org > > > > I agree ... and that leads us to bug #29002. :) > > > > In the normal situation, the screen refreshes when the arrow key is used and non-current lines cease to be horizontally scrolled. In the current example, however, non-current lines remain horizontally scrolled and Emacs "thinks" that they are not. When I say that Emacs "thinks" they are not, I am referring to IT. > > What Emacs "thinks" is on display. And there we see hscrolled lines. > So first_visible_x must be non-zero, and that is what I see. If > first_visible_x were zero, you'd see the line's text starting with the > first character of each line. I very much doubt that this is somehow > Windows-specific, since xdisp.c is the platform-independent part of > the display engine. > > Or maybe the horizontal scroll bar on macOS somehow causes this. What > happens if you scroll-right with some key, like F8, and not with the > mouse? > > (In any case, invoking scroll-right in this situation makes very > little sense to me.) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 30 14:02:55 2017 Received: (at 29002) by debbugs.gnu.org; 30 Oct 2017 18:02:55 +0000 Received: from localhost ([127.0.0.1]:42540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9EOl-0001rE-CK for submit@debbugs.gnu.org; Mon, 30 Oct 2017 14:02:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9EOj-0001qy-QG for 29002@debbugs.gnu.org; Mon, 30 Oct 2017 14:02:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9EOa-0008IE-0c for 29002@debbugs.gnu.org; Mon, 30 Oct 2017 14:02:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9EOZ-0008I6-UJ; Mon, 30 Oct 2017 14:02:43 -0400 Received: from [176.228.60.248] (port=3822 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e9EOZ-0001AJ-Ak; Mon, 30 Oct 2017 14:02:43 -0400 Date: Mon, 30 Oct 2017 20:02:27 +0200 Message-Id: <83vaiwtsy4.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Sun, 29 Oct 2017 13:12:15 -0700) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 29 Oct 2017 13:12:15 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > It appears to me that (scroll-right 1) is kind of a temporary form of horizontal scrolling, which automatically cancels as to non-current lines in a vareity of situations when keyboard input is received. Plain old scroll-right without the optional distance argument is semi-permanent, and non-current lines do not automatically return to a non-scrolled state. Yes, it's temporary. For a permanent hscroll, you need to invoke scroll-left/right with its second argument non-nil (which happens automatically in interactive invocation). Does the hscroll get reset after moving cursor if you type "M-x"? From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 30 15:36:47 2017 Received: (at 29002) by debbugs.gnu.org; 30 Oct 2017 19:36:47 +0000 Received: from localhost ([127.0.0.1]:42684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9Fra-0004HN-V1 for submit@debbugs.gnu.org; Mon, 30 Oct 2017 15:36:47 -0400 Received: from gateway31.websitewelcome.com ([192.185.143.31]:43445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9FrY-0004HA-M9 for 29002@debbugs.gnu.org; Mon, 30 Oct 2017 15:36:45 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway31.websitewelcome.com (Postfix) with ESMTP id B8B333F8B5 for <29002@debbugs.gnu.org>; Mon, 30 Oct 2017 14:36:39 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id 9FrTeMx1JrWst9FrTe6qpv; Mon, 30 Oct 2017 14:36:39 -0500 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=M9OUNyOVnF6KKYDUs8Q3TKcdvXKj5YVs5TGkgewOJB0=; b=MWZoYDkiU6CO9+i+MY1IA3wPbs /KyKEQ69qM8owTjF7iNlOs01AXPKSfZTiBki3go5PX9a5z55s7xrDa+cVMh2kd8cZ3MHM2E6wLohJ tv1vT5fU6qIgJ9xeKdsm7RAuKPWC6fGMyCYQVcf56c+ptG3O2U8TRmuaiPhgW9ZJgUqSIJDXQKEp5 GEXub+3GpvwycBbmtvzeSMs2idKRwh09a3sk+kiGDs2vc1Qtn5C3+YreANv2Djr5D5AKUDNMvuLE8 DjsZpHfkh0dcnzee/QFmUySDu66G5aw7rlHZv5GEMAkti6VIYKLDRXAnca2Scb3FM2Hqj35lCzg29 yrm8fS7w==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49302 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1e9FrS-003uve-VO; Mon, 30 Oct 2017 14:36:39 -0500 Date: Mon, 30 Oct 2017 12:36:38 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1e9FrS-003uve-VO 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]:49302 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Yes, "M-x" immediately cancels the hscroll of non-current lines when called after moving the cursor. Thank you for explaining how the second optional argument in scroll-right/left can be used to obtain a permanent hscroll. :) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [10-30-2017 11:02:27] <30 Oct 2017 20:02:27 +0200> FROM: Eli Zaretskii > > > Date: Sun, 29 Oct 2017 13:12:15 -0700 > > From: Keith David Bershatsky > > Cc: 29002@debbugs.gnu.org > > > > It appears to me that (scroll-right 1) is kind of a temporary form of horizontal scrolling, which automatically cancels as to non-current lines in a vareity of situations when keyboard input is received. Plain old scroll-right without the optional distance argument is semi-permanent, and non-current lines do not automatically return to a non-scrolled state. > > Yes, it's temporary. For a permanent hscroll, you need to invoke > scroll-left/right with its second argument non-nil (which happens > automatically in interactive invocation). > > Does the hscroll get reset after moving cursor if you type "M-x"? From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 04 05:32:15 2017 Received: (at 29002-done) by debbugs.gnu.org; 4 Nov 2017 09:32:16 +0000 Received: from localhost ([127.0.0.1]:50166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAuoJ-0004rb-OE for submit@debbugs.gnu.org; Sat, 04 Nov 2017 05:32:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAuoI-0004rP-FJ for 29002-done@debbugs.gnu.org; Sat, 04 Nov 2017 05:32:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAuo8-0001is-Mg for 29002-done@debbugs.gnu.org; Sat, 04 Nov 2017 05:32:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAuo8-0001il-JS; Sat, 04 Nov 2017 05:32:04 -0400 Received: from [176.228.60.248] (port=3426 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eAuo7-0007rO-Rl; Sat, 04 Nov 2017 05:32:04 -0400 Date: Sat, 04 Nov 2017 11:32:04 +0200 Message-Id: <83wp36tmnf.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Mon, 30 Oct 2017 12:36:38 -0700) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002-done Cc: 29002-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 30 Oct 2017 12:36:38 -0700 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > Yes, "M-x" immediately cancels the hscroll of non-current lines when called after moving the cursor. OK, I installed a change which should fix the hscroll after cursor motion. With that, I'm marking this bug done. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 04 20:16:41 2017 Received: (at 29002) by debbugs.gnu.org; 5 Nov 2017 00:16:41 +0000 Received: from localhost ([127.0.0.1]:51072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB8cD-0005ax-Gw for submit@debbugs.gnu.org; Sat, 04 Nov 2017 20:16:41 -0400 Received: from gateway33.websitewelcome.com ([192.185.146.97]:41663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB8cC-0005ap-39 for 29002@debbugs.gnu.org; Sat, 04 Nov 2017 20:16:40 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway33.websitewelcome.com (Postfix) with ESMTP id BD1341E712B for <29002@debbugs.gnu.org>; Sat, 4 Nov 2017 19:16:38 -0500 (CDT) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id B8c9eJ5u45b6TB8cAeXb5D; Sat, 04 Nov 2017 19:16:38 -0500 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=pSSs93AylZeW1/xB2/WHAq9bTfQ2vMYid3dJXpagAqI=; b=YginQHcb14CkDcqpoEyrc3twm+ UMsy7fUrENwSKECdIJGXtQ0K/QSDl0I09BHRSlXv6SoWxHCGMx8fJdGzMmhdia5+u0/NQCinIiNvT GDY+IMTWy5GebEiykduYzQ0MdM0HHzpgu39SRnICafmIuH03Qw+EtmeRopsUC6KB5j8RwlbpCOY3u kXE5ib2sberW6mnICLzyg0W/apHG14psKgqOdu981ihk9Ge5dPrmMFlEXbNn01UioG+akOnRR90hD G0+FXCNS/K1RVhEEOylMZSkS8ZAshZJmLcqnlv5VLTmf/OdgELgDZ+JHAj02+yboh5vJXGR/6AA0m 2CDGfVLg==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49618 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eB8c9-003W7f-F7; Sat, 04 Nov 2017 19:16:37 -0500 Date: Sat, 04 Nov 2017 17:16:36 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1eB8c9-003W7f-F7 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]:49618 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Yes, your patch does indeed fix the issue. Greatly appreciated, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [11-04-2017 02:32:04] <04 Nov 2017 11:32:04 +0200> FROM: Eli Zaretskii > > > Date: Mon, 30 Oct 2017 12:36:38 -0700 > > From: Keith David Bershatsky > > Cc: 29002@debbugs.gnu.org > > > > Yes, "M-x" immediately cancels the hscroll of non-current lines when called after moving the cursor. > > OK, I installed a change which should fix the hscroll after cursor > motion. > > With that, I'm marking this bug done. > > Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 04:15:47 2017 Received: (at 29002) by debbugs.gnu.org; 5 Nov 2017 09:15:47 +0000 Received: from localhost ([127.0.0.1]:51179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBH1v-0001Fb-0u for submit@debbugs.gnu.org; Sun, 05 Nov 2017 04:15:47 -0500 Received: from gateway33.websitewelcome.com ([192.185.147.108]:29471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBH1t-0001FU-Kv for 29002@debbugs.gnu.org; Sun, 05 Nov 2017 04:15:46 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 6ECB0E10D8F for <29002@debbugs.gnu.org>; Sun, 5 Nov 2017 03:15:43 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id BH1qeGi1zrWstBH1rezdEM; Sun, 05 Nov 2017 03:15:43 -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=44mrw+ppDC+AvSLxf6QesbKQ1jJQ9BvMjsXDXZsD9t4=; b=TgyAfByiet+A17q3qtU0s/NUZu /OqSeH85SL13iwv0FYNKLfIXfdh/3iy9IHgka7Hy9UjOqpVJ9bt/rwWBuoftyPhSYQMmZ+sfu1RWf SQxX8d3UzqnL0x9WQqlpSmz7gLtiWlirD1a2G9zP3riPlw4UK9DndW1D9I/SnSLaZ4yWEaWd4/qa/ IjKiAgh3U1TIY+JEvsE7+SqLU1jQxmCrktWI4TwuJJ6bdibG3svsQj7rQ/FqNSThdbP8lcw4bGThU FjoUakh/MTMIG1F1NlMlZkGGnbgcQL6Ar55anKWEB7VNYLwTX2/IS9R5600RWiERjAyW6K14wi4Gk M3QAfUHQ==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:55510 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eBH1q-002Alt-K3; Sun, 05 Nov 2017 03:15:42 -0600 Date: Sun, 05 Nov 2017 01:15:41 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1eBH1q-002Alt-K3 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]:55510 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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. /* If the position of this window's point has explicitly changed, no more suspend auto hscrolling. */ if (w->suspend_auto_hscroll && NILP (Fequal (Fwindow_point (window), Fwindow_old_point (window)))) { AUTO_STRING (my_string_one, "Hello world!"); CALLN (Fmessage, my_string_one); w->suspend_auto_hscroll = false; /* Force thorough redisplay of this window, to show the effect of disabling hscroll suspension immediately. */ SET_FRAME_GARBAGED (XFRAME (w->frame)); } From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 05:45:17 2017 Received: (at 29002) by debbugs.gnu.org; 5 Nov 2017 10:45:17 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Sun, 05 Nov 2017 12:44:39 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. To: Keith David Bershatsky From: Eli Zaretskii Message-ID: <48B1E249-3645-44E1-B9AC-69415AB749A1@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 11:59:52 2017 Received: (at 29002) by debbugs.gnu.org; 5 Nov 2017 16:59:52 +0000 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 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 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) 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==; 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 Date: Sun, 05 Nov 2017 08:59:47 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 13:12:36 2017 Received: (at 29002) by debbugs.gnu.org; 5 Nov 2017 18:12:36 +0000 Received: from localhost ([127.0.0.1]:52580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBPPQ-00013H-Eu for submit@debbugs.gnu.org; Sun, 05 Nov 2017 13:12:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBPPO-000134-IQ for 29002@debbugs.gnu.org; Sun, 05 Nov 2017 13:12:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBPPG-0006qb-5p for 29002@debbugs.gnu.org; Sun, 05 Nov 2017 13:12:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBPPG-0006qX-2I; Sun, 05 Nov 2017 13:12:26 -0500 Received: from [176.228.60.248] (port=1859 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eBPPF-0007l0-1n; Sun, 05 Nov 2017 13:12:25 -0500 Date: Sun, 05 Nov 2017 20:12:26 +0200 Message-Id: <83375stx11.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Sun, 05 Nov 2017 08:59:47 -0800) Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 05 Nov 2017 08:59:47 -0800 > From: Keith David Bershatsky > Cc: 29002@debbugs.gnu.org > > 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. OK, I made thorough redisplay happen in fewer situations. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 20:05:22 2017 Received: (at 29002) by debbugs.gnu.org; 6 Nov 2017 01:05:22 +0000 Received: from localhost ([127.0.0.1]:52815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBVqs-0001Sa-AD for submit@debbugs.gnu.org; Sun, 05 Nov 2017 20:05:22 -0500 Received: from gateway30.websitewelcome.com ([192.185.168.15]:14411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBVqq-0001SS-Ed for 29002@debbugs.gnu.org; Sun, 05 Nov 2017 20:05:20 -0500 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway30.websitewelcome.com (Postfix) with ESMTP id D117C1338 for <29002@debbugs.gnu.org>; Sun, 5 Nov 2017 19:05:16 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id BVqme9M4IpOTvBVqmeu8cl; Sun, 05 Nov 2017 19:05:16 -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=XMX2FK3zRVuZl/sSe9ALwuSKqAcPGQ6rTTujypk3ts4=; b=YZLM6rmwzbvb0P5d42P3JGhXEX IpZlapP2kFo7yoE15k6qtxwJz7cf67ZSDRWJQJ2mWmbpY02KHg0GIYrpADZufbOZ/wN2f5MkhiFsw Wy+bnJimU/RS2zmYKu2PRPXPa5xRV062+VQ+novwEiUGmDZJNDZiHTdHDXmJkxyHREys0QoG2UtnF JHBWUM5nSlOoSyOeeAvpqj+zghv82dEcLRIfMTZNgJKhi22nijhIBo/JfwC3Ais7MGK37inFzWgvy xnx98vSgbWdMVOZoAwHS/3IwW9ms0wRuYhVcfg66WNaRiPtrodcPut/SadNSTjYhZ9J1dElKy8Vej 3MzacVBQ==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:54328 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eBVql-002vfh-SJ; Sun, 05 Nov 2017 19:05:15 -0600 Date: Sun, 05 Nov 2017 17:05:15 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: 1eBVql-002vfh-SJ 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]:54328 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29002 Cc: 29002@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Thank you for the revision. I have tested the latest patch and everything is working well. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [11-05-2017 10:12:26] <05 Nov 2017 20:12:26 +0200> FROM: Eli Zaretskii > > * * * > > OK, I made thorough redisplay happen in fewer situations. From unknown Sat Sep 20 02:10:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 04 Dec 2017 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator