From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: keybinding with shift key syntax. C-S-n vs C-N
Date: Mon, 15 Sep 2008 02:59:37 -0700 (PDT) [thread overview]
Message-ID: <e0479fe3-0c8a-45c4-b99f-743878b02347@z6g2000pre.googlegroups.com> (raw)
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/
☄
next reply other threads:[~2008-09-15 9:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-15 9:59 Xah [this message]
2008-09-15 19:44 ` keybinding with shift key syntax. C-S-n vs C-N Oleksandr Gavenko
2008-09-16 19:35 ` Xah
2008-09-17 15:52 ` B. T. Raven
2008-09-17 22:51 ` Xah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0479fe3-0c8a-45c4-b99f-743878b02347@z6g2000pre.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).