* where does Alt become Meta?
@ 2007-07-20 21:06 Will Parsons
2007-07-21 8:46 ` Eli Zaretskii
[not found] ` <mailman.3730.1185011735.32220.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Will Parsons @ 2007-07-20 21:06 UTC (permalink / raw)
To: help-gnu-emacs
I use Emacs on a variety of systems and circumstances, and on just about
all of them I'm used to using the Alt key as Meta, so I was surprised
recently to find that in an Emacs session running on FreeBSD, but accessed
on a Windows system via TightVNC, A-q was unbound. Esc-q was bound as
expected to fill-paragraph, but since I find the Alt combinations a lot
more convenient, I would like to fix that, but have no idea where to look.
Where does Emacs map Alt combinations to Meta combinations?
- Will
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where does Alt become Meta?
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>
1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2007-07-21 8:46 UTC (permalink / raw)
To: help-gnu-emacs
> From: Will Parsons <oudeis@nodomain.invalid>
> Date: 20 Jul 2007 21:06:00 GMT
>
> I use Emacs on a variety of systems and circumstances, and on just about
> all of them I'm used to using the Alt key as Meta, so I was surprised
> recently to find that in an Emacs session running on FreeBSD, but accessed
> on a Windows system via TightVNC, A-q was unbound.
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.
> Where does Emacs map Alt combinations to Meta combinations?
Nowhere. This is done outside Emacs's keymaps. In your case, you
should set up TightVNC to send the Meta modifier when you press the
Alt key.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where does Alt become Meta?
[not found] ` <mailman.3730.1185011735.32220.help-gnu-emacs@gnu.org>
@ 2007-07-22 0:16 ` Johan Bockgård
2007-07-22 3:12 ` Eli Zaretskii
2007-07-23 13:52 ` Will Parsons
1 sibling, 1 reply; 6+ messages in thread
From: Johan Bockgård @ 2007-07-22 0:16 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where does Alt become Meta?
2007-07-22 0:16 ` Johan Bockgård
@ 2007-07-22 3:12 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2007-07-22 3:12 UTC (permalink / raw)
To: help-gnu-emacs
> From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=)
> Date: Sun, 22 Jul 2007 02:16:43 +0200
>
> >> 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]
xterm.c is a low-level infrastructure, below the Emacs keymap
machinery.
Anyway, the OP uses VNC on Windows, where there's no separate Meta
key. So I don't think the cited fragment from xterm.c applies.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where does Alt become Meta?
[not found] ` <mailman.3730.1185011735.32220.help-gnu-emacs@gnu.org>
2007-07-22 0:16 ` Johan Bockgård
@ 2007-07-23 13:52 ` Will Parsons
2007-07-23 19:36 ` Eli Zaretskii
1 sibling, 1 reply; 6+ messages in thread
From: Will Parsons @ 2007-07-23 13:52 UTC (permalink / raw)
To: help-gnu-emacs
Eli Zaretskii wrote:
>> From: Will Parsons <oudeis@nodomain.invalid>
>> Date: 20 Jul 2007 21:06:00 GMT
>>
>> I use Emacs on a variety of systems and circumstances, and on just about
>> all of them I'm used to using the Alt key as Meta, so I was surprised
>> recently to find that in an Emacs session running on FreeBSD, but accessed
>> on a Windows system via TightVNC, A-q was unbound.
>
> 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.
>
>> Where does Emacs map Alt combinations to Meta combinations?
>
> Nowhere. This is done outside Emacs's keymaps. In your case, you
> should set up TightVNC to send the Meta modifier when you press the
> Alt key.
Thanks. I found the right way to configure TightVNC to set Alt to Meta.
I thought that Emacs must handle Alt somehow, since I can use Alt combos
on the console too, but I guess that the console driver handles it somehow?
- Will
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where does Alt become Meta?
2007-07-23 13:52 ` Will Parsons
@ 2007-07-23 19:36 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2007-07-23 19:36 UTC (permalink / raw)
To: help-gnu-emacs
> From: wbp@nodomain.invalid (Will Parsons)
> Date: 23 Jul 2007 13:52:15 GMT
>
> I thought that Emacs must handle Alt somehow, since I can use Alt combos
> on the console too, but I guess that the console driver handles it somehow?
Either the console driver or the low-level code in Emacs that has
intimate knowledge of the console behavior and keyboard.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-07-23 19:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-07-22 3:12 ` Eli Zaretskii
2007-07-23 13:52 ` Will Parsons
2007-07-23 19:36 ` Eli Zaretskii
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).