From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Date: Sun, 06 Dec 2015 05:42:44 +0200 Message-ID: <83wpssdyyz.fsf@gnu.org> References: <87610cipx7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449373398 7079 80.91.229.3 (6 Dec 2015 03:43:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2015 03:43:18 +0000 (UTC) Cc: 22098@debbugs.gnu.org To: dunni@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 06 04:43:07 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a5QE7-0004ol-5i for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2015 04:43:07 +0100 Original-Received: from localhost ([::1]:48564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5QE6-0005tp-9x for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 22:43:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5QE3-0005ti-3v for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 22:43:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5QE2-0005A8-5d for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 22:43:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5QE2-0005A4-29 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 22:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a5QE1-00076F-Pd for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 22:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2015 03:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22098 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22098-submit@debbugs.gnu.org id=B22098.144937337727278 (code B ref 22098); Sun, 06 Dec 2015 03:43:01 +0000 Original-Received: (at 22098) by debbugs.gnu.org; 6 Dec 2015 03:42:57 +0000 Original-Received: from localhost ([127.0.0.1]:40281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5QDw-00075u-PY for submit@debbugs.gnu.org; Sat, 05 Dec 2015 22:42:57 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:45171) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5QDu-00075j-Pi for 22098@debbugs.gnu.org; Sat, 05 Dec 2015 22:42:55 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NYX00300377M300@a-mtaout20.012.net.il> for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 05:42:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYX003443NGGRA0@a-mtaout20.012.net.il>; Sun, 06 Dec 2015 05:42:53 +0200 (IST) In-reply-to: <87610cipx7.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109682 Archived-At: > From: dunni@gnu.org > Date: Sat, 05 Dec 2015 15:47:00 -0500 > > emacs -Q output.txt > M-x visual-line-mode > ;; Scroll just after the long line of text in the middle of the screen, > ;; then position the cursor at the first character at that visual line. > C-M-: (add-text-properties (point) (1+ (point)) '(invisible t)) > next-line > recenter-top-bottom > previous-line > > The cursor should jump to the top of the screen. This isn't always the > case, as it sometimes moves to the bottom. It seems to only happen when > the window needs to be repositioned. I seem to be unable to reproduce this on my system. Maybe I didn't understand the exact place where to put the invisible property. What is the value of point there? Also, is it really necessary to invoke the commands via M-x, or do you see the same problem when you use C-n, C-l, and C-p instead? Finally, your build is slightly outdated, so perhaps see if the problem persists with the current emacs-25 branch. Thanks.