[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help producing the Alt modifier
From: |
Ehud Karni |
Subject: |
Re: Help producing the Alt modifier |
Date: |
Fri, 2 May 2003 17:17:31 +0300 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01 May 2003 18:15:06 -0400, Stefan Monnier
<monnier+gnu.emacs.help/news/@rum.cs.yale.edu> wrote:
>
> >>>>> "Kai" == Kai Grossjohann <kai.grossjohann@gmx.net> writes:
> > translates <escape> 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-<char> can be different from ESC <char> 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-----
Message not available
Message not available
Message not available
Message not available