* Is something wrong with `kbd'?
@ 2010-02-09 19:10 Deniz Dogan
2010-02-09 20:16 ` Davis Herring
0 siblings, 1 reply; 2+ messages in thread
From: Deniz Dogan @ 2010-02-09 19:10 UTC (permalink / raw
To: Emacs-Devel devel
One user in #emacs on Freenode just stumbled across something that
looks like a bug to me.
(global-set-key (kbd "C-TAB") 'mode-line-other-buffer)
Using that and then hitting C-TAB gives me "<C-tab> is undefined".
From the documentation for `edmacro-mode':
* The special words RET, SPC, TAB, DEL, LFD, ESC, and NUL represent
special control characters. The words must be written in uppercase.
* One or more prefixes M- (meta), C- (control), S- (shift), A- (alt), ...
What's going on here?
(kbd "C-TAB") returns [67108873], whatever that's supposed to be.
(kbd "<C-tab>") returns [C-tab].
--
Deniz Dogan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is something wrong with `kbd'?
2010-02-09 19:10 Is something wrong with `kbd'? Deniz Dogan
@ 2010-02-09 20:16 ` Davis Herring
0 siblings, 0 replies; 2+ messages in thread
From: Davis Herring @ 2010-02-09 20:16 UTC (permalink / raw
To: Deniz Dogan; +Cc: Emacs-Devel
> (kbd "C-TAB") returns [67108873], whatever that's supposed to be.
TAB is (the number) C-i, which can't have Control re-applied in the usual
sense, so it gets the 0x4000000 bit set (that's 0x4000009).
> (kbd "<C-tab>") returns [C-tab].
`function-key-map' and friends don't have a translation for this symbol,
perhaps because it's not something you can type on a terminal. So you
can't bind it as a character, only as a symbol.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-09 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 19:10 Is something wrong with `kbd'? Deniz Dogan
2010-02-09 20:16 ` Davis Herring
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.