From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: S-tab translated to C-y on a mac? Date: Mon, 18 Oct 2010 09:33:11 -0400 Message-ID: References: <29984533.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291871722 18047 80.91.229.12 (9 Dec 2010 05:15:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:15:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 06:15:19 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQYqb-0002He-EY for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:15:17 +0100 Original-Received: from localhost ([127.0.0.1]:37639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYqa-0002Bf-I2 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:15:16 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe08.iad.POSTED!00000000!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:4w7pz0YKM4eCoqDuk9yMlekkWWE= Original-Lines: 22 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Mon, 18 Oct 2010 13:33:12 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:181838 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76722 Archived-At: [ 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