Subject: Re: bug#1549: 23.0.60; Problem with word wrap plus cua mode

From: martin rudalics <[email-masked]>
Date: Tue, 16 Dec 2008 11:16:01 +0100

> 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.

Does the attached patch fix it?

martin
*** emulation/cua-base.el.~1.98.~	2008-06-27 09:34:47.000000000 +0200
--- emulation/cua-base.el	2008-12-16 11:12:05.421875000 +0100
***************
*** 1495,1500 ****
--- 1495,1501 ----
     next-line previous-line
     forward-word backward-word
     end-of-line beginning-of-line
+    end-of-visual-line beginning-of-visual-line
     move-end-of-line move-beginning-of-line
     end-of-buffer beginning-of-buffer
     scroll-up scroll-down