unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: chengiz <chengiz@my-deja.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Alt vs Meta - Sun keyboard, redhat linux
Date: Mon, 3 Jan 2011 23:53:39 +0100	[thread overview]
Message-ID: <A52B9F75-9DEE-417A-8AD5-34011E5DBD9F@Web.DE> (raw)
In-Reply-To: <12f2b857-0c03-44a8-a4fc-439bd083b0d1@j19g2000prh.googlegroups.com>


Am 03.01.2011 um 21:25 schrieb chengiz:

> Which of these "Mod?"s does emacs use for its Alt modifier? My current
> xmodmap already has Alt_L at Mod1. I want emacs to treat this like
> Emacs-alt (ie. the rarely used Alt modifier mentioned at
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-Keyboard.html)
> rather than Emacs-meta.

Why do you think the Alt and Meta key modifiers have something to do  
with MS Losedos?

The Meta modifier is the M in, for example, M-x. M-ESC is ESC-ESC. The  
Meta modifier is accepted by GNU Emacs as the "Meta" modifier.

The Alt modifier can select up to two (two, because with and without  
Shift pressed) character keyboard layouts. On my keyboard, for  
example, Alt-a produces å and Alt-S-a Å. The Alt modifier is accepted  
by GNU Emacs as the "Alt" modifier.

If you want to find out what some "Alt" named key on your keyboard  
produces, then use xev (best launched from a *shell* buffer in GNU  
Emacs), give it the focus and press that key. Xev will produce some  
cryptic output that can be deciphered to some meaning. Similarly  
proceed with the "Meta" titled key on your keyboard. With the  
information of the key codes these keys generate when pressed or  
released, you can reset "key bindings" in X11:

	keycode <whichever> = Alt_R
	keycode <whatever> = Meta_L

Actually my first example was incomplete, because changing the  
sequence of modifiers does not change their meaning because the keys  
have also a keysym by which they are understood.

When you write that you have the Alt_L modifier already defined, then  
find out which key produces this modifier event. Xev can be your  
friend. Once you've located the Alt_L key on your keyboard, you can  
use it in GNU Emacs. The xkeycaps utility might be able to have your  
keyboard layout loaded. Then you'll see graphically what you press.

--
Greetings

   Pete

Ce qui été compris n'existe plus.
				(Paul Eluard)




  reply	other threads:[~2011-01-03 22:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-31 23:21 Alt vs Meta - Sun keyboard, redhat linux chengiz
2011-01-01 19:35 ` Peter Dyballa
     [not found] ` <mailman.6.1293910561.32515.help-gnu-emacs@gnu.org>
2011-01-03 20:25   ` chengiz
2011-01-03 22:53     ` Peter Dyballa [this message]
     [not found]     ` <mailman.18.1294095231.614.help-gnu-emacs@gnu.org>
2011-01-04 17:12       ` chengiz
2011-01-04 22:47         ` Peter Dyballa
     [not found]         ` <mailman.1.1294181287.10900.help-gnu-emacs@gnu.org>
2011-01-04 23:17           ` chengiz
2011-01-05  0:24             ` Peter Dyballa

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=A52B9F75-9DEE-417A-8AD5-34011E5DBD9F@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=chengiz@my-deja.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).