From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Aarno Newsgroups: gmane.emacs.help Subject: Re: Mapping alt to altgr Date: Mon, 06 Jun 2005 17:44:15 +0200 Organization: Dept of Numerical Analysis and Computer Science, KTH Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1118072714 15498 80.91.229.2 (6 Jun 2005 15:45:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2005 15:45:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 06 17:45:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfJlW-0003We-J7 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2005 17:43:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfJrr-0008Qd-DX for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2005 11:50:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed.sunet.se!news01.sunet.se!inn.nada.kth.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 68 Original-NNTP-Posting-Host: cvap70.nada.kth.se Original-X-Trace: inn.nada.kth.se 1118072656 21728 130.237.218.131 (6 Jun 2005 15:44:16 GMT) Original-X-Complaints-To: usenet@inn.nada.kth.se Original-NNTP-Posting-Date: Mon, 6 Jun 2005 15:44:16 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:131821 Original-To: help-gnu-emacs@gnu.org 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:27287 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27287 This is the contents of my .xmodmaprc remove mod2 = Alt_L remove mod1 = Alt_L remove mod2 = Mode_switch remove mod1 = Mode_switch remove mod1 = Multi_key add mod2 = Mode_switch add mod2 = Alt_L After logging in I run xmodmap .xmodmaprc followed by xmodmap -pm which prints out: xmodmap: up to 2 keys per modifier, (keycodes in parentheses): shift Shift_L (0xe8), Shift_R (0xec) lock Caps_Lock (0x40) control Control_L (0xe7) mod1 mod2 Mode_switch (0xed), Alt_L (0xe9) mod3 Num_Lock (0x5a) mod4 Meta_L (0xea), Meta_R (0xee) mod5 Then I start emacs and is unable to use either alt or altgr to compose character such as { on my swedish layout. Howerver in all other apps (like thunderbird where I just wrote it), including Xemacs it works fine. I was hoping there was away to do this internally in emacs. I don't know xev, neither can I find it on my system. Hope this is helps you help me /Daniel Aarno Peter Dyballa wrote: > > Am 06.06.2005 um 11:24 schrieb Daniel Aarno: > >> Hi, I tried to map left alt to altgr (right alt) in emacs without >> success. > > > You know 'xmodmap -pm'? > > You know xev that tells you a key's keysym and keycode? > > Did you use syntax like > > clear Mod1 > clear Mod2 > keycode 66 = Meta_L > add Mod1 = Meta_L > > How and when do you try to tell X11 the new key meanings? > > -- > Greetings > > Pete > > $ sumascii BILL GATES > B I L L G A T E S > 66+ 73+ 76+ 76+ 71+ 65+ 84+ 69+ 83 = 663 > > and add 3 because he's Bill Gates the third. > > >