From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dunni@gnu.org Newsgroups: gmane.emacs.bugs Subject: bug#22098: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1449348508 29661 80.91.229.3 (5 Dec 2015 20:48:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2015 20:48:28 +0000 (UTC) To: 22098@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 21:48:17 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 1a5Jka-0004Xc-0R for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 21:48:12 +0100 Original-Received: from localhost ([::1]:47712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5JkZ-0005HC-4E for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 15:48:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5JkV-0005DX-0m for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:48:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5JkQ-0007T9-Vi for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:48:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5JkQ-0007Sz-SQ for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a5JkQ-0005H7-Pa for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 15:48:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144934846020240 (code B ref -1); Sat, 05 Dec 2015 20:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Dec 2015 20:47:40 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-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:109672 Archived-At: --=-=-= 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)) --=-=-=--