unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1549: 23.0.60; Problem with word wrap plus cua mode
@ 2008-12-12 11:37 ` andreas.amann
  2008-12-16 10:16   ` martin rudalics
  2008-12-18 10:45   ` bug#1549: marked as done (23.0.60; Problem with word wrap plus cua mode) Emacs bug Tracking System
  0 siblings, 2 replies; 4+ messages in thread
From: andreas.amann @ 2008-12-12 11:37 UTC (permalink / raw)
  To: emacs-pretest-bug; +Cc: andreas.amann

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






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

* bug#1549: 23.0.60; Problem with word wrap plus cua mode
  2008-12-12 11:37 ` bug#1549: 23.0.60; Problem with word wrap plus cua mode andreas.amann
@ 2008-12-16 10:16   ` martin rudalics
  2008-12-16 10:56     ` Andreas Amann
  2008-12-18 10:45   ` bug#1549: marked as done (23.0.60; Problem with word wrap plus cua mode) Emacs bug Tracking System
  1 sibling, 1 reply; 4+ messages in thread
From: martin rudalics @ 2008-12-16 10:16 UTC (permalink / raw)
  To: 1549; +Cc: andreas.amann, andreas.amann

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

 > 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

[-- Attachment #2: cua-base.diff --]
[-- Type: text/plain, Size: 442 bytes --]

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

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

* bug#1549: 23.0.60; Problem with word wrap plus cua mode
  2008-12-16 10:16   ` martin rudalics
@ 2008-12-16 10:56     ` Andreas Amann
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Amann @ 2008-12-16 10:56 UTC (permalink / raw)
  To: martin rudalics; +Cc: 1549

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

It does!

Thank you very much,
Andreas







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

* bug#1549: marked as done (23.0.60; Problem with word wrap plus  cua mode)
  2008-12-12 11:37 ` bug#1549: 23.0.60; Problem with word wrap plus cua mode andreas.amann
  2008-12-16 10:16   ` martin rudalics
@ 2008-12-18 10:45   ` Emacs bug Tracking System
  1 sibling, 0 replies; 4+ messages in thread
From: Emacs bug Tracking System @ 2008-12-18 10:45 UTC (permalink / raw)
  To: martin rudalics

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]


Your message dated Thu, 18 Dec 2008 11:41:24 +0100
with message-id <494A28D4.5010204@gmx.at>
and subject line Re: bug#1549: 23.0.60; Problem with word wrap plus cua mode
has caused the Emacs bug report #1549,
regarding 23.0.60; Problem with word wrap plus cua mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1549: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1549
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 4903 bytes --]

From: "andreas.amann" <andreas.amann@tyndall.ie>
To: emacs-pretest-bug@gnu.org
Cc: andreas.amann@web.de
Subject: 23.0.60; Problem with word wrap plus cua mode
Date: Fri, 12 Dec 2008 11:37:37 GMT
Message-ID: <200812121137.mBCBbbss024642@localhost.localdomain>

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



[-- Attachment #3: Type: message/rfc822, Size: 1733 bytes --]

From: martin rudalics <rudalics@gmx.at>
To: 1549-done@emacsbugs.donarmstrong.com
Subject: Re: bug#1549: 23.0.60; Problem with word wrap plus cua mode
Date: Thu, 18 Dec 2008 11:41:24 +0100
Message-ID: <494A28D4.5010204@gmx.at>

Fixed as

	* emulation/cua-base.el (cmd): Add beginning-of-visual-line and
	end-of-visual-line to CUA's recognized commands.  (Bug#1549)

martin


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

end of thread, other threads:[~2008-12-18 10:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <494A28D4.5010204@gmx.at>
2008-12-12 11:37 ` bug#1549: 23.0.60; Problem with word wrap plus cua mode andreas.amann
2008-12-16 10:16   ` martin rudalics
2008-12-16 10:56     ` Andreas Amann
2008-12-18 10:45   ` bug#1549: marked as done (23.0.60; Problem with word wrap plus cua mode) Emacs bug Tracking System

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