From unknown Sat Aug 16 16:08:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11857: large hscroll values mess up the display Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Jul 2012 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11857@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13414260509300 (code B ref -1); Wed, 04 Jul 2012 18:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2012 18:20:50 +0000 Received: from localhost ([127.0.0.1]:48338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmUC1-0002Pu-Nb for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:20:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58827) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmUBz-0002Pn-BB for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:20:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmU7J-0002Ag-Kv for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:15:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmU7J-0002Aa-Hb for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:15:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmU7H-00068a-Uy for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 14:15:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmU7G-00029d-0T for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 14:15:55 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:52118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmU7F-000294-R1 for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 14:15:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id B85C039E8100 for ; Wed, 4 Jul 2012 11:15:50 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wHUx8-PAjAE1 for ; Wed, 4 Jul 2012 11:15:50 -0700 (PDT) Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 42E6A39E80E1 for ; Wed, 4 Jul 2012 11:15:50 -0700 (PDT) Message-ID: <4FF48856.1020503@cs.ucla.edu> Date: Wed, 04 Jul 2012 11:15:50 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) I tried out large hscroll values and got messed up displays. The exact details vary, depending on display and other parameters I don't understand. In some cases, even hscroll values well under INT_MAX caused problems, but these are harder to reproduce. One way to easily reproduce the problem on Fedora 15 x86-64 with Emacs trunk bzr 108872 is to run emacs -Q on an X display and type this: C-u 1 0 0 0 0 0 0 0 0 0 0 C-x < SPC That is, scroll by 10**10. This results in a display with <- in front of the first four lines, -> after the first three lines, and semicolons in the start of the first three lines. It looks like this: <-; -> <-; -> <-; -> <- Where "<-" and "->" denote the margin arrows. This is incorrect, as the display should look like it does when scrolling by 100, namely, like this: <- <- <- <- I also reproduced the problem with Emacs 23.3.1 (stock Ubuntu 12.04 x86) so this is not a new bug nor is it restricted to 64-bit hosts. From unknown Sat Aug 16 16:08:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Eggert Subject: bug#11857: closed (Re: bug#11857: large hscroll values mess up the display) Message-ID: References: <83wr2i2mti.fsf@gnu.org> <4FF48856.1020503@cs.ucla.edu> X-Gnu-PR-Message: they-closed 11857 X-Gnu-PR-Package: emacs Reply-To: 11857@debbugs.gnu.org Date: Thu, 05 Jul 2012 16:35:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1341506101-12418-1" This is a multi-part message in MIME format... ------------=_1341506101-12418-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11857: large hscroll values mess up the display which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11857@debbugs.gnu.org. --=20 11857: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11857 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1341506101-12418-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11857-done) by debbugs.gnu.org; 5 Jul 2012 16:34:41 +0000 Received: from localhost ([127.0.0.1]:50788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Smp0q-0003Di-9D for submit@debbugs.gnu.org; Thu, 05 Jul 2012 12:34:40 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:35118) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Smp0n-0003DZ-NG for 11857-done@debbugs.gnu.org; Thu, 05 Jul 2012 12:34:38 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M6P008004FFKZ00@a-mtaout22.012.net.il> for 11857-done@debbugs.gnu.org; Thu, 05 Jul 2012 19:29:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M6P007JY4HITHF0@a-mtaout22.012.net.il>; Thu, 05 Jul 2012 19:29:42 +0300 (IDT) Date: Thu, 05 Jul 2012 19:29:45 +0300 From: Eli Zaretskii Subject: Re: bug#11857: large hscroll values mess up the display In-reply-to: <4FF48856.1020503@cs.ucla.edu> X-012-Sender: halo1@inter.net.il To: Paul Eggert Message-id: <83wr2i2mti.fsf@gnu.org> References: <4FF48856.1020503@cs.ucla.edu> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11857-done Cc: 11857-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Wed, 04 Jul 2012 11:15:50 -0700 > From: Paul Eggert > > I tried out large hscroll values and got messed > up displays. The exact details vary, depending > on display and other parameters I don't understand. > In some cases, even hscroll values well under INT_MAX > caused problems, but these are harder to reproduce. > > One way to easily reproduce the problem on Fedora 15 > x86-64 with Emacs trunk bzr 108872 is to run > emacs -Q on an X display and type this: > > C-u 1 0 0 0 0 0 0 0 0 0 0 C-x < SPC > > That is, scroll by 10**10. This results in a display > with <- in front of the first four lines, -> after > the first three lines, and semicolons in the start > of the first three lines. It looks like this: > > <-; -> > <-; -> > <-; -> > <- > > Where "<-" and "->" denote the margin arrows. This > is incorrect, as the display should look > like it does when scrolling by 100, namely, like this: > > <- > <- > <- > <- > > I also reproduced the problem with Emacs 23.3.1 > (stock Ubuntu 12.04 x86) so this is not a new bug > nor is it restricted to 64-bit hosts. Fixed in revisions 108879 and 108880 on the trunk. I'm closing the bug; feel free to reopen if there are leftovers. Thanks. ------------=_1341506101-12418-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jul 2012 18:20:50 +0000 Received: from localhost ([127.0.0.1]:48338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmUC1-0002Pu-Nb for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:20:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58827) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmUBz-0002Pn-BB for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:20:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmU7J-0002Ag-Kv for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:15:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmU7J-0002Aa-Hb for submit@debbugs.gnu.org; Wed, 04 Jul 2012 14:15:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmU7H-00068a-Uy for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 14:15:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmU7G-00029d-0T for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 14:15:55 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:52118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmU7F-000294-R1 for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 14:15:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id B85C039E8100 for ; Wed, 4 Jul 2012 11:15:50 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wHUx8-PAjAE1 for ; Wed, 4 Jul 2012 11:15:50 -0700 (PDT) Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 42E6A39E80E1 for ; Wed, 4 Jul 2012 11:15:50 -0700 (PDT) Message-ID: <4FF48856.1020503@cs.ucla.edu> Date: Wed, 04 Jul 2012 11:15:50 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: large hscroll values mess up the display Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) I tried out large hscroll values and got messed up displays. The exact details vary, depending on display and other parameters I don't understand. In some cases, even hscroll values well under INT_MAX caused problems, but these are harder to reproduce. One way to easily reproduce the problem on Fedora 15 x86-64 with Emacs trunk bzr 108872 is to run emacs -Q on an X display and type this: C-u 1 0 0 0 0 0 0 0 0 0 0 C-x < SPC That is, scroll by 10**10. This results in a display with <- in front of the first four lines, -> after the first three lines, and semicolons in the start of the first three lines. It looks like this: <-; -> <-; -> <-; -> <- Where "<-" and "->" denote the margin arrows. This is incorrect, as the display should look like it does when scrolling by 100, namely, like this: <- <- <- <- I also reproduced the problem with Emacs 23.3.1 (stock Ubuntu 12.04 x86) so this is not a new bug nor is it restricted to 64-bit hosts. ------------=_1341506101-12418-1--