GNU bug report logs - #11011
kbd and TAB with modifiers (eg S-TAB)

Previous Next

Package: emacs;

Reported by: Antoine Levitt <antoine.levitt <at> gmail.com>

Date: Wed, 14 Mar 2012 07:44:01 UTC

Severity: normal

Tags: confirmed, notabug

Found in version 28.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Forwarded to http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00037.html

Full log


Message #31 received at 11011 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Stefan Kangas <stefan <at> marxist.se>
Cc: 11011 <at> debbugs.gnu.org, antoine.levitt <at> gmail.com
Subject: RE: bug#11011: Binding S-TAB
Date: Thu, 20 Aug 2020 13:16:04 -0700 (PDT)
> > 0. emacs -Q
> > 1. (global-set-key (kbd "S-TAB") (lambda () (message "FOO")))
> > 2. S-TAB
> >
> > And see the following error: "<backtab> is undefined"
> 
> You say "S-TAB", but that's not the key you pressed.  You pressed
> <backtab>, a function key, whereas S-TAB is a shifted ASCII character.
> Try "C-S-i" instead (which will also reveal a minor unrelated bug in
> your recipe ;-).

I was going to say the same thing, or similar.

`TAB` = `C-i`.

`TAB' is not the same as `<tab>'.

(kbd "S-<tab>") => [S-tab]
(kbd "S-TAB")   => [33554441]




This bug report was last modified 4 years and 333 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.