From: Daniel Pittman <daniel@rimspace.net>
To: help-gnu-emacs@gnu.org
Subject: Re: S-tab translated to C-y on a mac?
Date: Tue, 19 Oct 2010 00:22:44 +1100 [thread overview]
Message-ID: <m262wz63ff.fsf@rimspace.net> (raw)
In-Reply-To: m18w1v1x4q.fsf@gmail.com
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> Daniel Pittman <daniel@rimspace.net> writes:
>
>> So, since I am not the only person who cares: I went looking, and found two
>> things:
>>
>> First, the translation is stored in a *copy* of `ns-alternatives-map',
>> accessible only between the `local-function-key-map' and its parent, injected
>> there during frame setup.
>>
>> This will remove the initial translation:
>>
>> (define-key (keymap-parent local-function-key-map) [S-tab] nil)
>>
>> I don't see why that keymap is cloned, but whatever.
>>
>>
>> Second, if I just add this my binding actually works:
>>
>> (global-set-key [S-tab] #'tab-to-tab-stop)
>>
>> ...so, my problem is solved. :)
>
> Works like a charm, thanks a lot!
> Maybe should we write it on the devel list since I guess is a bug?
Actually, it looks to be working as unexpected, but designed: since I can bind
the keystroke in a regular keymap, this is all good.
The only oddity is that S-tab translates to C-y, which presumably has some
NeXTStep related history I don't know. The remapping stuff is working as
designed, even if that is confusing.
...but feel free to point them at this discussion if you think it justifies a
bug report where I don't. I am happy to answer questions from the developers
and all. :)
Daniel
--
✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
next prev parent reply other threads:[~2010-10-18 13:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-17 13:01 S-tab translated to C-y on a mac? Daniel Pittman
2010-10-17 16:50 ` hazlup
2010-10-18 0:28 ` Daniel Pittman
2010-10-18 8:38 ` Andrea Crotti
2010-10-18 12:32 ` Daniel Pittman
2010-10-18 12:52 ` Andrea Crotti
2010-10-18 13:22 ` Daniel Pittman [this message]
[not found] ` <mailman.1.1287405267.17078.help-gnu-emacs@gnu.org>
2010-10-18 13:33 ` Stefan Monnier
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=m262wz63ff.fsf@rimspace.net \
--to=daniel@rimspace.net \
--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).