wow! thanx. that simple change in the X11 prefs did it (i think they could re-do the language on that pref to make it a bit more obvious that the command key can be the meta key without the pref. checked, but no matter now).

at some point i might play with the xmodmap stuff, but for now this simple change did it, i was able to make my meta modifications in xemacs, and am compiling & running in java like a champ. thanx so much for the great help!

<x-tad-smaller>sincerely,

-- faddah steve yuetsu wolf
portland, oregon
[EMAIL PROTECTED]</x-tad-smaller>

On Sep 19, 2004, at 11:25 PM, Martin Costabel wrote:

faddah steve wolf wrote:
[]
xemacs does not understand *any* key on my apple mac 17" powerbook g4 1.33 ghz as being the 'meta' key. not option-alt, not the apple command key. nuttin'.

I am using the command key as Meta. This is automatic as soon as you uncheck the button "Enable key equivalents under X11" in the X11 preferences. Otherwise, you can of course always use "Esc x" instead of "M-x".

If you want the alt key instead, you have to play with xmodmap. I copy below a message from Apple's X11-users mailing list (unfortunately, Apple recently destroyed all their mailing list archives, or I could just have given you a link).

--
Martin

On Thu, 16 Jan 2003 10:17:48, Owen Saxton wrote:

> Well, you can always use the escape key!
>
> xterm needs to be instructed to do the right thing with the meta key.
> This can be done by including the following line in ~/.Xdefaults:
>
> XTerm*VT100.metaSendsEscape: True
>
> This will take effect for the next xterm that's started (at least it did
> for me).
>
> The only problem now is that the Command, not the Option, key is the X11
> meta key, so it's the wrong one and you can get some unwelcome
> interference with the menu shortcuts. To switch the functions of the
> Option and Command keys requires a few xmodmap commands in your .xinitrc
> file (you can also just type them to try them out):
>
> xmodmap -e "clear mod1"
> xmodmap -e "clear mod2"
> xmodmap -e "keycode 66 = Meta_L"
> xmodmap -e "keycode 63 = Alt_L"
> xmodmap -e "add mod1 = Alt_L Alt_R"
> xmodmap -e "add mod2 = Meta_L"
>
> Now the Option key will work as the meta key in emacs (and also in the
> tcsh shell).
>
> However there is a _big_ downside to all this. Option-click no longer
> functions for me as an X11 paste operation in my xterm windows. It
> otherwise works as MB2 such as when operating the scroll bar or bringing
> up the options menu. Command-click still functions fully as MB3.
>
> So this leaves a couple of potential action items for the X11 developers:
>
> 1) Supply an option to specify which keys are to be used as the X11
> meta and alt keys.
>
> 2) Fix the problem with the MB2 emulation becoming partially disabled
> when the Option and Command key functions are switched (or tell me where
> I went wrong in my switch procedure).
>
> -- Owen
>
> --On Sunday, January 12, 2003 7:51 PM -0800 mark lacas
> <[EMAIL PROTECTED]> wrote:
>
>> For all the great suggestions for keyboard mapping, no one has provided
>> an answer to the lingering problem, of not having a meta key in emacs
>> under X11, as we do in the Apple Terminal.
>>
>> Anyone know how to solve this?
>>
>> ml
> _______________________________________________
> x11-users mailing list | [EMAIL PROTECTED]
> Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
> Do not post admin requests to the list. They will be ignored.
>




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to