Ilpo Nyyssönen wrote:
> > > (set-input-mode nil nil 'foo)
> Personally, I think that the default is wrong. But if it were to be
> changed, people who have come to rely upon XEmacs working around their
> terminal misconfiguration will probably complain.
Is it possible to set this according to the locale or something?
The main possibility is the "km" termcap/terminfo entry:
has_meta_key km km Has a meta key
(i.e., sets 8th-bit)
...
If the terminal has a ``meta key'' which acts as a shift
key, setting the 8th bit of any character transmitted,
this fact can be indicated with km. Otherwise, software
will assume that the 8th bit is parity and it will usually
be cleared. If strings exist to turn this ``meta mode''
on and off, they can be given as smm and rmm.
However, I wouldn't count on this information being accurate,
particularly for terminal emulators where the choice between
meta-adds-128 and meta-sends-escape is configurable (the terminfo
entry won't change to match).
I doubt that checking the locale's charset would help; the locale
definitions supplied with glibc-2 specify the charset even for en_US
as ISO-8859-1. Simply checking $LANG probably wouldn't help either;
many users have LANG=C (because lots of programs don't work properly
otherwise). And what about LANG=en_GB? If you assume that the top bit
is meta, you can't enter pound (sterling) signs, or degree symbols, or
type foreign words or names (or spell "naïve" correctly ;) ).
--
Glynn Clements <glynn.clements(a)virgin.net>