Subject: 23.0.60; Problem with word wrap plus cua mode

From: "andreas.amann" <[email-masked]>
Date: Fri, 12 Dec 2008 11:37:37 GMT

start with "emacs -Q"

select from the menu:
Options -> "C-x/C-c/C-v Cut and Paste (CUA)"
then also select
Options -> "Line Wrapping in this Buffer" -> "Word Wrap (Visual Line Mode)"

now go into a non-empty line in the *scratch* buffer and press S-end.
Expected behaviour: obtain active region to end of line and move point to 
end of line.
Actual behaviour: point is only moved to end of line, but no region 
is highlighted. 

The bug seems to be related to the combination of cua-mode and 
visual-line-mode, since for example after switching off 
"C-x/C-c/C-v Cut and Paste (CUA)" in the option menu S-end works as 
expected.

In GNU Emacs 23.0.60.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-12-12 on lnx0015f2465ec6
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--prefix=/home/aamann/local/emacs-cvs' 'LDFLAGS=-L/home/aamann/local/lib64' 'CPPFLAGS=-I/home/aamann/local/include''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_IE.utf8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  cua-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-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 input:
<up> <up> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <menu-bar> <options> <cua-mode> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <options> <line-wrapping> 
<word-wrap> <S-end> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Cua mode enabled
Visual-Line mode enabled