unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Meta key, Alt key & ESC
@ 2003-01-05 17:09 Bertram Scharpf
  2003-01-05 19:26 ` Kai Großjohann
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Bertram Scharpf @ 2003-01-05 17:09 UTC (permalink / raw)



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.

Bertram

-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-09-29 16:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` Meta key, Alt key & ESC Tim X

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).