[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6033: 23.1; [Cocoa/GNUStep] Feature Request: right command/option bi
From: |
David Abrahams |
Subject: |
bug#6033: 23.1; [Cocoa/GNUStep] Feature Request: right command/option bindings |
Date: |
Mon, 26 Apr 2010 12:30:35 -0400 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (i386-apple-darwin9.8.0) MULE/6.0 (HANACHIRUSATO) |
At Mon, 26 Apr 2010 11:02:02 -0400,
Chong Yidong wrote:
>
> David Abrahams <dave@boostpro.com> writes:
>
> > Of course I could be mistaken, but I don't think so. Emacs explicitly
> > handles translation of the modifier keys in nsterm.c and I don't see
> > how anything outside of Emacs could make that handling deal with the
> > right keys separately from the left.
>
> Under GNU/Linux, you can use xmodmap to rebind Control_L and Control_R
> separately. So, for instance, if you do
>
> ~ $ xmodmap -e "remove control = Control_R"
> ~ $ xmodmap -e "add mod4 = Control_R"
>
> then pressing Control-a with the right control key will emit
> Super-a.
I'm very familiar with xmodmap, believe it or not. I don't live in a
Mac-centric world.
> I'm sure there is some equivalent functionality on Mac OS X.
There is, but you would need to do something in nsterm.c for Emacs to
be able to “hear” those keystrokes. It explicitly listens for
undistinguished L/R modifier keys and translates them into Emacs'
terms.
--
Dave Abrahams Meet me at BoostCon: http://www.boostcon.com
BoostPro Computing
http://www.boostpro.com