unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
       [not found]   ` <AANLkTik=0zhp8My32xuSz3qMmKBcobR8rpQP5xQn7EUT@mail.gmail.com>
@ 2010-12-20 15:32     ` Chong Yidong
  2010-12-20 17:11       ` Marco Pessotto
  2010-12-20 21:39       ` David De La Harpe Golden
  0 siblings, 2 replies; 8+ messages in thread
From: Chong Yidong @ 2010-12-20 15:32 UTC (permalink / raw)
  To: emacs-devel; +Cc: 7637

A user has reported that under a certain KDE setting, Caps Lock breaks
Emacs by making every motion key a shift-motion key, thus breaking the
shift-selection feature.  Does anyone have KDE installed to test this?


Mitja Uršič <odtihmal@gmail.com> writes:

> I'm using it in Debian Lenny with KDE.
> I do have Caps Lock and Control swapped by kcontrol, though.
>
>  > Turning on caps lock also turns on set-mark-command.
>  > All C- and M- moving commands from then on mark text
>  > into a region.
>  > This does not apply for the four arrow keys.
>  >
>  > To reproduce:
>  > 1) Write some text.
>  > 2) Set caps lock to on.
>  > 3) Move around the text with C-p, C-n, M-b, M-f and other
>  > C- and M- keys for moving point.
>  >
>  > Region is now marked despite that no C-<SPC> was pressed
>  > or otherwise set-mark-command invoked.



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

* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
  2010-12-20 15:32     ` bug#7637: 24.0.50; Caps Lock triggers set-mark-command Chong Yidong
@ 2010-12-20 17:11       ` Marco Pessotto
  2010-12-20 21:51         ` David De La Harpe Golden
  2010-12-20 21:39       ` David De La Harpe Golden
  1 sibling, 1 reply; 8+ messages in thread
From: Marco Pessotto @ 2010-12-20 17:11 UTC (permalink / raw)
  To: emacs-devel

Chong Yidong <cyd@stupidchicken.com> writes:

> A user has reported that under a certain KDE setting, Caps Lock breaks
> Emacs by making every motion key a shift-motion key, thus breaking the
> shift-selection feature.  Does anyone have KDE installed to test this?
>

For what is worth, I'm _not_ running KDE but I experience the same
behaviour all the time. I'm available to give you as much feedback as
possible (even if I truly don't know where to start: Xorg settings?
.Xdefault? Windows system?). It's just an italian keyboard layout with
"default" settings. While running emacs in a terminal this doesn't
happen.

GNU Emacs 23.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2010-11-03 on potassium, modified by Debian

Bests

-- 
Marco




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

* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
  2010-12-20 15:32     ` bug#7637: 24.0.50; Caps Lock triggers set-mark-command Chong Yidong
  2010-12-20 17:11       ` Marco Pessotto
@ 2010-12-20 21:39       ` David De La Harpe Golden
  2012-04-18  8:01         ` Karl Ljungkvist
  1 sibling, 1 reply; 8+ messages in thread
From: David De La Harpe Golden @ 2010-12-20 21:39 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 7637, emacs-devel

On 20/12/10 15:32, Chong Yidong wrote:
> A user has reported that under a certain KDE setting, Caps Lock breaks
> Emacs by making every motion key a shift-motion key, thus breaking the
> shift-selection feature.  Does anyone have KDE installed to test this?
>

Certainly KDE has:
System Settings -> Personal -> Regional & Language
-> Keyboard Layout -> Advanced
-> CapsLock key behaviour
-> CapsLock toggles Shift so all keys are affected

(and a bunch of other options)

i.e. It makes the caps lock key a true "shift lock", but it works "as 
intended" AFAICS - cursor keys will in effect be shifted (and therefore 
sweep out selections) when the shiftlock is on, and not when the 
shiftlock is off. (tested). On my machine, when active, both the caps 
lock and scroll lock LEDs are lit when the "shift lock" is activated.

It's essentially equivalent to something you can do on the command line 
with setxkbmap, in fact the settings dialog prints the command line it's 
using at the bottom e.g.
setxkbmap -option caps:shiftlock

My understanding is that it's a chording-avoidance accessibility 
feature, and there's little emacs can or should do about it. KDE Kate 
and other X11 apps are affected in the same way as emacs, unsurprisingly.

If you want normal caps lock behaviour, i.e. letters are capitalised but 
other stuff isn't shifted, then, er, leave it as a caps lock, not a 
shift lock.




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

* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
  2010-12-20 17:11       ` Marco Pessotto
@ 2010-12-20 21:51         ` David De La Harpe Golden
  2010-12-20 22:40           ` Marco Pessotto
  0 siblings, 1 reply; 8+ messages in thread
From: David De La Harpe Golden @ 2010-12-20 21:51 UTC (permalink / raw)
  To: Marco Pessotto; +Cc: emacs-devel

On 20/12/10 17:11, Marco Pessotto wrote:

> For what is worth, I'm _not_ running KDE but I experience the same
> behaviour all the time. I'm available to give you as much feedback as
> possible (even if I truly don't know where to start: Xorg settings?
> .Xdefault? Windows system?). It's just an italian keyboard layout with
> "default" settings.

What does

setxkbmap -v

say?





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

* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
  2010-12-20 21:51         ` David De La Harpe Golden
@ 2010-12-20 22:40           ` Marco Pessotto
  2010-12-21  0:09             ` David De La Harpe Golden
  0 siblings, 1 reply; 8+ messages in thread
From: Marco Pessotto @ 2010-12-20 22:40 UTC (permalink / raw)
  To: David De La Harpe Golden; +Cc: emacs-devel


setxkbmap -v
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+it+inet(evdev)+terminate(ctrl_alt_bksp)
geometry:   pc(pc105)

-- 
Marco



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

* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
  2010-12-20 22:40           ` Marco Pessotto
@ 2010-12-21  0:09             ` David De La Harpe Golden
  2010-12-21  8:50               ` Marco Pessotto
  0 siblings, 1 reply; 8+ messages in thread
From: David De La Harpe Golden @ 2010-12-21  0:09 UTC (permalink / raw)
  To: Marco Pessotto; +Cc: emacs-devel

On 20/12/10 22:40, Marco Pessotto wrote:
>
> setxkbmap -v
> Trying to build keymap using the following components:
> keycodes:   evdev+aliases(qwerty)
> types:      complete
> compat:     complete
> symbols:    pc+it+inet(evdev)+terminate(ctrl_alt_bksp)
> geometry:   pc(pc105)
>

Hmm. I was expecting a "capslock(shiftlock)" to have crept in somehow, 
but apparently not.  I can't replicate an issue switching to an italian 
layout on my system, either (though I'm on debian/unstable).

Er. Is this happening in other X11 apps or just emacs?







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

* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
  2010-12-21  0:09             ` David De La Harpe Golden
@ 2010-12-21  8:50               ` Marco Pessotto
  0 siblings, 0 replies; 8+ messages in thread
From: Marco Pessotto @ 2010-12-21  8:50 UTC (permalink / raw)
  To: David De La Harpe Golden; +Cc: emacs-devel

David De La Harpe Golden <david@harpegolden.net> writes:

> On 20/12/10 22:40, Marco Pessotto wrote:
>>
>> setxkbmap -v
>> Trying to build keymap using the following components:
>> keycodes:   evdev+aliases(qwerty)
>> types:      complete
>> compat:     complete
>> symbols:    pc+it+inet(evdev)+terminate(ctrl_alt_bksp)
>> geometry:   pc(pc105)
>>
>
> Hmm. I was expecting a "capslock(shiftlock)" to have crept in somehow,
> but apparently not.  I can't replicate an issue switching to an
> italian layout on my system, either (though I'm on debian/unstable).
>
> Er. Is this happening in other X11 apps or just emacs?
>

I've tried with scite. shift+arrows hilight the region, capslock+arrows
only moves the cursor. Same with firefox & thunderbird. So it's look
like it's only emacs. It happens even with emacs -Q, so it's not likely
a .emacs issue.

-- 
Marco



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

* Re: bug#7637: 24.0.50; Caps Lock triggers set-mark-command
  2010-12-20 21:39       ` David De La Harpe Golden
@ 2012-04-18  8:01         ` Karl Ljungkvist
  0 siblings, 0 replies; 8+ messages in thread
From: Karl Ljungkvist @ 2012-04-18  8:01 UTC (permalink / raw)
  To: emacs-devel

David De La Harpe Golden <david <at> harpegolden.net> writes:

> 
> On 20/12/10 15:32, Chong Yidong wrote:
> > A user has reported that under a certain KDE setting, Caps Lock breaks
> > Emacs by making every motion key a shift-motion key, thus breaking the
> > shift-selection feature.  Does anyone have KDE installed to test this?
> >
> 
> Certainly KDE has:
> System Settings -> Personal -> Regional & Language
> -> Keyboard Layout -> Advanced
> -> CapsLock key behaviour
> -> CapsLock toggles Shift so all keys are affected
> 
> (and a bunch of other options)
> 
> i.e. It makes the caps lock key a true "shift lock", but it works "as 
> intended" AFAICS - cursor keys will in effect be shifted (and therefore 
> sweep out selections) when the shiftlock is on, and not when the 
> shiftlock is off. (tested). On my machine, when active, both the caps 
> lock and scroll lock LEDs are lit when the "shift lock" is activated.
> 
> It's essentially equivalent to something you can do on the command line 
> with setxkbmap, in fact the settings dialog prints the command line it's 
> using at the bottom e.g.
> setxkbmap -option caps:shiftlock
> 
> My understanding is that it's a chording-avoidance accessibility 
> feature, and there's little emacs can or should do about it. KDE Kate 
> and other X11 apps are affected in the same way as emacs, unsurprisingly.
> 
> If you want normal caps lock behaviour, i.e. letters are capitalised but 
> other stuff isn't shifted, then, er, leave it as a caps lock, not a 
> shift lock.
> 
> 

I'm also experiencing this problem on Ubuntu 12.04 using Gnome and Xmonad. As
far as I can remember, this configurations has had this behavior for at least
three years. I just checked, and it is not related to the shiftlock. There is an
option in the gnome keyboard layout settings and it's *off*.

So far I've fixed this using a number of set-key's:

(global-set-key (kbd "C-S-p") 'previous-line)
(global-set-key (kbd "C-S-n") 'next-line)
(global-set-key (kbd "C-S-f") 'forward-char)
(global-set-key (kbd "C-S-b") 'backward-char)
etc.

This seems to work, but it's ugly and I don't think the original behavior was
intended. I would be very happy to see a fix of this.






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

end of thread, other threads:[~2012-04-18  8:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AANLkTi=KVaJm7QzPDsLeViKdfGVFamZpXyoSF7LWxR08@mail.gmail.com>
     [not found] ` <87zks6bg1c.fsf@stupidchicken.com>
     [not found]   ` <AANLkTik=0zhp8My32xuSz3qMmKBcobR8rpQP5xQn7EUT@mail.gmail.com>
2010-12-20 15:32     ` bug#7637: 24.0.50; Caps Lock triggers set-mark-command Chong Yidong
2010-12-20 17:11       ` Marco Pessotto
2010-12-20 21:51         ` David De La Harpe Golden
2010-12-20 22:40           ` Marco Pessotto
2010-12-21  0:09             ` David De La Harpe Golden
2010-12-21  8:50               ` Marco Pessotto
2010-12-20 21:39       ` David De La Harpe Golden
2012-04-18  8:01         ` Karl Ljungkvist

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