From: Walker Pendleton <wpendleton@kitinteractive.com>
Subject: Re: "translated from" keystrokes
Date: Thu, 16 Sep 2004 10:34:11 -0700 [thread overview]
Message-ID: <yd23c1irucs.fsf@ayame.internal> (raw)
In-Reply-To: mailman.3011.1095353729.1998.help-gnu-emacs@gnu.org
On 16 Sep 2004, J. David Boyd wrote:
> When I C-h k C-S-w, I get this message:
>
> C-w (translated from C-S-w) runs the command kill-region
>
> I looked through the emacs docs, and it says that key translations
> are explained in the elisp manual, and I've read through that, but
> probably not enough, as I still don't know how to break this
> translation, so I can assign a function to C-S-w.
>
> Now, I can put the following text into my scratch buffer
> (global-set-key [control shift w] 'emacs-uptime) and evaluate it
> with C-x C-e, and the mode line says emacs-uptime.
Try using "kbd" in your call to global-set-key. I find it's syntax
much easier to figure out than trying to give emacs the `canonical
name' of a particular key sequence.
,----
| (global-set-key (kbd "C-S-w") 'emacs-uptime)
`----
> Still, C-h k C-S-w reports kill-region. Actually, C-h k shows that
> it is reporting on C-w, so the key translation must be happening at
> a very low level.
The translation only happens if there's no C-S-w binding.
next parent reply other threads:[~2004-09-16 17:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3011.1095353729.1998.help-gnu-emacs@gnu.org>
2004-09-16 17:34 ` Walker Pendleton [this message]
2004-09-16 19:31 ` "translated from" keystrokes J. David Boyd
2004-09-16 16:48 J. David Boyd
2004-09-25 20:51 ` Kai Grossjohann
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=yd23c1irucs.fsf@ayame.internal \
--to=wpendleton@kitinteractive.com \
/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).