On Wed, Sep 28, 2011 at 04:02:15PM -0400, Mark Eichin wrote:
> I have a simple owa-mode ("outlook web access", the "simple" version
> of the UI which is basically a crude exchange-backed webmail
> interface) that has simple key-bindings (n, p, g, and a dozen or so
> others, that do mostly what they do in gnus.) The keymap setup itself
> is just
> 
> define_keymap("owa_keymap", $parent = content_buffer_normal_keymap);
> and a bunch of define_key(owa_keymap, ...) in a loop.
> 
> Under ubuntu lucid, this works great.  Under natty, using a nightly
> conkeror, it works when I'm on the normal pane, but there's one
> critical difference: when my session expires and it goes to the
> password page, the owa_keymap is *still active* in the password entry
> textarea.  Doing M-x quote-mode allows me to enter my password, and
> then hitting ESC to get out of it lets me use normal bindings again.
> 
> Is there something about keymap inheritance that changed, or something
> I should do to be specific about not binding in a textarea?  (I did a
> quick grep through the stock modes and didn't notice any trying to
> handle this; the gmail page-mode would seem similar, but it just does
> $fallthrough to the underlying code, I actually have to activate links
> myself.)
> 

There was the dynamic keymaps patch of 2009-11-03 (fd4fe22...).  Page-mode
keymaps are now managed through a mechanism called
buffer.content_modalities, and they should not have a $parent.  Gmail-mode
is a good example to follow.  Note in particular the handling of the
variable 'gmail_modality'.

-- 
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to