At 07:42 PM 3/24/00 +0100, you wrote:
>
>> As it turns out, this "hack" makes f a prefix key, which is not
>> what you want. I have since discovered that keybindings are
>> additive.
>>
>Yes, I noticed that. I lost my '[]'-keys!! ;)
>
>
>> I don't think you can use minor modes to control keybindings.
>>
>Yes, you can. After reading the elisp manual I think there are two ways
>to go: either using overriding-local-map or having a special minor mode.
>What do you think?
>
>
Sounds interesting. I'll think about this but probably not for the next
release. I want to wrap up JDE 2.6 and until that's done my emphasis will
be on bug fixes and documentation.
- Paul
>>From node "Active Keymaps" in the elisp manual:
>
>"The variable `overriding-local-map', if non-`nil', specifies another
>local keymap that overrides the buffer's local map and all the minor
>mode keymaps.
>
>All the active keymaps are used together to determine what command to
>execute when a key is entered. Emacs searches these maps one by one, in
>order of decreasing precedence, until it finds a binding in one of the
>maps. The procedure for searching a single keymap is called "key
>lookup"; see *Note Key Lookup::.
>
>Normally, Emacs first searches for the key in the minor mode maps, in
>the order specified by `minor-mode-map-alist'; if they do not supply a
>binding for the key, Emacs searches the local map; if that too has no
>binding, Emacs then searches the global map. However, if
>`overriding-local-map' is non-`nil', Emacs searches that map first,
>before the global map.
>
>Since every buffer that uses the same major mode normally uses the same
>local keymap, you can think of the keymap as local to the mode. A change
>to the local keymap of a buffer (using `local-set-key', for example) is
>seen also in the other buffers that share that keymap."
>
>
>/John
>
>--
>LM/ERA/LVA/KD John Olsson mailto:[EMAIL PROTECTED]
> Ericsson Radio Systems AB, Box 1248, S-581 12 Linkoping
>-------------------------------------------------------------
> Phone: +46 13 321070 ECN: 868 1070 Fax: +46 13 287370
>-------------------------------------------------------------
>I was doing object-oriented assembly when I was 1 year old...
>For some reason my mom insists on calling it "Playing with blocks"