jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: python-mode and fold-mode


Hallo G.,

"G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
> On  8.06.07, Jörg Sommer wrote:
>> "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
>
>> It's up to John to make the real decision, but I follow you that
>> _Reserved_Key_Prefix should only be used by major modes.
>
>> > IMO, keybindings for "minor" modes in the Jed standard library should be
>> > set in the emulation mode and not use the _Reserved_Key_Prefix.
>
>> What about implementing a function that makes the decision?
>
>> define minor_mode_key_prefix(mode, keymap)
> ...
>
>> This way, every emulation (EDT, emacs, IDE, vi) can implement it's own
>> version of minor_mode_key_prefix() and the user can change settings.
>
> Wouldn't an associative array work as well?

Yes, a two dimensional array.

> However, there is still the problem that the "minor bindings" should go to
> Global *before* any other keymaps are created.

Why? The emulation overwrites all keybindings and sets up the array or
minor_mode_key_prefix function. And IMO a minor mode can also go into a
non‐global keymap. This way, it affects only some buffers.

Jörg.
-- 
Da würde ich auch lieber den Panzerführerschein machen als den MCSE.
Bringt mehr, dürfte das gleiche kosten und macht sicher mehr Spaß.
                                   Jens Dittmar in de.comp.security

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]