unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ctrl:nocaps enables mark set?
@ 2008-09-02 15:23 Aleix Conchillo Flaqué
  2008-09-02 16:13 ` Andreas Schwab
  2008-09-02 16:18 ` Chong Yidong
  0 siblings, 2 replies; 10+ messages in thread
From: Aleix Conchillo Flaqué @ 2008-09-02 15:23 UTC (permalink / raw)
  To: emacs-devel

Hi,

with the latest emacs cvs versions (over the last two weeks) when I
use C-n or C-p (C=Caps lock) the "Mark is set". It does not happen
when I press the normal Ctrl key.

I have tried it with "emacs -q". My box is Debian GNU/Linux testing. I
am using GNOME, but the same happens with Openbox.

Emacs CVS from 2008-08-29 (23.0.60.1).

Configure command:

./configure --prefix=/home/aleix/bin/emacs/2008-08-29
--with-x-toolkit=gtk --with-xft --with-xpm --with-jpeg --with-tiff
--with-png --with-rsvg

Is there anything I can do to provide you more information? Or some
test I could perform?

Thanks in advance,

Aleix




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

* Re: ctrl:nocaps enables mark set?
  2008-09-02 15:23 ctrl:nocaps enables mark set? Aleix Conchillo Flaqué
@ 2008-09-02 16:13 ` Andreas Schwab
  2008-09-02 16:19   ` Aleix Conchillo Flaqué
  2008-09-02 16:18 ` Chong Yidong
  1 sibling, 1 reply; 10+ messages in thread
From: Andreas Schwab @ 2008-09-02 16:13 UTC (permalink / raw)
  To: Aleix Conchillo Flaqué; +Cc: emacs-devel

"Aleix Conchillo Flaqué" <aleix@member.fsf.org> writes:

> Is there anything I can do to provide you more information? Or some
> test I could perform?

What does xev say when you press/release the CapsLock-as-Ctrl key?

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

* Re: ctrl:nocaps enables mark set?
  2008-09-02 15:23 ctrl:nocaps enables mark set? Aleix Conchillo Flaqué
  2008-09-02 16:13 ` Andreas Schwab
@ 2008-09-02 16:18 ` Chong Yidong
  2008-09-02 16:22   ` Aleix Conchillo Flaqué
  1 sibling, 1 reply; 10+ messages in thread
From: Chong Yidong @ 2008-09-02 16:18 UTC (permalink / raw)
  To: Aleix Conchillo Flaqué; +Cc: emacs-devel

"Aleix Conchillo Flaqué" <aleix@member.fsf.org> writes:

> with the latest emacs cvs versions (over the last two weeks) when I
> use C-n or C-p (C=Caps lock) the "Mark is set". It does not happen
> when I press the normal Ctrl key.
>
> I have tried it with "emacs -q". My box is Debian GNU/Linux testing. I
> am using GNOME, but the same happens with Openbox.

Check xev; this may be a misconfigured Xmodmap.  Does your caps lock key
issue a shift modifier, in addition to a control modifier?




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

* Re: ctrl:nocaps enables mark set?
  2008-09-02 16:13 ` Andreas Schwab
@ 2008-09-02 16:19   ` Aleix Conchillo Flaqué
  2008-09-02 18:54     ` Andreas Schwab
  0 siblings, 1 reply; 10+ messages in thread
From: Aleix Conchillo Flaqué @ 2008-09-02 16:19 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

On Tue, Sep 2, 2008 at 6:13 PM, Andreas Schwab <schwab@suse.de> wrote:
> "Aleix Conchillo Flaqué" <aleix@member.fsf.org> writes:
>
>> Is there anything I can do to provide you more information? Or some
>> test I could perform?
>
> What does xev say when you press/release the CapsLock-as-Ctrl key?
>

For the CapsLock:

KeyPress event, serial 33, synthetic NO, window 0x3600001,
    root 0x8b, subw 0x0, time 82422639, (109,-9), root:(113,36),
    state 0x0, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
    XKeysymToKeycode returns keycode: 37
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3600001,
    root 0x8b, subw 0x0, time 82422761, (109,-9), root:(113,36),
    state 0x6, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
    XKeysymToKeycode returns keycode: 37
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

For the normal Ctrl key:

KeyPress event, serial 33, synthetic NO, window 0x3600001,
    root 0x8b, subw 0x0, time 82373457, (72,-12), root:(76,33),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3600001,
    root 0x8b, subw 0x0, time 82373612, (72,-12), root:(76,33),
    state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

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

* Re: ctrl:nocaps enables mark set?
  2008-09-02 16:18 ` Chong Yidong
@ 2008-09-02 16:22   ` Aleix Conchillo Flaqué
  0 siblings, 0 replies; 10+ messages in thread
From: Aleix Conchillo Flaqué @ 2008-09-02 16:22 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

On Tue, Sep 2, 2008 at 6:18 PM, Chong Yidong <cyd@stupidchicken.com> wrote:
>
> Check xev; this may be a misconfigured Xmodmap.  Does your caps lock key
> issue a shift modifier, in addition to a control modifier?
>

As far as I know, no.

With Openbox I did not load any Xmodmap file. And the only one I
normally use is:

$ cat .xmodmap
clear mod1
clear mod4
keycode 0x73 = Alt_L
keycode 0x40 = Meta_L
add mod4 = Alt_L
add mod1 = Meta_L




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

* Re: ctrl:nocaps enables mark set?
  2008-09-02 16:19   ` Aleix Conchillo Flaqué
@ 2008-09-02 18:54     ` Andreas Schwab
  2008-09-02 19:47       ` Aleix Conchillo Flaqué
  2008-09-03 12:55       ` Aleix Conchillo Flaqué
  0 siblings, 2 replies; 10+ messages in thread
From: Andreas Schwab @ 2008-09-02 18:54 UTC (permalink / raw)
  To: Aleix Conchillo Flaqué; +Cc: emacs-devel

"Aleix Conchillo Flaqué" <aleix@member.fsf.org> writes:

> KeyRelease event, serial 33, synthetic NO, window 0x3600001,
>     root 0x8b, subw 0x0, time 82422761, (109,-9), root:(113,36),
>     state 0x6, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
            ^^^

This is bad.  You have keycode 66 on both the control and lock modifier
list.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

* Re: ctrl:nocaps enables mark set?
  2008-09-02 18:54     ` Andreas Schwab
@ 2008-09-02 19:47       ` Aleix Conchillo Flaqué
  2008-09-03 12:55       ` Aleix Conchillo Flaqué
  1 sibling, 0 replies; 10+ messages in thread
From: Aleix Conchillo Flaqué @ 2008-09-02 19:47 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

On Tue, Sep 2, 2008 at 20:54, Andreas Schwab <schwab@suse.de> wrote:
>
>> KeyRelease event, serial 33, synthetic NO, window 0x3600001,
>>     root 0x8b, subw 0x0, time 82422761, (109,-9), root:(113,36),
>>     state 0x6, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
>            ^^^
>
> This is bad.  You have keycode 66 on both the control and lock modifier
> list.
>

Any idea what can cause that? Or where can I ask?

Aleix




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

* Re: ctrl:nocaps enables mark set?
  2008-09-02 18:54     ` Andreas Schwab
  2008-09-02 19:47       ` Aleix Conchillo Flaqué
@ 2008-09-03 12:55       ` Aleix Conchillo Flaqué
  2008-09-03 14:03         ` Stephen J. Turnbull
  1 sibling, 1 reply; 10+ messages in thread
From: Aleix Conchillo Flaqué @ 2008-09-03 12:55 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

On Tue, Sep 2, 2008 at 20:54, Andreas Schwab <schwab@suse.de> wrote:
> "Aleix Conchillo Flaqué" <aleix@member.fsf.org> writes:
>
>> KeyRelease event, serial 33, synthetic NO, window 0x3600001,
>>     root 0x8b, subw 0x0, time 82422761, (109,-9), root:(113,36),
>>     state 0x6, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
>            ^^^
>
> This is bad.  You have keycode 66 on both the control and lock modifier
> list.
>

I have reviewed my email and capslock has keycode 66 and ctrl has
keycode 37 both producing Control_L.

Maybe you confused the press and release parts...

Aleix

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

* Re: ctrl:nocaps enables mark set?
  2008-09-03 12:55       ` Aleix Conchillo Flaqué
@ 2008-09-03 14:03         ` Stephen J. Turnbull
  2008-09-03 14:09           ` Aleix Conchillo Flaqué
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen J. Turnbull @ 2008-09-03 14:03 UTC (permalink / raw)
  To: Aleix Conchillo Flaqué; +Cc: Andreas Schwab, emacs-devel

Aleix Conchillo Flaqué writes:
 > On Tue, Sep 2, 2008 at 20:54, Andreas Schwab <schwab@suse.de> wrote:
 > > "Aleix Conchillo Flaqué" <aleix@member.fsf.org> writes:
 > >
 > >> KeyRelease event, serial 33, synthetic NO, window 0x3600001,
 > >>     root 0x8b, subw 0x0, time 82422761, (109,-9), root:(113,36),
 > >>     state 0x6, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
 > >            ^^^
 > >
 > > This is bad.  You have keycode 66 on both the control and lock modifier
 > > list.
 > >
 > 
 > I have reviewed my email and capslock has keycode 66 and ctrl has
 > keycode 37 both producing Control_L.

True.

The problem is that there is also a feature of the X server that it
maintains up/down state for certain keys because it is so common to
check for chords with those keys.  Specifically, the modifier keys.
As Andreas points out, your keycode 66 is in the list of modifiers as
BOTH a shiftlock key and a control key.  You need to fix the modifier
list, not the keysym definition, of the key corresponding to 66.

In-hopes-of-avoiding-flame-from-Andreas-who-really-knows-his-stuff-ly y'rs




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

* Re: ctrl:nocaps enables mark set?
  2008-09-03 14:03         ` Stephen J. Turnbull
@ 2008-09-03 14:09           ` Aleix Conchillo Flaqué
  0 siblings, 0 replies; 10+ messages in thread
From: Aleix Conchillo Flaqué @ 2008-09-03 14:09 UTC (permalink / raw)
  To: Stephen J. Turnbull; +Cc: Andreas Schwab, emacs-devel

On Wed, Sep 3, 2008 at 16:03, Stephen J. Turnbull <stephen@xemacs.org> wrote:
>  >
>  > I have reviewed my email and capslock has keycode 66 and ctrl has
>  > keycode 37 both producing Control_L.
>
> True.
>
> The problem is that there is also a feature of the X server that it
> maintains up/down state for certain keys because it is so common to
> check for chords with those keys.  Specifically, the modifier keys.
> As Andreas points out, your keycode 66 is in the list of modifiers as
> BOTH a shiftlock key and a control key.  You need to fix the modifier
> list, not the keysym definition, of the key corresponding to 66.
>
> In-hopes-of-avoiding-flame-from-Andreas-who-really-knows-his-stuff-ly y'rs
>

OK, got it now. Sorry, I get a bit lost when talking about modifiers,
keycodes, keysyms... :-(

Aleix




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

end of thread, other threads:[~2008-09-03 14:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 15:23 ctrl:nocaps enables mark set? Aleix Conchillo Flaqué
2008-09-02 16:13 ` Andreas Schwab
2008-09-02 16:19   ` Aleix Conchillo Flaqué
2008-09-02 18:54     ` Andreas Schwab
2008-09-02 19:47       ` Aleix Conchillo Flaqué
2008-09-03 12:55       ` Aleix Conchillo Flaqué
2008-09-03 14:03         ` Stephen J. Turnbull
2008-09-03 14:09           ` Aleix Conchillo Flaqué
2008-09-02 16:18 ` Chong Yidong
2008-09-02 16:22   ` Aleix Conchillo Flaqué

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