[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
keybinding with shift key syntax. C-S-n vs C-N
From: |
Xah |
Subject: |
keybinding with shift key syntax. C-S-n vs C-N |
Date: |
Mon, 15 Sep 2008 02:59:37 -0700 (PDT) |
User-agent: |
G2/1.0 |
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").
I filed a bug but no response. Can anyone reproduce this?
Xah
∑ http://xahlee.org/
☄
- keybinding with shift key syntax. C-S-n vs C-N,
Xah <=