From: Daniel Pittman <daniel@rimspace.net>
To: help-gnu-emacs@gnu.org
Subject: Re: S-tab translated to C-y on a mac?
Date: Mon, 18 Oct 2010 23:32:31 +1100 [thread overview]
Message-ID: <m2pqv765r4.fsf@rimspace.net> (raw)
In-Reply-To: m1k4lf28w3.fsf@gmail.com
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> Daniel Pittman <daniel@rimspace.net> writes:
[... I reported that Cocoa GUI MacOS-X 23 translates S-tab into C-y
automatically, and wondered how to avoid that ... ]
>> This is all (relatively) native GUI stuff. :)
>
> +1, I always had the same issue, but I didn't recognize the problem
> before since I almost always use the mac version...
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. :)
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 12:32 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 [this message]
2010-10-18 12:52 ` Andrea Crotti
2010-10-18 13:22 ` Daniel Pittman
[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=m2pqv765r4.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).