* bug#11011: Binding S-TAB
@ 2012-03-14 7:12 Antoine Levitt
2012-03-14 8:53 ` David De La Harpe Golden
2020-08-20 19:06 ` Stefan Kangas
0 siblings, 2 replies; 12+ messages in thread
From: Antoine Levitt @ 2012-03-14 7:12 UTC (permalink / raw)
To: 11011
From a posting on emacs-devel:
Antoine Levitt <antoine.levitt@gmail.com>:
> Alright, I thought (kbd "S-TAB") would do the right thing, but
> apparently not. I'm thoroughly confused by emacs keybinding system.
Chong Yidong <cyd@gnu.org>:
> I think this is a bug in kbd. It doesn't seem to handle TAB with
> modifiers right. Please file a bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2012-03-14 7:12 bug#11011: Binding S-TAB Antoine Levitt
@ 2012-03-14 8:53 ` David De La Harpe Golden
2012-03-14 8:58 ` Antoine Levitt
2020-08-20 19:06 ` Stefan Kangas
1 sibling, 1 reply; 12+ messages in thread
From: David De La Harpe Golden @ 2012-03-14 8:53 UTC (permalink / raw)
To: Antoine Levitt; +Cc: 11011
On 14/03/12 07:12, Antoine Levitt wrote:
> From a posting on emacs-devel:
>
> Antoine Levitt<antoine.levitt@gmail.com>:
>
>> Alright, I thought (kbd "S-TAB") would do the right thing, but
>> apparently not. I'm thoroughly confused by emacs keybinding system.
>
> Chong Yidong<cyd@gnu.org>:
>
>> I think this is a bug in kbd. It doesn't seem to handle TAB with
>> modifiers right. Please file a bug.
>
>
>
>
works for me (tm). what platform are we talking about?
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2012-03-14 8:53 ` David De La Harpe Golden
@ 2012-03-14 8:58 ` Antoine Levitt
2012-03-14 9:12 ` David De La Harpe Golden
0 siblings, 1 reply; 12+ messages in thread
From: Antoine Levitt @ 2012-03-14 8:58 UTC (permalink / raw)
To: David De La Harpe Golden; +Cc: 11011
14/03/12 09:53, David De La Harpe Golden
> On 14/03/12 07:12, Antoine Levitt wrote:
>> From a posting on emacs-devel:
>>
>> Antoine Levitt<antoine.levitt@gmail.com>:
>>
>>> Alright, I thought (kbd "S-TAB") would do the right thing, but
>>> apparently not. I'm thoroughly confused by emacs keybinding system.
>>
>> Chong Yidong<cyd@gnu.org>:
>>
>>> I think this is a bug in kbd. It doesn't seem to handle TAB with
>>> modifiers right. Please file a bug.
>>
>>
>>
>>
>
> works for me (tm). what platform are we talking about?
I'm using Ubuntu 11.10, with gnome/metacity. (on a french keyboard)
Typing S-TAB gives:
<backtab> (translated from <S-iso-lefttab>) is undefined
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2012-03-14 8:58 ` Antoine Levitt
@ 2012-03-14 9:12 ` David De La Harpe Golden
0 siblings, 0 replies; 12+ messages in thread
From: David De La Harpe Golden @ 2012-03-14 9:12 UTC (permalink / raw)
To: Antoine Levitt; +Cc: 11011
On 14/03/12 08:58, Antoine Levitt wrote:
>> works for me (tm). what platform are we talking about?
>
> I'm using Ubuntu 11.10, with gnome/metacity. (on a french keyboard)
>
> Typing S-TAB gives:
> <backtab> (translated from<S-iso-lefttab>) is undefined
I'm just wrong, sorry for the noise - I overconfidently answered without
rechecking my .emacs, I was actually doing:
(global-set-key (kbd "<backtab>") ...)
probably /because/ the more naive "S-" didn't work.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2012-03-14 7:12 bug#11011: Binding S-TAB Antoine Levitt
2012-03-14 8:53 ` David De La Harpe Golden
@ 2020-08-20 19:06 ` Stefan Kangas
2020-08-20 19:35 ` Eli Zaretskii
1 sibling, 1 reply; 12+ messages in thread
From: Stefan Kangas @ 2020-08-20 19:06 UTC (permalink / raw)
To: Antoine Levitt; +Cc: 11011
found 11011 28.0.50
tags 11011 + confirmed
thanks
Antoine Levitt <antoine.levitt@gmail.com> writes:
>>From a posting on emacs-devel:
>
> Antoine Levitt <antoine.levitt@gmail.com>:
>
>> Alright, I thought (kbd "S-TAB") would do the right thing, but
>> apparently not. I'm thoroughly confused by emacs keybinding system.
>
> Chong Yidong <cyd@gnu.org>:
>
>> I think this is a bug in kbd. It doesn't seem to handle TAB with
>> modifiers right. Please file a bug.
I can reproduce this on current master:
0. emacs -Q
1. (global-set-key (kbd "S-TAB") (lambda () (message "FOO")))
2. S-TAB
And see the following error: "<backtab> is undefined"
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2020-08-20 19:06 ` Stefan Kangas
@ 2020-08-20 19:35 ` Eli Zaretskii
2020-08-20 21:41 ` Stefan Kangas
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2020-08-20 19:35 UTC (permalink / raw)
To: Stefan Kangas; +Cc: antoine.levitt, 11011
> From: Stefan Kangas <stefan@marxist.se>
> Date: Thu, 20 Aug 2020 12:06:44 -0700
> Cc: 11011@debbugs.gnu.org
>
> 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 ;-).
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
[not found] ` <<83y2m9az4w.fsf@gnu.org>
@ 2020-08-20 20:16 ` Drew Adams
[not found] ` <<CADwFkmkGyT_YQBdJ=OVoTr_7piyhDua3+qv5AmTYmeedqFpg-g@mail.gmail.com>
1 sibling, 0 replies; 12+ messages in thread
From: Drew Adams @ 2020-08-20 20:16 UTC (permalink / raw)
To: Eli Zaretskii, Stefan Kangas; +Cc: antoine.levitt, 11011
> > 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]
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2020-08-20 19:35 ` Eli Zaretskii
@ 2020-08-20 21:41 ` Stefan Kangas
2020-08-21 6:10 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Stefan Kangas @ 2020-08-20 21:41 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: antoine.levitt, 11011
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Stefan Kangas <stefan@marxist.se>
>> Date: Thu, 20 Aug 2020 12:06:44 -0700
>> Cc: 11011@debbugs.gnu.org
>>
>> 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 ;-).
Hmm, now I see. This stuff always manages to confuse me. And I guess
it also managed to confused Chong Yidong...?
Not sure if there's anything to do here, if this is as it should be.
Notabug?
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2020-08-20 21:41 ` Stefan Kangas
@ 2020-08-21 6:10 ` Eli Zaretskii
2020-08-21 6:55 ` Stefan Kangas
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2020-08-21 6:10 UTC (permalink / raw)
To: Stefan Kangas; +Cc: antoine.levitt, 11011
> From: Stefan Kangas <stefan@marxist.se>
> Date: Thu, 20 Aug 2020 14:41:19 -0700
> Cc: antoine.levitt@gmail.com, 11011@debbugs.gnu.org
>
> > 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 ;-).
>
> Hmm, now I see. This stuff always manages to confuse me. And I guess
> it also managed to confused Chong Yidong...?
>
> Not sure if there's anything to do here, if this is as it should be.
> Notabug?
Yes, I think this is just a confusing subtlety of function keys vs
ASCII keys on a modern keyboard. The OP should have bound <backtab>,
not S-TAB.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2020-08-21 6:10 ` Eli Zaretskii
@ 2020-08-21 6:55 ` Stefan Kangas
2020-08-21 7:12 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Stefan Kangas @ 2020-08-21 6:55 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: antoine.levitt, 11011
tags 11011 notabug
close 11011
thanks
Eli Zaretskii <eliz@gnu.org> writes:
>> Not sure if there's anything to do here, if this is as it should be.
>> Notabug?
>
> Yes, I think this is just a confusing subtlety of function keys vs
> ASCII keys on a modern keyboard. The OP should have bound <backtab>,
> not S-TAB.
Thanks, so I'm closing this bug report now.
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
2020-08-21 6:55 ` Stefan Kangas
@ 2020-08-21 7:12 ` Eli Zaretskii
0 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2020-08-21 7:12 UTC (permalink / raw)
To: Stefan Kangas; +Cc: antoine.levitt, 11011
> From: Stefan Kangas <stefan@marxist.se>
> Date: Thu, 20 Aug 2020 23:55:06 -0700
> Cc: antoine.levitt@gmail.com, 11011@debbugs.gnu.org
>
> > Yes, I think this is just a confusing subtlety of function keys vs
> > ASCII keys on a modern keyboard. The OP should have bound <backtab>,
> > not S-TAB.
Btw, binding <S-tab> would have also done TRT in that use case.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#11011: Binding S-TAB
[not found] ` <<83k0xsbhh8.fsf@gnu.org>
@ 2020-08-21 15:17 ` Drew Adams
0 siblings, 0 replies; 12+ messages in thread
From: Drew Adams @ 2020-08-21 15:17 UTC (permalink / raw)
To: Eli Zaretskii, Stefan Kangas; +Cc: antoine.levitt, 11011
> Btw, binding <S-tab> would have also done TRT in that use case.
Yes. IIUC, to be more exact, <backtab> takes care of two cases:
<S-tab> and <S-iso-lefttab>.
To get the effect of <backtab> for Emacs prior to 22 you had to
bind both of those keys ([S-tab] and [S-iso-lefttab]).
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2020-08-21 15:17 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 7:12 bug#11011: Binding S-TAB Antoine Levitt
2012-03-14 8:53 ` David De La Harpe Golden
2012-03-14 8:58 ` Antoine Levitt
2012-03-14 9:12 ` David De La Harpe Golden
2020-08-20 19:06 ` Stefan Kangas
2020-08-20 19:35 ` Eli Zaretskii
2020-08-20 21:41 ` Stefan Kangas
2020-08-21 6:10 ` Eli Zaretskii
2020-08-21 6:55 ` Stefan Kangas
2020-08-21 7:12 ` Eli Zaretskii
[not found] <<87aa3jy7u0.fsf@gmail.com>
[not found] ` <<CADwFkmkUz0ihO8JxPP1pd8uax7347WPEwQ8K0MOv84sKvJkkhw@mail.gmail.com>
[not found] ` <<83y2m9az4w.fsf@gnu.org>
2020-08-20 20:16 ` Drew Adams
[not found] ` <<CADwFkmkGyT_YQBdJ=OVoTr_7piyhDua3+qv5AmTYmeedqFpg-g@mail.gmail.com>
[not found] ` <<83o8n4bkc2.fsf@gnu.org>
[not found] ` <<CADwFkm=H51EDt07C0ePRxtdcKyBopaupwremUcRgqD8XVerN+w@mail.gmail.com>
[not found] ` <<83k0xsbhh8.fsf@gnu.org>
2020-08-21 15:17 ` Drew Adams
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).