From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: Help producing the Alt modifier Date: 01 May 2003 18:15:06 -0400 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5lu1cegvpx.fsf@rum.cs.yale.edu> References: <84he8gvz6e.fsf@lucy.is.informatik.uni-duisburg.de> <84wuha6g84.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051828026 6988 80.91.224.249 (1 May 2003 22:27:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 May 2003 22:27:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 02 00:27:05 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19BMVP-0001jm-00 for ; Fri, 02 May 2003 00:26:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BMVJ-0004ja-02 for gnu-help-gnu-emacs@m.gmane.org; Thu, 01 May 2003 18:26:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!news-hog.berkeley.edu!ucberkeley!news.ycc.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: rum.cs.yale.edu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 1 May 2003 18:15:07 -0400, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:112638 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9134 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9134 >>>>> "Kai" == Kai Großjohann writes: > translates into ESC (which is the same as C-[). There is > also additional magic that makes M-x be the same as ESC x, but I > don't know how that works. It's different magic, I think. Yes, that magic is hardcoded in keymap.c (mostly in access_keymap and Fdefine_key). Note that it does not apply to Meta + function key, so ESC a == M-a but M-f8 != ESC f8. I think it would be interesting to make this less hard-coded and generalize it so that other modifiers can be mapped to prefixes. Stefan