From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Kamphausen Newsgroups: gmane.emacs.help Subject: Re: AltGr with Emacs 23 on OSX and German keyboard Date: Sun, 15 Nov 2009 12:42:22 +0100 Organization: Church of Emacs Message-ID: <87d43k2ew1.fsf@usenet.my.skamphausen.de> References: <87aayq4ww1.fsf@usenet.my.skamphausen.de> <87k4xu3ej7.fsf@usenet.my.skamphausen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1258286175 10111 80.91.229.12 (15 Nov 2009 11:56:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Nov 2009 11:56:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 15 12:56:08 2009 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.50) id 1N9diB-0006oT-J1 for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2009 12:56:07 +0100 Original-Received: from localhost ([127.0.0.1]:34362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9diB-0003Bt-6E for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2009 06:56:07 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin.stu.neva.ru!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 126 Original-X-Trace: news.albasani.net ck8OJOaQTRURXtowiudU5EeIm3/kZq9jdYjZo77Kb38utVX9dpAatjyhGJVL1XD4Ci31zeC5je+sgbvO3+X1ky0lnKxOPzOiyADPUNnUCApMdtMbGvulA8b/A44Jt8fk Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Sun, 15 Nov 2009 11:42:23 +0000 (UTC) X-User-ID: Z00CJBalCmiFz2FO5GEGUexUBLNL4pQQHdOs0qJAmH4= Cancel-Lock: sha1:CfggyyoLFqUDnWLsw8OtpDwbNMk= sha1:touSrEGgxUmQYw6K/fJdAtlEr84= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-NNTP-Posting-Host: VUmTM52G20ADd/CefdUauN8HRunKriudh3o6mvbOEO8= Original-Xref: news.stanford.edu gnu.emacs.help:174681 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:69756 Archived-At: Hi, Peter Dyballa writes: > Am 13.11.2009 um 11:27 schrieb Stefan Kamphausen: > >> However, I'm under the impression that X11 is nur running. I compiled >> the native Cocoa-version of Emacs23 (or is Carbon the newer one? >> Sorry >> to be fuzzy here). > > Could you be a bit more specific? You could describe the way you > launch that application – I either use an icon in the dock or I start Emacs via a Shell script: cat `which emacs` #!/bin/sh test -x "$emacs" || emacs="$HOME/local/opt/emacs-23.1/nextstep/Emacs.app/Contents/MacOS/Emacs" test -x "$emacs" || emacs="/usr/bin/emacs" exec "$emacs" ${SSH_CONNECTION:+-nw} ${SCREEN_IN_SSH:+-nw} "$@" Both behave exactly the same. or copy a bit from the buffer which is > created when you choose "Send Bug Report…" from the Help menu. Here you are... In GNU Emacs 23.1.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-08-02 on imac Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t BTW, > is this Help menu in Emacs' frame or in the  menu bar? The X clients > can't "delegate" the menu-bar... It's in the menu bar, just like a native OSX application. > >> >>> The utility xev can give you exact information about a key and X >>> modifiers. >> >> Can I just launch X11 and then use xev to examine the keycodes? > > Of course! > >> Will that in any way reflect the situation of the native programs? > > > No. You could try to create your own keyboard layout. See for example > http://wiki.neo-layout.org/browser/mac_osx/ or http://www.sil.org/ > computing/catalog/show_software.asp?id=94. Surely there are more > tools to edit the keyboard layout, which is very easy in Mac OS X. > You might need Peter Maurer's Key Codes application: http:// > www.manytricks.com/keycodes to determine the Mac OS X key codes. Still have to look into those. If I hit AltGr-Backspace and do the C-h l afterwards I see: M-(sharp s) C-h l (I can't insert the real sharp s in this emacs, I currently use to type this post, but it is displayed as a "normal" sharp-s in the help buffer). Another thing I noted: the described behavior occurs with that keyboard layout I loaded from the net as well as with the original osx layout. I toggle those using a little icon in the menubar and applications like e.g. the terminal that shipped with this computer reflect the changes immediately: with the original layout I see a question mark upside-down if I hit AltGr-Backslash but with the custom layout I get a backslash. Funny, that makes no difference in Emacs. xev didn't help either. It reports AltGr as KeyPress event, serial 26, synthetic NO, window 0x600001, root 0x27d, subw 0x0, time 4154597274, (135,83), root:(135,105), state 0x0, keycode 57 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XmbLookupString gives 1 bytes: (20) " " XFilterEvent returns: False with the original layout and as KeyPress event, serial 26, synthetic NO, window 0x600001, root 0x27d, subw 0x0, time 4154673256, (86,89), root:(86,111), state 0x0, keycode 69 (keysym 0xff7e, Mode_switch), same_screen YES, XKeysymToKeycode returns keycode: 66 XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False with the custom layout. However, since X11 was launched when I started xev that's probably not releveant anyway. Well, that's it. I'm running out of ideas what else to try (other than compiling Emacs from CVS maybe). Is this considered a bug, shall I sent that report? Kind regards, Stefan -- Stefan Kamphausen --- http://www.skamphausen.de a blessed +42 regexp of confusion (weapon in hand) You hit. The format string crumbles and turns to dust.