* bug#966: marked as done (keybinding involving Ctrl and Shift and letter)
2008-09-12 3:46 ` bug#966: keybinding involving Ctrl and Shift and letter xah lee
@ 2008-09-17 20:10 ` Emacs bug Tracking System
0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2008-09-17 20:10 UTC (permalink / raw)
To: Chong Yidong
[-- Attachment #1: Type: text/plain, Size: 847 bytes --]
Your message dated Wed, 17 Sep 2008 16:08:31 -0400
with message-id <87hc8eilhc.fsf@cyd.mit.edu>
and subject line keybinding involving Ctrl and Shift and letter
has caused the Emacs bug report #966,
regarding keybinding involving Ctrl and Shift and letter
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.)
--
966: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=966
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
[-- Attachment #2: Type: message/rfc822, Size: 3442 bytes --]
From: xah lee <xah@xahlee.org>
To: bug-gnu-emacs@gnu.org
Subject: keybinding involving Ctrl and Shift and letter
Date: Thu, 11 Sep 2008 20:46:22 -0700
Message-ID: <6194437C-110E-411F-8CC0-E9FF529C5C6D@xahlee.org>
This seems to be a bug.
i'm trying to set keybindings for both Ctrl+n and Ctrl+Shift+n, by:
(global-set-key (kbd "C-N") 'f1)
(global-set-key (kbd "C-n") 'f2)
however, that doesn't work.
Emacs will take both Ctrl+Shift+n and Ctrl+Shift+n to be whichever is
evaluated last. In this case, f2.
But the following works:
(global-set-key (kbd "C-S-n") 'f1)
(global-set-key (kbd "C-n") 'f2)
This seems to contradict with Meta's ways. That is (kbd "M-N") works
but not (kbd "M-S-n").
Xah
∑ http://xahlee.org/
☄
In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0)
of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp
Windowing system distributor `Apple Inc.', version 10.4.11
configured using `configure '--prefix=/Applications/Emacs.app/
Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=/
Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=-Os -arch
i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI -
DUSE_MAC_TSM''
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: nil
locale-coding-system: iso-8859-1
default-enable-multibyte-characters: t
☄
[-- Attachment #3: Type: message/rfc822, Size: 1766 bytes --]
From: Chong Yidong <cyd@stupidchicken.com>
To: xah lee <xah@xahlee.org>
Cc: 966-done@emacsbugs.donarmstrong.com
Subject: keybinding involving Ctrl and Shift and letter
Date: Wed, 17 Sep 2008 16:08:31 -0400
Message-ID: <87hc8eilhc.fsf@cyd.mit.edu>
> i'm trying to set keybindings for both Ctrl+n and Ctrl+Shift+n, by:
>
> (global-set-key (kbd "C-N") 'f1)
> (global-set-key (kbd "C-n") 'f2)
>
> however, that doesn't work.
> Emacs will take both Ctrl+Shift+n and Ctrl+Shift+n to be whichever is
> evaluated last. In this case, f2.
>
> But the following works:
>
> (global-set-key (kbd "C-S-n") 'f1)
> (global-set-key (kbd "C-n") 'f2)
>
> This seems to contradict with Meta's ways.
This is a legacy of ASCII. Taking a look at an ASCII chart, you'll see
that ^A (control-a) through ^Z (control-z) map to ASCII codes 1 through
26, and these control keys are not case sensitive: control-a is
equivalent to control-A.
Emacs extends ASCII, which allows us to define things like C-] which are
not present in ASCII. However, (kbd "C-N") and (kbd "C-n") still both
evaluate to ^N.
^ permalink raw reply [flat|nested] 2+ messages in thread