On Sun, Nov 16, 2003 at 01:37:41PM +0000, Hussein Jodiyawalla wrote:
> I'm having lots of fun with Ion, but I can't seem to get my keybindings 
> working to switch between parent frames in a nested configuration.

> parent_bindings {

What's this? Maybe parent_bindings = { ... }? If parent_bindings
is not a function, Lua should complain.

> genframe_bindings {
>       <...snip...>
>       wrap_level(parent_bindings),
>       <...snip...>
> }

Supposing parent_bindings is a table,
genframe_bindings(wrap_level(parent_bindings)) is probably what
you are trying to say. genframe_bindings is a function and fn{...} 
is syntactical sugar for fn({...}). You're passing Ion an entry
in the table of bindings with no action (kpress, mpress, etc.) set
and Ion seems to silently ignore such entries at the moment.

I'm not really sure what you're actually trying to bind to what here.
If you want a submap to access the top-level frame with otherwise the
same keys, the following should do it:

local common_bindings = { ... the bindings ... }

genframe_bindings(common_bindings)
genframe_bindings{
        submap("Mod1+P", wrap_level(common_bindings)),
}


-- 
Tuomo

Reply via email to