From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: chengiz Newsgroups: gmane.emacs.help Subject: Re: Alt vs Meta - Sun keyboard, redhat linux Date: Tue, 4 Jan 2011 09:12:25 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <6c4514cc-28cf-4a1d-8afe-6dcec2325b05@z9g2000yqz.googlegroups.com> <12f2b857-0c03-44a8-a4fc-439bd083b0d1@j19g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294162852 17979 80.91.229.12 (4 Jan 2011 17:40:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2011 17:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 04 18:40:46 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PaAsH-0003X6-Jm for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jan 2011 18:40:45 +0100 Original-Received: from localhost ([127.0.0.1]:51883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaAsH-0003Dj-4n for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jan 2011 12:40:45 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!p8g2000vbs.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: 66.195.165.72 Original-X-Trace: posting.google.com 1294161145 28139 127.0.0.1 (4 Jan 2011 17:12:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Jan 2011 17:12:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p8g2000vbs.googlegroups.com; posting-host=66.195.165.72; posting-account=nMxg0wkAAADbRVC3VR7lfeu1mkQ_EvLd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183979 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78182 Archived-At: On Jan 3, 5:53=A0pm, Peter Dyballa wrote: > Why do you think the Alt and Meta key modifiers have something to do =A0 > with MS Losedos? Where do I think that? > If you want to find out what some "Alt" named key on your keyboard =A0 > produces, then use xev (best launched from a *shell* buffer in GNU =A0 > Emacs), give it the focus and press that key. Xev will produce some =A0 > cryptic output that can be deciphered to some meaning. Similarly =A0 > proceed with the "Meta" titled key on your keyboard. With the =A0 > information of the key codes these keys generate when pressed or =A0 > released, you can reset "key bindings" in X11: > > =A0 =A0 =A0 =A0 keycode =3D Alt_R > =A0 =A0 =A0 =A0 keycode =3D Meta_L > I used xev to verify that the Alt-key produces Alt_L and the 2 meta- keys produce Meta_L and Meta_R. Emacs treats the meta-keys as if they produced M- which is what I want, however it also treats the Alt-key as if produced M-, which is what I want to change to A-. I think the missing piece is what emacs is doing with Alt_L, as in why it is not processing it as A-. Here's my xmodmap output: shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x6d) mod1 Alt_L (0x40), Alt_R (0x71), Alt_L (0x7d) mod2 Num_Lock (0x4d) mod3 mod4 Meta_L (0x73), Meta_R (0x74), Super_L (0x7f), Hyper_L (0x80), Meta_L (0x9c) mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c) I cant tell what to put in my xmodmaprc to make sure emacs behaves correctly. Thanks, chengiz