bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32323: 24.5; visual-line-mode and end-of-visual-line conflict


From: Marc Paquin
Subject: bug#32323: 24.5; visual-line-mode and end-of-visual-line conflict
Date: Mon, 30 Jul 2018 18:52:07 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

--text follows this line--


To replicate the bug:

First, begin editing a new text file and turn on visual-line-mode.


Then create a line of text with "xxx" and "yyy" separated by 10 spaces:

xxx          yyy


Now add random text before "xxx" until the "xxx" just soft-wraps to the next visual line.  (The number of characters required for this will obviously depend on the width of the Emacs window.):

These are random words used to get the string to soft-wrap to anoth xxx          yyy


Now put the cursor at the start of the random text and run end-of-visual-line (should be C-e or the End key by default with visual-line-mode on).  Instead of the cursor moving to the end of the random text as it should, it moves instead to one of the spaces separating xxx and yyy on the next visual line.

In addition, left-clicking with the mouse on any of the random characters will properly move the text cursor to the mouse cursor location, but clicking on the "xxx" will position the text cursor well to the right of the mouse cursor location.

When multiple spaces occur on a soft-wrap line boundary, there seems to be a disconnect between how the text appears and how end-of-visual-line and the mouse cursor THINKS that the text appears.






In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-09-20 on lcy01-07, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11804000
System Description:    Ubuntu 16.04.5 LTS

Configured using:
 `configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

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
  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:
End of buffer [7 times]
Auto-saving...done
Auto-saving...done
Auto-saving...done
Auto-saving...done
Mark set [2 times]
End of buffer [6 times]
Auto-saving...done
byte-code: Beginning of buffer [2 times]
Making completion list...

Load-path shadows:
/usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup

Features:
(shadow sort gnus-util mail-extr emacsbug message 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
mail-prsvr mail-utils help-fns help-mode easymenu time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer 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 make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 78150 12406)
 (symbols 48 17663 0)
 (miscs 40 107 224)
 (strings 32 9728 4098)
 (string-bytes 1 260234)
 (vectors 16 8995)
 (vector-slots 8 383926 17008)
 (floats 8 65 493)
 (intervals 56 293 22)
 (buffers 960 15)
 (heap 1024 32215 950))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]