Take the 2-minute tour ×  I'm using Emacs 23 with xterm and am
trying to bring my Linux system into the 21st century by
switching from a POSIX locale to en_US.utf8. Problem: when I use
the Alt key on the keyboard in this locale, xterm sends a two-
character sequence. I'd like to fix emacs so that it sees, e.g.,
Alt-f as meta-f rather than the two-character sequence
"\303\246". I think this might be a job for an input coding, but
from the emacs documentation I have not figured out how to write
one.  As an alternative I would be willing to add octal '\303'
to a keymap so that emacs would treat it as a prefix character
to introduce a meta escape. The way I would prefer to do this
would be to bind '\303' to a function that then takes the next
key and adjusts it as a meta key. But I can't quite figure out
that one either.  Worst case I guess I write a loop that binds
the meta keys for 'a' through 'z' or something equally horrid.
I've messed around with the set-terminal-coding-system, but the
crux of the matter is