From unknown Sun Jun 22 00:37:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21080: Scrolling bug Resent-From: Bru Rom Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jul 2015 17:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21080 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21080@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143715410318643 (code B ref -1); Fri, 17 Jul 2015 17:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jul 2015 17:28:23 +0000 Received: from localhost ([127.0.0.1]:52233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG9Qs-0004qc-Nj for submit@debbugs.gnu.org; Fri, 17 Jul 2015 13:28:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59712) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG8r4-0003zn-Pc for submit@debbugs.gnu.org; Fri, 17 Jul 2015 12:51:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG8qy-0000Bk-Gy for submit@debbugs.gnu.org; Fri, 17 Jul 2015 12:51:17 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG8qy-0000Bg-Do for submit@debbugs.gnu.org; Fri, 17 Jul 2015 12:51:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG8qx-0007EH-HS for bug-gnu-emacs@gnu.org; Fri, 17 Jul 2015 12:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG8qw-0000BJ-Hj for bug-gnu-emacs@gnu.org; Fri, 17 Jul 2015 12:51:15 -0400 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:32953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG8qw-0000BB-9u for bug-gnu-emacs@gnu.org; Fri, 17 Jul 2015 12:51:14 -0400 Received: by pdbqm3 with SMTP id qm3so64497729pdb.0 for ; Fri, 17 Jul 2015 09:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=t6g29ZMbwHfQ9GLvp2xhPqJiO7YMBgGb7siADfVJ+Sg=; b=dZ+RPTi+Ei68YNWe1B1GgSxYL/bF97W4IBIxmjn+seNU1g05kUXC+jUNetdwSbodMQ KQUDeEHmqDuG3LygwTh2yWbvcaKBRn8gCD4aszuOft2AgqVdJMM5fWjx1sXF2DeWiHok Axh360/Zjrtk1m3MpLfRKV29vqerNffnyblfnwz0mIPtohpFp8TFiCF/pgUO/zlsMBjM tcx6nr+YnW/3quvenJzn6IAq+isvPSRpJfzSl+wmmQFIZShUHpP2mt5ctk37/lCp/p32 mEGs1tkSZGUD2IgQLcLLCmjyUXZKVRezkdQ+QsT+J3WAodXavcSijxoQk5IJnAdgQ+0o Yhuw== MIME-Version: 1.0 X-Received: by 10.70.131.4 with SMTP id oi4mr31415563pdb.122.1437151872214; Fri, 17 Jul 2015 09:51:12 -0700 (PDT) Received: by 10.66.160.1 with HTTP; Fri, 17 Jul 2015 09:51:12 -0700 (PDT) Date: Fri, 17 Jul 2015 19:51:12 +0300 Message-ID: From: Bru Rom Content-Type: multipart/alternative; boundary=001a1133d94ed4ee08051b14fef8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Fri, 17 Jul 2015 13:28:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (----) --001a1133d94ed4ee08051b14fef8 Content-Type: text/plain; charset=UTF-8 Hi! I work in terminal on Ubuntu 15.04 (xterm, GNOME terminal) with very big text files, very long lines and warping (via global-visual-line). I want to scroll by one line, so i set scroll-conservatively to most-positive-fixnum. When i read text and scroll down everything is fine, but when i want to return back and scroll up *over warped lines*, cursor jumps on the second line from the top of window. According to manual, faq, wiki and google i try to play with other scroll-related settings, such as margin, aggressiveness, step, but with no result. Cursor still jump by two lines when moving up. Looks like a bug. In GUI version everything is good and scrolls by one line. This bug is only in terminals. Confirm with 24.4.1 and 24.5. --001a1133d94ed4ee08051b14fef8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

I work in terminal on Ubuntu 15= .04 (xterm, GNOME terminal) with very big text files, very long lines and w= arping (via global-visual-line). I want to scroll by one line, so i set scr= oll-conservatively to
most-positive-fixnum. When i read text and scroll = down everything is fine, but when i want to return back and scroll up *over= warped lines*, cursor jumps on the second line from the top of window. Acc= ording to manual, faq, wiki and google i try to play with other scroll-rela= ted settings, such as margin, aggressiveness, step, but with no result. Cur= sor still jump by two lines when moving up. Looks like a bug. In GUI versio= n everything is good and scrolls by one line. This bug is only in terminals= . Confirm with 24.4.1 and 24.5.
--001a1133d94ed4ee08051b14fef8-- From unknown Sun Jun 22 00:37:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21080: Scrolling bug Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jul 2015 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21080 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Bru Rom Cc: 21080@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21080-submit@debbugs.gnu.org id=B21080.143715640622089 (code B ref 21080); Fri, 17 Jul 2015 18:07:02 +0000 Received: (at 21080) by debbugs.gnu.org; 17 Jul 2015 18:06:46 +0000 Received: from localhost ([127.0.0.1]:52238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGA21-0005kC-N9 for submit@debbugs.gnu.org; Fri, 17 Jul 2015 14:06:46 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:64796) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGA1y-0005jx-Tp for 21080@debbugs.gnu.org; Fri, 17 Jul 2015 14:06:44 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NRN003008ET9B00@a-mtaout23.012.net.il> for 21080@debbugs.gnu.org; Fri, 17 Jul 2015 21:06:36 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NRN003EM8YY9H10@a-mtaout23.012.net.il>; Fri, 17 Jul 2015 21:06:36 +0300 (IDT) Date: Fri, 17 Jul 2015 21:06:46 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83vbdi64ll.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 1.0 (+) > Date: Fri, 17 Jul 2015 19:51:12 +0300 > From: Bru Rom > > I work in terminal on Ubuntu 15.04 (xterm, GNOME terminal) with very big text > files, very long lines and warping (via global-visual-line). I want to scroll > by one line, so i set scroll-conservatively to > most-positive-fixnum. When i read text and scroll down everything is fine, but > when i want to return back and scroll up *over warped lines*, cursor jumps on > the second line from the top of window. According to manual, faq, wiki and > google i try to play with other scroll-related settings, such as margin, > aggressiveness, step, but with no result. Cursor still jump by two lines when > moving up. Looks like a bug. In GUI version everything is good and scrolls by > one line. This bug is only in terminals. Confirm with 24.4.1 and 24.5. Please show a sample file and the exact sequence of commands, starting from "emacs -Q", for reproducing this problem. Thanks. From unknown Sun Jun 22 00:37:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Bru Rom Subject: bug#21080: closed (Re: bug#21080: Scrolling bug) Message-ID: References: <83h9p16ap3.fsf@gnu.org> X-Gnu-PR-Message: they-closed 21080 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 21080@debbugs.gnu.org Date: Sat, 18 Jul 2015 10:08:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1437214082-16408-1" This is a multi-part message in MIME format... ------------=_1437214082-16408-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21080: Scrolling bug 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 21080@debbugs.gnu.org. --=20 21080: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21080 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1437214082-16408-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21080-done) by debbugs.gnu.org; 18 Jul 2015 10:07:17 +0000 Received: from localhost ([127.0.0.1]:52547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGP1Y-0004Fg-BR for submit@debbugs.gnu.org; Sat, 18 Jul 2015 06:07:16 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:46572) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGP1V-0004FO-PG for 21080-done@debbugs.gnu.org; Sat, 18 Jul 2015 06:07:14 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NRO00500H6VIP00@a-mtaout23.012.net.il> for 21080-done@debbugs.gnu.org; Sat, 18 Jul 2015 13:07:07 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NRO005DFHFUCM90@a-mtaout23.012.net.il>; Sat, 18 Jul 2015 13:07:07 +0300 (IDT) Date: Sat, 18 Jul 2015 13:07:20 +0300 From: Eli Zaretskii Subject: Re: bug#21080: Scrolling bug In-reply-to: X-012-Sender: halo1@inter.net.il To: Bru Rom Message-id: <83h9p16ap3.fsf@gnu.org> References: <83vbdi64ll.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21080-done Cc: 21080-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > Date: Sat, 18 Jul 2015 00:58:14 +0300 > From: Bru Rom > > It can be any file with long enough lines. > > For standard terminal 80x24, let the part of wikipedia article on Emacs be our > "sample file". Emacs history from it: > [...] > Copy text to file, open it in Emacs with emacs -nw -Q > > Next, exact sequence of commands: > > alt-x customize-option > scroll-conservatively > Set there 10000, tab into state, enter state, press 0 = Set for Current Session > Press 'q' to exit > > Then alt-x visual-line-mode > > Then C-End to go to end of buffer. Then scroll up line-by-line with Up. It > scrolls by 2 over warped lines, but if you go down from start of buffer - > everything will be ok. Thanks. This bug is now fixed in the development sources with the simple change below (which you could probably easily apply to 24.5 or previous versions, as that code was in Emacs since Mar 2002). commit d3816bf8ad1fcfed2a32d23216a55850ee4325b5 Author: Eli Zaretskii Date: Sat Jul 18 13:02:06 2015 +0300 Fix scrolling backwards on TTY frames under scroll-conservatively * src/xdisp.c (move_it_vertically_backward): Fix off-by-one error in moving backwards on TTY frames. (Bug#21080) diff --git a/src/xdisp.c b/src/xdisp.c index 5bef44c..16a7a64 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -9428,7 +9428,7 @@ struct overlay_entry treating terminal frames specially here. */ if (!FRAME_WINDOW_P (it->f)) - move_it_vertically (it, target_y - (it->current_y + line_height)); + move_it_vertically (it, target_y - it->current_y); else { do ------------=_1437214082-16408-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jul 2015 17:28:23 +0000 Received: from localhost ([127.0.0.1]:52233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG9Qs-0004qc-Nj for submit@debbugs.gnu.org; Fri, 17 Jul 2015 13:28:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59712) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG8r4-0003zn-Pc for submit@debbugs.gnu.org; Fri, 17 Jul 2015 12:51:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG8qy-0000Bk-Gy for submit@debbugs.gnu.org; Fri, 17 Jul 2015 12:51:17 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG8qy-0000Bg-Do for submit@debbugs.gnu.org; Fri, 17 Jul 2015 12:51:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG8qx-0007EH-HS for bug-gnu-emacs@gnu.org; Fri, 17 Jul 2015 12:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG8qw-0000BJ-Hj for bug-gnu-emacs@gnu.org; Fri, 17 Jul 2015 12:51:15 -0400 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:32953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG8qw-0000BB-9u for bug-gnu-emacs@gnu.org; Fri, 17 Jul 2015 12:51:14 -0400 Received: by pdbqm3 with SMTP id qm3so64497729pdb.0 for ; Fri, 17 Jul 2015 09:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=t6g29ZMbwHfQ9GLvp2xhPqJiO7YMBgGb7siADfVJ+Sg=; b=dZ+RPTi+Ei68YNWe1B1GgSxYL/bF97W4IBIxmjn+seNU1g05kUXC+jUNetdwSbodMQ KQUDeEHmqDuG3LygwTh2yWbvcaKBRn8gCD4aszuOft2AgqVdJMM5fWjx1sXF2DeWiHok Axh360/Zjrtk1m3MpLfRKV29vqerNffnyblfnwz0mIPtohpFp8TFiCF/pgUO/zlsMBjM tcx6nr+YnW/3quvenJzn6IAq+isvPSRpJfzSl+wmmQFIZShUHpP2mt5ctk37/lCp/p32 mEGs1tkSZGUD2IgQLcLLCmjyUXZKVRezkdQ+QsT+J3WAodXavcSijxoQk5IJnAdgQ+0o Yhuw== MIME-Version: 1.0 X-Received: by 10.70.131.4 with SMTP id oi4mr31415563pdb.122.1437151872214; Fri, 17 Jul 2015 09:51:12 -0700 (PDT) Received: by 10.66.160.1 with HTTP; Fri, 17 Jul 2015 09:51:12 -0700 (PDT) Date: Fri, 17 Jul 2015 19:51:12 +0300 Message-ID: Subject: Scrolling bug From: Bru Rom To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a1133d94ed4ee08051b14fef8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 17 Jul 2015 13:28:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (----) --001a1133d94ed4ee08051b14fef8 Content-Type: text/plain; charset=UTF-8 Hi! I work in terminal on Ubuntu 15.04 (xterm, GNOME terminal) with very big text files, very long lines and warping (via global-visual-line). I want to scroll by one line, so i set scroll-conservatively to most-positive-fixnum. When i read text and scroll down everything is fine, but when i want to return back and scroll up *over warped lines*, cursor jumps on the second line from the top of window. According to manual, faq, wiki and google i try to play with other scroll-related settings, such as margin, aggressiveness, step, but with no result. Cursor still jump by two lines when moving up. Looks like a bug. In GUI version everything is good and scrolls by one line. This bug is only in terminals. Confirm with 24.4.1 and 24.5. --001a1133d94ed4ee08051b14fef8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

I work in terminal on Ubuntu 15= .04 (xterm, GNOME terminal) with very big text files, very long lines and w= arping (via global-visual-line). I want to scroll by one line, so i set scr= oll-conservatively to
most-positive-fixnum. When i read text and scroll = down everything is fine, but when i want to return back and scroll up *over= warped lines*, cursor jumps on the second line from the top of window. Acc= ording to manual, faq, wiki and google i try to play with other scroll-rela= ted settings, such as margin, aggressiveness, step, but with no result. Cur= sor still jump by two lines when moving up. Looks like a bug. In GUI versio= n everything is good and scrolls by one line. This bug is only in terminals= . Confirm with 24.4.1 and 24.5.
--001a1133d94ed4ee08051b14fef8-- ------------=_1437214082-16408-1--