unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* keybinding with shift key syntax. C-S-n vs C-N
@ 2008-09-15  9:59 Xah
  2008-09-15 19:44 ` Oleksandr Gavenko
  0 siblings, 1 reply; 5+ messages in thread
From: Xah @ 2008-09-15  9:59 UTC (permalink / raw)
  To: help-gnu-emacs

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/^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-17 22:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-15  9:59 keybinding with shift key syntax. C-S-n vs C-N Xah
2008-09-15 19:44 ` Oleksandr Gavenko
2008-09-16 19:35   ` Xah
2008-09-17 15:52     ` B. T. Raven
2008-09-17 22:51     ` Xah

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