From unknown Tue Jun 17 01:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Resent-From: dunni@gnu.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2015 20:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22098 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22098@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144934846020240 (code B ref -1); Sat, 05 Dec 2015 20:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Dec 2015 20:47:40 +0000 Received: from localhost ([127.0.0.1]:40118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Jk3-0005GO-9L for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60717) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Jjj-0005Fu-1c for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Jjh-0007Fc-Ih for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:18 -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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Jjh-0007FY-FQ for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Jjg-0004iq-AK for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Jjc-0007F8-87 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:16 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Jjc-0007F4-51 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:12 -0500 Received: from cpe-45-46-215-8.rochester.res.rr.com ([45.46.215.8]:38110 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a5Jjb-000151-Mw for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:11 -0500 From: dunni@gnu.org Date: Sat, 05 Dec 2015 15:47:00 -0500 Message-ID: <87610cipx7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-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: -5.0 (-----) --=-=-= Content-Type: text/plain 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. As you may be able to tell from the output below, I'm running from the emacs-25 branch. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=output.txt Insert a bunch of text right here a bunch more right here maybe some here A bunch of text right here that takes up the entire line in the window. A bunch of text right here that takes up the entire line in the window. A bunch of text right here that takes up the entire line in the window. More text here More text here Some text here for good measure --=-=-= Content-Type: text/plain In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.5) of 2015-12-02 Repository revision: 4d10a7d467b6b0927036387c0d4849b2f40abcee Windowing system distributor 'The X.Org Foundation', version 11.0.11800000 System Description: Parabola GNU/Linux-libre Configured using: 'configure --prefix=/home/skolar/source/src' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent messages: Wrote /home/skolar/.emacs.d/output.txt Visual-Line mode enabled in current buffer Undo! t 0 (#o0, #x0, ?\C-@) Saving file /home/skolar/.emacs.d/output.txt... Wrote /home/skolar/.emacs.d/output.txt Quit Making completion list... next-line: End of buffer Load-path shadows: None found. Features: (seq byte-opt gv bytecomp byte-compile cconv cl-extra wid-edit descr-text pp shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 91128 16179) (symbols 48 19947 6) (miscs 40 74 221) (strings 32 15597 7343) (string-bytes 1 469318) (vectors 16 12823) (vector-slots 8 432837 9867) (floats 8 163 161) (intervals 56 244 11) (buffers 976 15) (heap 1024 46195 1614)) --=-=-=-- From unknown Tue Jun 17 01:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump 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: To: dunni@gnu.org Cc: 22098@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22098-submit@debbugs.gnu.org id=B22098.144937337727278 (code B ref 22098); Sun, 06 Dec 2015 03:43:01 +0000 Received: (at 22098) by debbugs.gnu.org; 6 Dec 2015 03:42:57 +0000 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 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 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) 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) Date: Sun, 06 Dec 2015 05:42:44 +0200 From: Eli Zaretskii In-reply-to: <87610cipx7.fsf@gnu.org> X-012-Sender: halo1@inter.net.il Message-id: <83wpssdyyz.fsf@gnu.org> References: <87610cipx7.fsf@gnu.org> X-Spam-Score: 0.9 (/) 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: 0.9 (/) > 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. From unknown Tue Jun 17 01:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Resent-From: Ian Dunn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2015 05:30:04 +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: To: Eli Zaretskii Cc: 22098@debbugs.gnu.org Received: via spool by 22098-submit@debbugs.gnu.org id=B22098.14493797734772 (code B ref 22098); Sun, 06 Dec 2015 05:30:04 +0000 Received: (at 22098) by debbugs.gnu.org; 6 Dec 2015 05:29:33 +0000 Received: from localhost ([127.0.0.1]:40300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Rt6-0001Eu-L1 for submit@debbugs.gnu.org; Sun, 06 Dec 2015 00:29:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45386) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Rsm-0001ES-48 for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 00:29:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Rsg-0004N3-VG for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 00:29: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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Rsg-0004Mz-SP for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 00:29:06 -0500 Received: from cpe-45-46-215-8.rochester.res.rr.com ([45.46.215.8]:36410 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a5Rsf-00031v-7v; Sun, 06 Dec 2015 00:29:05 -0500 From: Ian Dunn References: <87610cipx7.fsf@gnu.org> <83wpssdyyz.fsf@gnu.org> Date: Sun, 06 Dec 2015 00:28:57 -0500 In-Reply-To: <83wpssdyyz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 Dec 2015 05:42:44 +0200") Message-ID: <87fuzg87s6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-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: -5.0 (-----) Eli Zaretskii writes: > > 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? > Move point to the start of logical line 19, then move point one visual line up. Set that character to be invisible, then move point back to the start of logical line 19. Re-position the window twice, then move point up one visible line. M-g M-g 19 C-p C-M-: (add-text-properties (point) (1+ (point)) '(invisible t)) C-n C-l C-l C-p > 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? > I try not to assume that everyone has the same key-bindings as me, so I thought it might help to use the actual command names. As far as I can tell, it makes no difference. > Finally, your build is slightly outdated, so perhaps see if the > problem persists with the current emacs-25 branch. > > Thanks. I updated my build to the most recent version of the emacs-25 branch, but the problem still persists. I forgot to mention in my original report that this seems similar to bug #17047 (https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-03/msg00804.html). It looks like the old bug addressed the problem with forward-char and backward-char. I've checked with next-line, but I've never seen it happen before. I only ever see this problem with previous-line. Thanks for your quick response. From unknown Tue Jun 17 01:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2015 17:35: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: To: Ian Dunn Cc: 22098@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22098-submit@debbugs.gnu.org id=B22098.144942327918070 (code B ref 22098); Sun, 06 Dec 2015 17:35:01 +0000 Received: (at 22098) by debbugs.gnu.org; 6 Dec 2015 17:34:39 +0000 Received: from localhost ([127.0.0.1]:40934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5dCp-0004hO-35 for submit@debbugs.gnu.org; Sun, 06 Dec 2015 12:34:39 -0500 Received: from mtaout26.012.net.il ([80.179.55.182]:46935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5dCU-0004gt-PK for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 12:34:37 -0500 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NYY00E005YA8O00@mtaout26.012.net.il> for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 19:36:52 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYY00BNW69FIC30@mtaout26.012.net.il>; Sun, 06 Dec 2015 19:36:52 +0200 (IST) Date: Sun, 06 Dec 2015 19:34:09 +0200 From: Eli Zaretskii In-reply-to: <87fuzg87s6.fsf@gnu.org> X-012-Sender: halo1@inter.net.il Message-id: <83poyjeb1q.fsf@gnu.org> References: <87610cipx7.fsf@gnu.org> <83wpssdyyz.fsf@gnu.org> <87fuzg87s6.fsf@gnu.org> X-Spam-Score: 0.9 (/) 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: 0.9 (/) > From: Ian Dunn > Cc: 22098@debbugs.gnu.org > Date: Sun, 06 Dec 2015 00:28:57 -0500 > > M-g M-g 19 > C-p > C-M-: (add-text-properties (point) (1+ (point)) '(invisible t)) > C-n > C-l C-l > C-p Thanks. With this recipe, I do see some unusual behavior of the cursor, but not the one you described. On my system, the cursor stays at its position before the final C-p, then, a fraction of second later, jumps to its correct position. It doesn't stay at the top line of the window. > > 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? > > I try not to assume that everyone has the same key-bindings as me, so I > thought it might help to use the actual command names. Yes, but you should be aware that this might make a difference for redisplay problems: typing M-x causes a mildly thorough redisplay, so it might obscure some problems and cause some others. That's why I asked. > I forgot to mention in my original report that this seems similar to > bug #17047 > (https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-03/msg00804.html). > It looks like the old bug addressed the problem with forward-char > and backward-char. I've checked with next-line, but I've never seen > it happen before. I only ever see this problem with previous-line. No, that's a different problem. The problem discussed here happens because point moves outside the window to the place that's invisible. By contrast, bug #17047 was about a situation where the goal position was visible in the window at all times. Anyway, I fixed the problem I see here in commit cca5629 on the emacs-25 branch. Please see if your problem is solved by that change. Thanks. From unknown Tue Jun 17 01:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Resent-From: Ian Dunn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2015 01:13:04 +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: To: Eli Zaretskii Cc: 22098@debbugs.gnu.org Received: via spool by 22098-submit@debbugs.gnu.org id=B22098.144970994330475 (code B ref 22098); Thu, 10 Dec 2015 01:13:04 +0000 Received: (at 22098) by debbugs.gnu.org; 10 Dec 2015 01:12:23 +0000 Received: from localhost ([127.0.0.1]:38319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a6pmR-0007vF-9m for submit@debbugs.gnu.org; Wed, 09 Dec 2015 20:12:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50505) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a6pcN-0007ZB-4G for 22098@debbugs.gnu.org; Wed, 09 Dec 2015 20:01:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6TdU-000520-Us for 22098@debbugs.gnu.org; Tue, 08 Dec 2015 20:33:44 -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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6TdU-00051w-Rk for 22098@debbugs.gnu.org; Tue, 08 Dec 2015 20:33:40 -0500 Received: from cpe-45-46-215-8.rochester.res.rr.com ([45.46.215.8]:33300 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a6TdU-0008OZ-7H; Tue, 08 Dec 2015 20:33:40 -0500 From: Ian Dunn References: <87610cipx7.fsf@gnu.org> <83wpssdyyz.fsf@gnu.org> <87fuzg87s6.fsf@gnu.org> <83poyjeb1q.fsf@gnu.org> Date: Tue, 08 Dec 2015 20:33:39 -0500 In-Reply-To: <83poyjeb1q.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 Dec 2015 19:34:09 +0200") Message-ID: <87wpsos8wc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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.6 (-----) 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.6 (-----) --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> I try not to assume that everyone has the same key-bindings as me, so I >> thought it might help to use the actual command names. > > Yes, but you should be aware that this might make a difference for > redisplay problems: typing M-x causes a mildly thorough redisplay, so > it might obscure some problems and cause some others. That's why I > asked. > I did not know that. Thanks for the tip. > Anyway, I fixed the problem I see here in commit cca5629 on the > emacs-25 branch. Please see if your problem is solved by that change. > > Thanks. Thanks once again for the quick response, and my apologies for my sluggish response. That fixed the problem in that sample I gave to you, but I noticed a similar problem that I just figured out how to replicate: emacs -Q output.txt visual-line-mode global-hl-line-mode M-g M-g 19 C-p C-M-: (add-text-properties (point) (1+ (point)) '(invisible t)) C-p C-l C-l C-n C-n C-p What I see happen is point jump to exactly half-way down the window. This only seems to happen when the invisible text is on the second visual line of the window, but the start of the line isn't the first. To demonstrate this, here is what I see when I encounter the bug: words are formatted and printed--emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish. I make the 'w' in "way" invisible (since making the 'e' in "everything" invisible causes that word to jump to the previous visual line), and re-position the window such that "words" is the first visible word in the window (So those three lines are the first three visual lines of the window). Then, I move point down two visual lines, and then try to move it back up so it is over the word "ay" (way with an invisible "w"). When I do, the cursor (and I assume point) immediately jumps to one line above the middle of the window. I verified this last bit by moving the cursor in an adjacent window to the exact center, and comparing. The cursor in the first window appears to be exactly one line above center. Also, it only happens when global-hl-line-mode is also active. If the involvement of global-hl-line-mode in this constitutes a separate bug, then just let me know so I can file another report. I updated output.txt with with additional (actual) text, so to verify that we are in fact using the same file, I've attached it again. Once again, thank you for your help. Ian Dunn --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=output.txt Insert a bunch of text right here a bunch more right here maybe some here If you are a professional writer--i.e., if someone else is getting paid to worry about how your words are formatted and printed--emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish. More text here More text here Some text here for good measure --=-=-=-- From unknown Tue Jun 17 01:48:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Resent-From: Ian Dunn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2015 01:14:02 +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: To: Eli Zaretskii Cc: 22098@debbugs.gnu.org Received: via spool by 22098-submit@debbugs.gnu.org id=B22098.144971003630903 (code B ref 22098); Thu, 10 Dec 2015 01:14:02 +0000 Received: (at 22098) by debbugs.gnu.org; 10 Dec 2015 01:13:56 +0000 Received: from localhost ([127.0.0.1]:38401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a6pnw-00082M-MU for submit@debbugs.gnu.org; Wed, 09 Dec 2015 20:13:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54615) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a6pnv-000828-22 for 22098@debbugs.gnu.org; Wed, 09 Dec 2015 20:13:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6pnl-0002Zd-V3 for 22098@debbugs.gnu.org; Wed, 09 Dec 2015 20:13:49 -0500 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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6pnl-0002ZZ-Rm for 22098@debbugs.gnu.org; Wed, 09 Dec 2015 20:13:45 -0500 Received: from cpe-45-46-215-8.rochester.res.rr.com ([45.46.215.8]:56442 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a6pnl-0005Fh-BL; Wed, 09 Dec 2015 20:13:45 -0500 From: Ian Dunn References: <87610cipx7.fsf@gnu.org> <83wpssdyyz.fsf@gnu.org> <87fuzg87s6.fsf@gnu.org> <83poyjeb1q.fsf@gnu.org> <87wpsos8wc.fsf@gnu.org> <83fuzbbimh.fsf@gnu.org> Date: Wed, 09 Dec 2015 20:13:43 -0500 In-Reply-To: <83fuzbbimh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 09 Dec 2015 20:07:50 +0200") Message-ID: <87zixjnm0o.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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.6 (-----) 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.6 (-----) Eli Zaretskii writes: > > The evil hl-line-mode, sigh... > > Fixed in commit d75849e on the emacs-25 branch. Thanks for the > recipe. > Fix verified. Thanks for all of your help, Eli. Ian From unknown Tue Jun 17 01:48:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: dunni@gnu.org Subject: bug#22098: closed (Re: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump) Message-ID: References: <83si3a9s0p.fsf@gnu.org> <87610cipx7.fsf@gnu.org> X-Gnu-PR-Message: they-closed 22098 X-Gnu-PR-Package: emacs Reply-To: 22098@debbugs.gnu.org Date: Thu, 10 Dec 2015 16:41:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1449765662-3533-1" This is a multi-part message in MIME format... ------------=_1449765662-3533-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump 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 22098@debbugs.gnu.org. --=20 22098: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22098 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1449765662-3533-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22098-done) by debbugs.gnu.org; 10 Dec 2015 16:40:11 +0000 Received: from localhost ([127.0.0.1]:39292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a74GJ-0000tn-IX for submit@debbugs.gnu.org; Thu, 10 Dec 2015 11:40:11 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:57392) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a74GH-0000ta-Rs for 22098-done@debbugs.gnu.org; Thu, 10 Dec 2015 11:40:10 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NZ500K00I415C00@a-mtaout20.012.net.il> for 22098-done@debbugs.gnu.org; Thu, 10 Dec 2015 18:40:02 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NZ500J2DIAQXI50@a-mtaout20.012.net.il>; Thu, 10 Dec 2015 18:40:02 +0200 (IST) Date: Thu, 10 Dec 2015 18:40:06 +0200 From: Eli Zaretskii Subject: Re: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump In-reply-to: <87zixjnm0o.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Ian Dunn Message-id: <83si3a9s0p.fsf@gnu.org> References: <87610cipx7.fsf@gnu.org> <83wpssdyyz.fsf@gnu.org> <87fuzg87s6.fsf@gnu.org> <83poyjeb1q.fsf@gnu.org> <87wpsos8wc.fsf@gnu.org> <83fuzbbimh.fsf@gnu.org> <87zixjnm0o.fsf@gnu.org> X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: 22098-done Cc: 22098-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: 0.9 (/) > From: Ian Dunn > Cc: 22098@debbugs.gnu.org > Date: Wed, 09 Dec 2015 20:13:43 -0500 > > Eli Zaretskii writes: > > > > > The evil hl-line-mode, sigh... > > > > Fixed in commit d75849e on the emacs-25 branch. Thanks for the > > recipe. > > > > Fix verified. Thanks for all of your help, Eli. Thanks, closing. ------------=_1449765662-3533-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Dec 2015 20:47:40 +0000 Received: from localhost ([127.0.0.1]:40118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Jk3-0005GO-9L for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60717) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Jjj-0005Fu-1c for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Jjh-0007Fc-Ih for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:18 -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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Jjh-0007FY-FQ for submit@debbugs.gnu.org; Sat, 05 Dec 2015 15:47:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Jjg-0004iq-AK for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Jjc-0007F8-87 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:16 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Jjc-0007F4-51 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:12 -0500 Received: from cpe-45-46-215-8.rochester.res.rr.com ([45.46.215.8]:38110 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a5Jjb-000151-Mw for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:47:11 -0500 From: dunni@gnu.org To: bug-gnu-emacs@gnu.org Subject: 25.0.50; visual-line-mode and invisible text causes cursor to jump Date: Sat, 05 Dec 2015 15:47:00 -0500 Message-ID: <87610cipx7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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.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: -5.0 (-----) --=-=-= Content-Type: text/plain 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. As you may be able to tell from the output below, I'm running from the emacs-25 branch. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=output.txt Insert a bunch of text right here a bunch more right here maybe some here A bunch of text right here that takes up the entire line in the window. A bunch of text right here that takes up the entire line in the window. A bunch of text right here that takes up the entire line in the window. More text here More text here Some text here for good measure --=-=-= Content-Type: text/plain In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.5) of 2015-12-02 Repository revision: 4d10a7d467b6b0927036387c0d4849b2f40abcee Windowing system distributor 'The X.Org Foundation', version 11.0.11800000 System Description: Parabola GNU/Linux-libre Configured using: 'configure --prefix=/home/skolar/source/src' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent messages: Wrote /home/skolar/.emacs.d/output.txt Visual-Line mode enabled in current buffer Undo! t 0 (#o0, #x0, ?\C-@) Saving file /home/skolar/.emacs.d/output.txt... Wrote /home/skolar/.emacs.d/output.txt Quit Making completion list... next-line: End of buffer Load-path shadows: None found. Features: (seq byte-opt gv bytecomp byte-compile cconv cl-extra wid-edit descr-text pp shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 91128 16179) (symbols 48 19947 6) (miscs 40 74 221) (strings 32 15597 7343) (string-bytes 1 469318) (vectors 16 12823) (vector-slots 8 432837 9867) (floats 8 163 161) (intervals 56 244 11) (buffers 976 15) (heap 1024 46195 1614)) --=-=-=-- ------------=_1449765662-3533-1--