GNU bug report logs - #4931
cua-selection-mode with Caps Lock turned on selects region

Previous Next

Package: emacs;

Reported by: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>

Date: Mon, 16 Nov 2009 00:25:05 UTC

Severity: minor

Tags: patch

Merged with 7637, 17781, 24456

Found in versions 24.0.50, 24.3, 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

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 4931 in the body.
You can then email your comments to 4931 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#4931; Package emacs. (Mon, 16 Nov 2009 00:25:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Deniz Dogan <deniz.a.m.dogan <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 16 Nov 2009 00:25:06 GMT) Full text and rfc822 format available.

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

From: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: cua-selection-mode with Caps Lock turned on selects region
Date: Mon, 16 Nov 2009 01:16:42 +0100
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug <at> gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

When I have cua-selection-mode turned on at the same time as Caps
Lock, Emacs starts selecting a region when I move point as if I were
holding shift.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/deniz/usr/share/emacs/23.1.50/etc/DEBUG for instructions.


In GNU Emacs 23.1.50.3 (i686-pc-linux-gnu, GTK+ Version 2.16.5)
 of 2009-08-23 on stalin
Windowing system distributor `The X.Org Foundation', version 11.0.10701000
configured using `configure  '--without-rsvg' '--without-tiff'
'--without-xpm' '--prefix=/home/deniz/usr''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  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_US.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: rcirc

Minor modes in effect:
  shell-dirtrack-mode: t
  rcirc-track-minor-mode: t
  global-auto-complete-mode: t
  cua-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  use-hard-newlines: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> C-t o C-a C-p
C-p C-p C-p C-p C-p C-p C-l C-l C-l C-l C-p C-p M-v
M-v M-v C-v C-s s h i f t C-s C-s C-s C-s C-s C-r C-r
C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r
C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r
C-r C-r C-s C-s <return> C-a C-n C-n C-n C-n C-n C-n
C-l C-n C-n C-n C-l C-p C-l C-n C-n C-n C-n C-l C-n
C-l C-n C-l C-n C-n C-n C-l C-p M-p M-p M-n M-n M-p
C-l C-l C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-p C-p C-p C-p C-p C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-t
o C-c C-SPC C-t C-n a n n a r s SPC d å SPC s t a r
<tab> <return> C-t o C-c C-SPC C-t C-n C-t k <return>
C-t o C-t o C-t o SPC v
a <backspace> <backspace> <return> C-t o C-t C-n C-t
C-n C-t C-n C-- C-l C-t C-n C-t o C-h c C-g C-h f M-x
r C-g M-x r e p o r t - b u f <tab> <backspace> <tab>
<return>

Recent messages:
uncompressing cua-base.el.gz...done
mouse-2, RET: find function's definition
Mark saved where search started
uncompressing crisp.el.gz...done
Quit
Searching for `todo'....
Quit
Mark saved where search started
C-g runs the command keyboard-quit
Quit [2 times]

Load-path shadows:
~/.emacs.d/newsticker/newst-ticker hides
/home/deniz/usr/share/emacs/23.1.50/lisp/net/newst-ticker
~/.emacs.d/newsticker/newst-reader hides
/home/deniz/usr/share/emacs/23.1.50/lisp/net/newst-reader
~/.emacs.d/newsticker/newsticker hides
/home/deniz/usr/share/emacs/23.1.50/lisp/net/newsticker
~/.emacs.d/newsticker/newst-plainview hides
/home/deniz/usr/share/emacs/23.1.50/lisp/net/newst-plainview
~/.emacs.d/newsticker/newst-backend hides
/home/deniz/usr/share/emacs/23.1.50/lisp/net/newst-backend
~/.emacs.d/newsticker/newst-treeview hides
/home/deniz/usr/share/emacs/23.1.50/lisp/net/newst-treeview



Added tag(s) unreproducible and moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 19 Nov 2009 22:15:04 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4931; Package emacs. (Wed, 21 Apr 2010 22:06:02 GMT) Full text and rfc822 format available.

Message #10 received at 4931 <at> debbugs.gnu.org (full text, mbox):

From: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
To: 4931 <at> debbugs.gnu.org
Date: Thu, 22 Apr 2010 00:05:22 +0200
To reproduce:

1. Turn on cua-selection-mode.
2. Turn on caps lock.
3. Move point and notice how a region is being selected.

Still can't reproduce it?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4931; Package emacs. (Thu, 22 Apr 2010 17:34:02 GMT) Full text and rfc822 format available.

Message #13 received at 4931 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
Cc: 4931 <at> debbugs.gnu.org
Subject: Re: bug#4931: cua-selection-mode with Caps Lock turned on selects
	region
Date: Thu, 22 Apr 2010 13:33:40 -0400
Deniz Dogan <deniz.a.m.dogan <at> gmail.com> writes:

> To reproduce:
>
> 1. Turn on cua-selection-mode.
> 2. Turn on caps lock.
> 3. Move point and notice how a region is being selected.
>
> Still can't reproduce it?

Nope (you didn't specify `emacs -Q', but I assume you've tested with
it).  Maybe you've done something wrong with your .Xmodmap, or your
keyboard is faulty.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4931; Package emacs. (Thu, 22 Apr 2010 20:13:02 GMT) Full text and rfc822 format available.

Message #16 received at 4931 <at> debbugs.gnu.org (full text, mbox):

From: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 4931 <at> debbugs.gnu.org
Subject: Re: bug#4931: cua-selection-mode with Caps Lock turned on selects 
	region
Date: Thu, 22 Apr 2010 22:12:11 +0200
2010/4/22 Chong Yidong <cyd <at> stupidchicken.com>:
> Deniz Dogan <deniz.a.m.dogan <at> gmail.com> writes:
>
>> To reproduce:
>>
>> 1. Turn on cua-selection-mode.
>> 2. Turn on caps lock.
>> 3. Move point and notice how a region is being selected.
>>
>> Still can't reproduce it?
>
> Nope (you didn't specify `emacs -Q', but I assume you've tested with
> it).  Maybe you've done something wrong with your .Xmodmap, or your
> keyboard is faulty.
>

It seems that when using the arrow keys to move point, no region
becomes selected. When using next-line and previous-line for example,
the region does become selected.

I'm using an Emacs build with no special configuration on Arch Linux
if that matters.

-- 
Deniz Dogan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4931; Package emacs. (Thu, 03 Mar 2011 07:37:02 GMT) Full text and rfc822 format available.

Message #19 received at 4931 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
Cc: 4931 <at> debbugs.gnu.org
Subject: Re: bug#4931: cua-selection-mode with Caps Lock turned on selects
	region
Date: Thu, 03 Mar 2011 02:36:41 -0500
Are you using KDE?

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7637




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4931; Package emacs. (Thu, 03 Mar 2011 07:55:02 GMT) Full text and rfc822 format available.

Message #22 received at 4931 <at> debbugs.gnu.org (full text, mbox):

From: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 4931 <at> debbugs.gnu.org
Subject: Re: bug#4931: cua-selection-mode with Caps Lock turned on selects
	region
Date: Thu, 3 Mar 2011 08:54:33 +0100
2011/3/3 Glenn Morris <rgm <at> gnu.org>:
>
> Are you using KDE?
>
> See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7637
>

I was not using KDE at the time. I was using XMonad without a DE.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4931; Package emacs. (Sun, 05 Jun 2016 02:52:02 GMT) Full text and rfc822 format available.

Message #25 received at 4931 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 4931 <at> debbugs.gnu.org
Cc: David De La Harpe Golden <david <at> harpegolden.net>,
 Mitja Uršič <odtihmal <at> gmail.com>,
 Vincent Lefevre <vincent <at> vinc17.net>, Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
Subject: Re: bug#4931: cua-selection-mode with Caps Lock turned on selects
 region
Date: Sat, 4 Jun 2016 22:51:18 -0400
merge 4931 7637 17781
severity 4931 minor
quit

I see this too (Arch Linux, i3wm, no keyboard customizations that I
know of). I see characters being translated to upper case in xev as
well.

In GNU Emacs 25.0.94.6 (x86_64-unknown-linux-gnu, X toolkit)
 of 2016-06-04 built on zony
Repository revision: 7eb3bd56d0f0410d5053ee01f4b458d868682df6
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
Configured using:
 'configure --cache-file=../debug-config.cache 'CFLAGS=-Og -g3
 -march=native' --enable-checking --with-x-toolkit=lucid
 --without-toolkit-scroll-bars --with-gif=no --with-jpeg=no'

KeyPress event, serial 30, synthetic NO, window 0x1c00001,
    root 0x95, subw 0x0, time 565199223, (-125,284), root:(679,322),
    state 0x0, keycode 53 (keysym 0x78, x), same_screen YES,
    XLookupString gives 1 bytes: (78) "x"
    XmbLookupString gives 1 bytes: (78) "x"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1c00001,
    root 0x95, subw 0x0, time 565199335, (-125,284), root:(679,322),
    state 0x0, keycode 53 (keysym 0x78, x), same_screen YES,
    XLookupString gives 1 bytes: (78) "x"
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x1c00001,
    root 0x95, subw 0x0, time 565201384, (-125,284), root:(679,322),
    state 0x0, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1c00001,
    root 0x95, subw 0x0, time 565201449, (-125,284), root:(679,322),
    state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x1c00001,
    root 0x95, subw 0x0, time 565202637, (-125,284), root:(679,322),
    state 0x2, keycode 53 (keysym 0x58, X), same_screen YES,
    XLookupString gives 1 bytes: (58) "X"
    XmbLookupString gives 1 bytes: (58) "X"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1c00001,
    root 0x95, subw 0x0, time 565202715, (-125,284), root:(679,322),
    state 0x2, keycode 53 (keysym 0x58, X), same_screen YES,
    XLookupString gives 1 bytes: (58) "X"
    XFilterEvent returns: False

~$ setxkbmap -query -v
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(evdev)
geometry:   pc(pc105)
rules:      evdev
model:      pc105
layout:     us




Merged 4931 7637 17781. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sun, 05 Jun 2016 02:52:02 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sun, 05 Jun 2016 02:52:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4931; Package emacs. (Sun, 05 Jun 2016 08:11:02 GMT) Full text and rfc822 format available.

Message #32 received at 4931 <at> debbugs.gnu.org (full text, mbox):

From: Vincent Lefevre <vincent <at> vinc17.net>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: David De La Harpe Golden <david <at> harpegolden.net>,
 Mitja Uršič <odtihmal <at> gmail.com>, 4931 <at> debbugs.gnu.org,
 Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
Subject: Re: bug#4931: cua-selection-mode with Caps Lock turned on selects
 region
Date: Sun, 5 Jun 2016 10:10:44 +0200
On 2016-06-04 22:51:18 -0400, Noam Postavsky wrote:
> I see this too (Arch Linux, i3wm, no keyboard customizations that I
> know of). I see characters being translated to upper case in xev as
> well.

What matters for Control + letters is the state.
  1 = Shift
  2 = Caps_Lock

With Control (4), this will give 5 and 6 respectively.

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Forcibly Merged 4931 7637 17781 24456. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 18 Sep 2016 14:05:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Nov 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 277 days ago.

Previous Next


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