On Sep 27, 2006, at 11:55 AM, Martin Dietze wrote: > Hi, > > the subject line explains it all. I have been unable to > remap Alt to Meta (as it should be) using any out of > mac-command-modifier, mac-option-modifier, > mac-function-modifier, x-select-enable-clipboard, > mac-option-modifier, x-super-keysym, x-meta-keysym. > > Could it be there is a configuration option missing for this? > This problem is extremely annoying since Meta is a quite > commonly used modifier and Alt-x now maps to s-x which stands > for kill-region :(
The short story -- Emacs.app interprets modifier keys following your GNUstep configuration, not your general X one. GNUstep, like Cocoa, defines NSCommandKey, NSAlternateKey, and NSControlKey modifier constants internally. Emacs.app does all modifier processing based on these codes as it receives them from the keyboard event. By default, NSAlternateKey will trigger 'meta' in Emacs, and NSCommandKey triggers 'super'. These can be changed in the Preferences panel. (If you want to use lisp variables instead, use 'ns-xxx-modifier' variables; 'mac-xxx-modifier' are defined only in the Carbon port.) The job of getting different keys on your keyboard to map to each of these separately is left to your GNUstep configuration. (Check documentation on GUI / Back defaults, you want to use things like "defaults write NSGlobalDomain NSAlternateModifier <x keysym name>" I believe.) You can do various tricks in these settings to use Windows keys and/or left/right alternatives to make all three of alt, command, and control accessible on most keyboards if they aren't already. HTH, Adrian ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emacs-app-dev- mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-
