From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: unfrostedpoptart Newsgroups: gmane.emacs.help Subject: Re: Mac - X11 - emacs - meta - alt key Date: Sun, 14 Mar 2010 22:20:24 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2fc97a4f-2ed5-44b2-b692-497df7857aee@k36g2000prb.googlegroups.com> References: <4b9db71a$0$30332$c32e2966@unlimited.newshosting.com> <000c26cd$0$1633$c3e8da3@news.astraweb.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 1272993779 20743 80.91.229.12 (4 May 2010 17:22:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 17:22:59 +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 May 04 19:22:57 2010 connect(): No such file or directory 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 1O9LpJ-0003nD-2i for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 19:22:56 +0200 Original-Received: from localhost ([127.0.0.1]:36248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Loz-0001wL-Rc for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 13:22:13 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!k36g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.sys.mac.system Original-Lines: 42 Original-NNTP-Posting-Host: 68.228.86.15 Original-X-Trace: posting.google.com 1268630424 32393 127.0.0.1 (15 Mar 2010 05:20:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 15 Mar 2010 05:20:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k36g2000prb.googlegroups.com; posting-host=68.228.86.15; posting-account=S61AnQkAAADt4_PSYpI-Tm-z1E4cd7xa User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177466 comp.sys.mac.system:877424 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:72980 Archived-At: On Mar 14, 10:12=A0pm, JF Mezei wrote: > David Rogoff wrote: > > I'm still getting used to my Mac and have a strange problem with emacs. > > =A0When running Aquamacs on the Mac itself, the Alt/Option key is meta, > > which is what I expect. =A0However, I'm also remote accessing a Linux b= ox > > via X11/NXClient. =A0When I run emacs (or xemacs) on in Linux, it looks > > like X11 has remapped the Mac Command key to be meta. =A0How do I put > > this back? > > On Linux (and on the mac) there is a utility called "xev" =A0(x events). > > You can test to see what event each key combination generates. Thanks. I tried xev and, as expected, the 2 command keys generate Meta_L (keycode 63, keysym 0xffe7) and Meta_R (keycode 71, keysym 0xffe8). Both option/alt keys generate something called Mode_switch (keycode 69, keysym 0xff7e) > > xmodmap is the utility you would use on the Mac to remap your keyboard. > > For instance: > > cat ~/.xmodmap > keycode 79 =A0=3D KP_F1 > keycode 89 =A0=3D KP_F1 > keycode 83 =A0=3D KP_F3 > keycode 75 =A0=3D KP_F4 > > and you use xmodmap .xmodmap to load that new keymapping. =A0YOu need to > hunt a bit to find the modifier names. =A0The last 4 lines map 4 differen= t > combinations of the keys (I think shift, control,meta and some other). I'll have to look into this. I've done a little digging and didn't think OS/X used xmodmap. Will this affect all OS/X programs or only ones running inside X11? David