From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: Help producing the Alt modifier Date: Fri, 2 May 2003 17:17:31 +0300 Organization: Mivtach-Simon Insurance agencies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200305021417.h42EHV69031679@beta.mvs.co.il> References: <84he8gvz6e.fsf@lucy.is.informatik.uni-duisburg.de> <5lu1cegvpx.fsf@rum.cs.yale.edu> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051885118 23130 80.91.224.249 (2 May 2003 14:18:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 May 2003 14:18:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 02 16:18:34 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 19BbMw-00060U-00 for ; Fri, 02 May 2003 16:18:34 +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 19BbMi-0005fq-03 for gnu-help-gnu-emacs@m.gmane.org; Fri, 02 May 2003 10:18:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19BbMT-0005fk-00 for help-gnu-emacs@gnu.org; Fri, 02 May 2003 10:18:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19BbMS-0005es-00 for help-gnu-emacs@gnu.org; Fri, 02 May 2003 10:18:05 -0400 Original-Received: from unix.sw.co.il ([192.114.178.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BbMR-0005bk-00 for help-gnu-emacs@gnu.org; Fri, 02 May 2003 10:18:03 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.11.6/8.11.6) with ESMTP id h42EHYs10569; Fri, 2 May 2003 17:17:44 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.5/8.12.5) with ESMTP id h42EHXfe031685; Fri, 2 May 2003 17:17:33 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.12.5/8.12.5/Submit) id h42EHV69031679; Fri, 2 May 2003 17:17:31 +0300 Original-To: monnier+gnu.emacs.help/news/@rum.cs.yale.edu, " Jeremy Bowen" In-reply-to: <5lu1cegvpx.fsf@rum.cs.yale.edu> (message from Stefan Monnier on 01 May 2003 18:15:06 -0400) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) 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:9154 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9154 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01 May 2003 18:15:06 -0400, Stefan Monnier wrote: > > >>>>> "Kai" == Kai Grossjohann 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. M- can be different from ESC even in current emacs. I use the following command: (setq meta-prefix-char nil) ;; no meta char (ESC is escape) and here are the key description for M-c and ESC c : M-c runs the command Alt-C which is an alias for `compute' in `FK'. ESC c runs the command capitalize-word Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:ehud@unix.mvs.co.il Better Safe Than Sorry -----BEGIN PGP SIGNATURE----- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQE+sn36LFvTvpjqOY0RAlXMAJ9ZJKUvD9r3dAoyd6XXtw/vKpkWqgCggMVm SSer/dA+QufpJHOHyjEJO2g= =ftye -----END PGP SIGNATURE-----