From owner-freebsd-questions@FreeBSD.ORG Mon Oct 10 03:11:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5A5116A420 for ; Mon, 10 Oct 2005 03:11:02 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from maxlor.mine.nu (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 491F643D46 for ; Mon, 10 Oct 2005 03:11:02 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id 203AF2E01D; Mon, 10 Oct 2005 05:10:59 +0200 (CEST) Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57096-05; Mon, 10 Oct 2005 05:10:57 +0200 (CEST) Received: from [10.0.0.17] (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id D145F2E01B; Mon, 10 Oct 2005 05:10:57 +0200 (CEST) Message-ID: <4349DBBD.3010905@datacomm.ch> Date: Mon, 10 Oct 2005 05:10:53 +0200 From: Benjamin Lutz User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kirk Strauser References: <200510091641.48542.kirk@strauser.com> In-Reply-To: <200510091641.48542.kirk@strauser.com> X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9A7EDC0E52347034C1026C92" X-Virus-Scanned: amavisd-new at atlantis.intranet Cc: freebsd-questions@freebsd.org Subject: Re: Happy Hacking keyboard, Emacs, and meta X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 03:11:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9A7EDC0E52347034C1026C92 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Kirk Strauser wrote: > I have an older PS2 Happy Hacking Lite Keyboard (love it!), but I'm getting > reacquainted with Emacs and one aspect of the keyboard is driving me nuts: I > can't seem to get the diamond keys (like "Windows keys") to send only Meta to > Emacs. > > I use KDE on FreeBSD 6.0-BETA5 and have it set to run "setxkbmap -option > -option altwin:meta_win" at login. If I run "xev" and press those keys, I > see events like: > > [...] > > However, if I run Emacs and type C-h k (describe-key) and then M-a, for > example, I get the error message "H-M-s-a is undefined" as though the > keyboard is sending Hyper-Meta-shift(?)-a instead. This looks like an issue similar to one I've run into once. You'll need to customize your keyboard layout files, specifically, /usr/X11R6/lib/X11/xkb/symbols/pc. Try this patch: -----PATCH START----- --- pc.orig Thu Aug 18 20:18:20 2005 +++ pc Sat Aug 27 13:03:06 2005 @@ -180,11 +180,12 @@ key { [ NoSymbol, Meta_L ] }; modifier_map Mod1 { }; - key { [ NoSymbol, Super_L ] }; - modifier_map Mod4 { }; + //key { [ NoSymbol, Super_L ] }; + //modifier_map Mod4 { }; + modifier_map Mod4 { , }; - key { [ NoSymbol, Hyper_L ] }; - modifier_map Mod4 { }; + //key { [ NoSymbol, Hyper_L ] }; + //modifier_map Mod4 { }; }; // definition for the PC-AT type 101 key keyboard -----PATCH END----- If that doesn't work, start playing around with the keyboard definition files. The system's not too hard to understand: numeric keycodes are assigned symbols in /usr/X11R6/lib/X11/xkb/keycodes, and those symbols are then assigned Keysyms in /usr/X11R6/lib/X11/xkb/symbols. Hope this helps. Cheers Benjamin --------------enig9A7EDC0E52347034C1026C92 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDSdvAgShs4qbRdeQRAj6IAKCKX7ieVLGOGt590T/66IbtbEHjbACfQxiX 16Lmh3JPVTjdiRkm7sNDbOI= =llaN -----END PGP SIGNATURE----- --------------enig9A7EDC0E52347034C1026C92--