From: Tim X <timx@spamto.devnul.com>
Subject: Re: Meta key, Alt key & ESC
Date: 06 Jan 2003 13:11:32 +1100 [thread overview]
Message-ID: <873co7hvsb.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: slrnb1gpm3.1fm.b.scharpf@homer.bertram-scharpf
Bertram Scharpf <b.scharpf@tesionmail.de> writes:
> Hi,
>
> sorry, I could not find a documentation about this problem.
>
> Under Debian/GNU Linux my Emacs Meta key is the one
> between `Control_L' and `Alt_L'. But from SuSE
> Linux I am used `Alt_L' to be the Meta key. Now I don't
> want to change my Debian `.Xmodmap'; rather I want Emacs
> to accept the `Alt_L' in one of the following manners:
>
>
> A.
>
> I examine my keystrokes using the command "C-h k"
> (`descibe-key'). Typing
>
> C-h k <Alt>-a
>
> yields in under
> --------- -----
> "M-a runs the command ...." SuSE
> "A-a is undefined" Debian/GNU
>
> But I get
>
> $ xmodmap -pm | grep mod1
> mod1 Alt_L (0x40)
> $
>
> in both cases!
>
> So there must be a way to tell Emacs which modifier is the
> Meta Key. How do I tell?
>
>
> B.
>
> My `/usr/X11R6/lib/X11/app-defaults/XTerm' contains
> something like
>
> --------------------------------------
> XTerm*VT100.Translations: #override \
> Alt<KeyPress>Shift_L,Alt<KeyPress>: string(0x01B) insert() \n\
> Alt<KeyPress>Shift_R,Alt<KeyPress>: string(0x01B) insert() \n\
> Alt Ctrl <KeyPress>: string(0x01B) insert() \n\
> Alt <KeyPress>: string(0x01B) insert()
> --------------------------------------
>
> (I didn't find a documentation about that either.)
>
> Running Emacs in an XTerm as "emacs -nw" I get the following
> results:
>
> Typing yields in
> C-h k <Meta>-a "M-a runs the command ...."
> C-h k ESC a "ESC a runs the command ...."
> C-h k <Alt>-a "ESC a runs the command ...."
>
> but in the X-windowed Emacs still:
>
> C-h k <Alt>-a "A-a is undefined"
>
> Is there a way letting Emacs take an <Alt> as an ESC-prefix
> as XTerm does?
>
> Thank you very much in advance for your answers.
>
I had the same problem with my Debian system, when I upgraded from
potato to testing (pre-release woody), but decided to just get use to
it. I was just about accustomed to it when I did a dist upgrade to the
new testing when woody was released and the old behavior is now back.
Personally, I'd just use xmodmap and I suspect it is the default
xmodmap debian is using which is causing the differences anyway. There
is some info on this in the emacs PROBLEMS or NEWS file (sorry, can't
remember which).
Tim
--
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you
really need to send mail, you should be able to work it out!
prev parent reply other threads:[~2003-01-06 2:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-05 17:09 Meta key, Alt key & ESC Bertram Scharpf
2003-01-05 19:26 ` Kai Großjohann
2003-01-05 21:42 ` Bijan Soleymani
2003-09-25 16:00 ` X-Windows cut&paste problems (Japanese characters) Janusz S. Bień
2003-09-27 11:49 ` Eli Zaretskii
2003-09-28 17:12 ` Janusz S. Bień
2003-09-28 17:43 ` Miles Bader
2003-09-29 15:14 ` Janusz S. Bień
2003-09-29 16:09 ` Jason Rumney
2003-01-06 2:11 ` Tim X [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873co7hvsb.fsf@tiger.rapttech.com.au \
--to=timx@spamto.devnul.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).