unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23879: visual-line-mode produces erratic behaviour with text properties
@ 2016-07-01  8:33 Paul Rankin
  2016-07-01  9:37 ` Eli Zaretskii
       [not found] ` <handler.23879.D23879.146746335225755.notifdone@debbugs.gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Paul Rankin @ 2016-07-01  8:33 UTC (permalink / raw)
  To: 23879

Enabling visual-line-mode and adding line-prefix and wrap-prefix properties to a long paragraph of text produces erratic navigational behaviour.

To reproduce:

1. $ emacs -Q

2. insert a long paragraph of text
M-: (url-insert-file-contents "https://gist.githubusercontent.com/rnkn/d5987c3495901e4950782f6648846e4e/raw/c22074e8f0940f6ec9c8b729f04567dc50664823/loren-ipsum.txt")

3. turn on visual line mode
M-: (visual-line-mode 1)

4. add text properties
M-: (add-text-properties (point-min) (point-max) '(line-prefix (space :align-to 10) wrap-prefix (space :align-to 10)))

5. C-n past window height.

Expected results:

Navigation should continue by visual line.

Actual results:

Navigational behaviour becomes erratic. Point will no long move with visual lines, instead jumping to different columns. This is more pronounced with a window 80 columns or less.

Configuration:

GNU Emacs 24.5.1 (x86_64-apple-darwin15.5.0, NS apple-appkit-1404.47) of 2016-06-26

Configured using:
 `configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/usr/local/share/emacs/site-lisp
 --infodir=/usr/local/Cellar/emacs/24.5/share/info/emacs
 --prefix=/usr/local/Cellar/emacs/24.5 --with-xml2 --without-dbus
 --without-gnutls --with-ns --disable-ns-self-contained'

OS X 10.11.4 (15E65)

MacBook Pro (Retina, 15-inch, Mid 2014)
2.2 GHz Intel Core i7
16 GB 1600 MHz DDR3
Intel Iris Pro 1536 MB

-- 
Paul W. Rankin
www.paulwrankin.com





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-04 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-01  8:33 bug#23879: visual-line-mode produces erratic behaviour with text properties Paul Rankin
2016-07-01  9:37 ` Eli Zaretskii
2016-07-02 12:41   ` Eli Zaretskii
     [not found] ` <handler.23879.D23879.146746335225755.notifdone@debbugs.gnu.org>
2016-07-03  6:49   ` bug#23879: closed (Re: bug#23879: visual-line-mode produces erratic behaviour with text properties) Paul Rankin
2016-07-03  7:46     ` Eli Zaretskii
2016-07-04 16:41     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).