On Wed, Mar 21, 2001 at 05:48:05PM -0800, Henry McNair wrote:
> Hello:
> I am trying to set up key binding in my .emacs file that would
> override the key assignment in my .fvwm2rc file. However, the
> emacs bindings do not work when I am in an emacs window. It
> is as if the key bindings in the .fvwr2rc file have presidence
> for every window.
Yes. The window manager keyboard grabs always take prcedence over
the application's grabs.
> The only happens for the keys that have bindings
> in both init files. Those keys that are not in conflict work as
> I would expect.
>
> Is there anyway I can get the emacs key bindings to work when the
> mouse pointer is in an emacs window, but have the .fvwm2rc key
> bindings work when the pointer is not in an emacs window?
Only as a dirty hack. You could program a trigger for FvwmEvent
that disables said key bindings when the pointer enters an xemacs
window and restores the bindings when the pointer leaves it:
*FvwmEvent focus_change focus_change_func
AddToFunc focus_change_func
+ I current (emacs) disable_bindings_func
+ I current (!emacs) enable_bindings_func
AddToFunc enable_bindings_func
+ I Key F1 W M GotoPage 0 0
+ I Key F2 W M GotoPage 1 0
AddToFunc disable_bindings_func
+ I Key F1 W M -
+ I Key F2 W M -
Then add "Module FvwmEvent" to your InitFunction and
RestartFunction.
(completely untested).
However, if there are many bindings you want to share, this may
slow down things a lot because it applies to all windows, not
just XEmacs.
Bye
Dominik ^_^ ^_^
--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Mar 21 2001 - 20:10:15 GMT