From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: S-tab translated to C-y on a mac?
Date: Mon, 18 Oct 2010 09:33:11 -0400 [thread overview]
Message-ID: <jwvmxqby6k2.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.1.1287405267.17078.help-gnu-emacs@gnu.org
[ No idea why S-tab is mapped to C-y, but indeed the Emacs-23 code just
does that. Emacs-24 changed it to backtab, which makes more sense to
my X11-oriented mind. ]
> First, the translation is stored in a *copy* of `ns-alternatives-map',
[...]
> I don't see why that keymap is cloned, but whatever.
Because Emacs keymap don't support multiple inheritance.
> Second, if I just add this my binding actually works:
> (global-set-key [S-tab] #'tab-to-tab-stop)
> ...so, my problem is solved. :)
FWIW, S-tab is expected to be a "poor man's backtab", i.e. for those
cases where you don't have a backtab key (sadly the most common
situation). So a "natural" binding would be to be
"reserve-tab-to-tab-stop" that goes to the previous rather than the next
tab stop.
Stefan
prev parent reply other threads:[~2010-10-18 13:33 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
[not found] ` <mailman.1.1287405267.17078.help-gnu-emacs@gnu.org>
2010-10-18 13:33 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmxqby6k2.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--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.
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.