GNU bug report logs - #1549
23.0.60; Problem with word wrap plus cua mode

Previous Next

Package: emacs;

Reported by: "andreas.amann" <andreas.amann <at> tyndall.ie>

Date: Fri, 12 Dec 2008 11:45:03 UTC

Severity: normal

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1549 in the body.
You can then email your comments to 1549 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1549; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "andreas.amann" <andreas.amann <at> tyndall.ie>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "andreas.amann" <andreas.amann <at> tyndall.ie>
To: emacs-pretest-bug <at> gnu.org
Cc: andreas.amann <at> web.de
Subject: 23.0.60; Problem with word wrap plus cua mode
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




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1549; Package emacs. (Wed, 17 Dec 2008 06:25:56 GMT) Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 17 Dec 2008 06:25:56 GMT) Full text and rfc822 format available.

Message #10 received at 1549 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: 1549 <at> debbugs.gnu.org
Cc: "andreas.amann" <andreas.amann <at> tyndall.ie>, andreas.amann <at> web.de
Subject: Re: bug#1549: 23.0.60; Problem with word wrap plus cua mode
Date: Tue, 16 Dec 2008 11:16:01 +0100
[Message part 1 (text/plain, inline)]
> 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
[cua-base.diff (text/plain, inline)]
*** 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

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1549; Package emacs. (Wed, 17 Dec 2008 06:56:20 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Amann <amann <at> physik.tu-berlin.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 17 Dec 2008 06:56:21 GMT) Full text and rfc822 format available.

Message #15 received at 1549 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Andreas Amann <amann <at> physik.tu-berlin.de>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 1549 <at> debbugs.gnu.org
Subject: Re: bug#1549: 23.0.60; Problem with word wrap plus cua mode
Date: Tue, 16 Dec 2008 11:56:24 +0100
> > 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





Reply sent to martin rudalics <rudalics <at> gmx.at>:
You have taken responsibility. (Thu, 18 Dec 2008 10:45:02 GMT) Full text and rfc822 format available.

Notification sent to "andreas.amann" <andreas.amann <at> tyndall.ie>:
bug acknowledged by developer. (Thu, 18 Dec 2008 10:45:03 GMT) Full text and rfc822 format available.

Message #20 received at 1549-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: 1549-done <at> debbugs.gnu.org
Subject: Re: bug#1549: 23.0.60; Problem with word wrap plus cua mode
Date: Thu, 18 Dec 2008 11:41:24 +0100
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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 15 Jan 2009 15:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 220 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.