From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: where does Alt become Meta?
Date: Sun, 22 Jul 2007 02:16:43 +0200 [thread overview]
Message-ID: <yoijtzrxz40k.fsf@remote5.student.chalmers.se> (raw)
In-Reply-To: mailman.3730.1185011735.32220.help-gnu-emacs@gnu.org
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Will Parsons <oudeis@nodomain.invalid>
[...]
> I think you might be confusing two different issues: Emacs does
> recognize an Alt prefix, and it is different from the Meta prefix.
> A-q is always unbound in Emacs by default.
Emacs only recognizes Alt if there is a separate Meta.
>> Where does Emacs map Alt combinations to Meta combinations?
>
> Nowhere. This is done outside Emacs's keymaps.
Unless there are Meta keys, Emacs reinterprets Alt as Meta.
[xterm.c]
/* If we couldn't find any meta keys, accept any alt keys as meta keys. */
if (! dpyinfo->meta_mod_mask)
{
dpyinfo->meta_mod_mask = dpyinfo->alt_mod_mask;
dpyinfo->alt_mod_mask = 0;
}
/* If some keys are both alt and meta,
make them just meta, not alt. */
if (dpyinfo->alt_mod_mask & dpyinfo->meta_mod_mask)
{
dpyinfo->alt_mod_mask &= ~dpyinfo->meta_mod_mask;
}
cf. http://www.emacswiki.org/cgi-bin/wiki/MetaKeyProblems
--
Johan Bockgård
next prev parent reply other threads:[~2007-07-22 0:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 21:06 where does Alt become Meta? Will Parsons
2007-07-21 8:46 ` Eli Zaretskii
[not found] ` <mailman.3730.1185011735.32220.help-gnu-emacs@gnu.org>
2007-07-22 0:16 ` Johan Bockgård [this message]
2007-07-22 3:12 ` Eli Zaretskii
2007-07-23 13:52 ` Will Parsons
2007-07-23 19:36 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yoijtzrxz40k.fsf@remote5.student.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).