help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Typing and pasting "special" characters directly in emacs in xterm?


From: Adam Funk
Subject: Re: Typing and pasting "special" characters directly in emacs in xterm?
Date: Wed, 11 Oct 2006 11:11:29 +0100
User-agent: slrn/0.9.8.1pl1 (Debian)

On 2006-10-10, Pascal Bourguignon <pjb@informatimago.com> wrote:

> The second way is to assume a 7-bit ASCII keyboard, and to use the 8th
> bit to indicate when Meta is pressed.  
>
> M-d is then transmited as the byte 228  (100 + 8th bit set).
>
> Unfortunately, if you have an ISO-8859-1 or ISO-8859-15 keyboard, the
> byte 228 is the ISO-8859-1/15 character ä.
>
> So when you type ä, you send 228, and emacs interprets that as M-d,
> which will delete the following word.

OK, now I understand why it's going wrong!


> So, you should configure your terminal to send ESC for Meta instead of
> setting the high bit.  Then you can use the high bit to send
> ISO-8859-15 character codes instead of ASCII+Meta.
>
> You can do that editing ~/.Xresources or with Control-<MouseLeftDown>
> in the xterm window to display a menu and select "Meta Sends Escape".

I've just tried the second suggestions and I'm still getting the same
results (over ssh and locally).  I'll look at the .Xresources stuff
later.


> Mind setting the various LC_* environment variables to indicate the
> encoding you use.
>
> You can also use a UTF-8 aware terminal, to be able to display and
> enter characters out of the ISO-8859-15 character set.

I thought xterm *was* UTF-8 aware --- at least, when I'm typing in it
other than in emacs, the "non-US" characters appear normally.


Thanks very much --- I haven't solved the problem yet but at least now
I have a good idea of what the problem is.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]