Re: setting up the meta key for emacs
Re: setting up the meta key for emacs
- Subject: Re: setting up the meta key for emacs
- From: "Michael McCracken" <email@hidden>
- Date: Thu, 13 Nov 2008 10:44:38 -0600
On Thu, Nov 13, 2008 at 2:23 AM, Harald Hanche-Olsen
<email@hidden> wrote:
> + "Keith D. Matthews" <email@hidden>:
>
>> When I ssh into another mac and run 'emacs -nw somefile.txt' command
>> acts as meta and everything is good. Unfortunately when I ssh into
>> a linux box and do the same, command-f (for example) sends some
>> weird \tilde{A} character. Is there a way I can fix that locally?
>
> This sort of thing is a pain to deal with. The only way I have found
> to sort of deal with is an X11 resource like this:
>
> XTerm.vt100.translations: #override \
> Meta <Key>BackSpace: string(0x1b) string(0x7f) \n\
> <Key>BackSpace: string(0x7f) \n\
> Meta<Key>b: string(0x1b) string("b") \n\
> Meta<Key>c: string(0x1b) string("c") \n\
> Meta<Key>d: string(0x1b) string("d") \n\
> Meta<Key>f: string(0x1b) string("f") \n\
> Meta<Key>l: string(0x1b) string("l") \n\
> Meta<Key>u: string(0x1b) string("u") \n\
> Meta<Key>period: string(0x1b) string(".")
>
> I only filled in a small handful of letters above, because I am lazy.
> Generally, I find just running emacs as an X client to be vastly
> preferable.
>
> I experimented a bit with
>
> XTerm*metaSendsEscape: true
>
> (equivalent to turning on "Meta Sends Escape" in the main xterm menu)
> but it has no effect. I suspect it might work in an 8 bit locale, but
> in a utf-8 locale, no way. Or so it seems.
I can confirm that the metaSendsEscape resource setting works for me
in my two locales:
% locale
LANG=en_US.iso885915
LC_CTYPE="en_US.iso885915"
LC_NUMERIC="en_US.iso885915"
LC_TIME="en_US.iso885915"
LC_COLLATE="en_US.iso885915"
LC_MONETARY="en_US.iso885915"
LC_MESSAGES="en_US.iso885915"
LC_PAPER="en_US.iso885915"
LC_NAME="en_US.iso885915"
LC_ADDRESS="en_US.iso885915"
LC_TELEPHONE="en_US.iso885915"
LC_MEASUREMENT="en_US.iso885915"
LC_IDENTIFICATION="en_US.iso885915"
LC_ALL=
and
% locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
I suspect you might be right about other locales, though.
-mike
> - Harald
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list (email@hidden)
>
> This email sent to email@hidden
>
--
Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucsd.edu/~mmccrack/
misc: http://michael-mccracken.net/wp/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden